refactor: 抽离 AI pipeline 与调度共享能力逻辑

This commit is contained in:
fawney19
2026-04-10 01:46:14 +08:00
parent b901a6ffc7
commit 5014e2f5fd
255 changed files with 15057 additions and 3115 deletions
@@ -282,7 +282,7 @@ async fn gateway_handles_admin_billing_rule_routes_locally_with_trusted_admin_pr
"input_tokens": { "source": "dimension", "dimension": "input_tokens" }
}),
is_enabled: true,
created_at_unix_secs: 1_710_000_000,
created_at_unix_ms: 1_710_000_000,
updated_at_unix_secs: 1_710_000_100,
},
crate::AdminBillingRuleRecord {
@@ -297,7 +297,7 @@ async fn gateway_handles_admin_billing_rule_routes_locally_with_trusted_admin_pr
"images": { "source": "dimension", "dimension": "image_count" }
}),
is_enabled: false,
created_at_unix_secs: 1_710_000_000,
created_at_unix_ms: 1_710_000_000,
updated_at_unix_secs: 1_710_000_050,
},
]),
@@ -516,7 +516,7 @@ async fn gateway_handles_admin_billing_collector_routes_locally_with_trusted_adm
default_value: None,
priority: 10,
is_enabled: true,
created_at_unix_secs: 1_710_000_000,
created_at_unix_ms: 1_710_000_000,
updated_at_unix_secs: 1_710_000_100,
},
crate::AdminBillingCollectorRecord {
@@ -531,7 +531,7 @@ async fn gateway_handles_admin_billing_collector_routes_locally_with_trusted_adm
default_value: Some("1".to_string()),
priority: 5,
is_enabled: false,
created_at_unix_secs: 1_710_000_000,
created_at_unix_ms: 1_710_000_000,
updated_at_unix_secs: 1_710_000_050,
},
]),