AGC 官方 LLM Router 账号链路与流式联网输出 #242

Merged
kdletters merged 59 commits from feat/agc-llm-router-official-chain into master 2026-09-06 16:49:13 +08:00
2 changed files with 1384 additions and 262 deletions
Showing only changes of commit 700d7940a7 - Show all commits
File diff suppressed because it is too large Load Diff
+8 -1
View File
@@ -717,7 +717,14 @@ async fn resolve_llm_router_credentials(
// No fixture means the request must follow the same provisioning/read path
// as production. In particular, a missing external_api_key row must never
// be replaced by a process-wide test key.
// be replaced by a process-wide test key. An already-provisioned row is
// read locally on the hot path; Router account repair and subscription
// checks run from the authentication/key-preparation anchor instead.
if let Some(credentials) =
crate::external_api_keys::read_active_llm_router_credentials(state, owner_user_id).await?
{
return Ok(credentials);
}
let record = crate::external_api_keys::ensure_llm_router_account(state, owner_user_id).await?;
let ciphertext = record
.secret_ciphertext