-
Notifications
You must be signed in to change notification settings - Fork 671
fix(routing): keep unbound account quota unknown (#1195) #1288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,8 +22,6 @@ import { | |
| import { decodeRoutedModelId, encodeRoutedModelId } from "./providers/slug-codec"; | ||
| import { getStaleCached } from "./codex/model-cache"; | ||
| import { codexAccountNamespaceEntries } from "./codex/account-namespaces"; | ||
| import { getEffectiveActiveCodexAccountId } from "./codex/routing"; | ||
| import { getAccountSet } from "./oauth/store"; | ||
| import { | ||
| buildRouteDecisionTrace, | ||
| type RouteDecisionKind, | ||
|
|
@@ -513,24 +511,6 @@ function routeModelInternal( | |
| quota: quotaEvidenceForCandidate({ | ||
| provider: candidate.provider, | ||
| model: candidate.model, | ||
| ...(candidate.provider === OPENAI_CODEX_PROVIDER_ID | ||
| && providerCodexAccountMode( | ||
| OPENAI_CODEX_PROVIDER_ID, | ||
| config.providers[OPENAI_CODEX_PROVIDER_ID], | ||
| ) === "pool" | ||
| ? (() => { | ||
| const codexAccountId = getEffectiveActiveCodexAccountId(config); | ||
| return { | ||
| codexAccountId, | ||
| codexAccountPlan: codexAccountId | ||
| ? config.codexAccounts?.find(account => account.id === codexAccountId)?.plan | ||
| : undefined, | ||
| }; | ||
| })() | ||
| : {}), | ||
| accountRef: candidate.provider === "anthropic" | ||
| ? getAccountSet("anthropic")?.activeAccountId | ||
| : undefined, | ||
| }), | ||
|
Comment on lines
511
to
514
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For any live Pool-mode profile, this call now receives neither Useful? React with 👍 / 👎. |
||
| cost: costEvidenceForCandidate({ | ||
| provider: candidate.provider, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 19417
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 18122
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 10717
Add the localized quota-evidence paragraphs to the routing docs.
The localized routing pages end before the English
optimize.quotabehavior, sodocs-site/src/content/docs/{ja,ko,ru,zh-cn}/reference/configuration/routing.mdcan now contradict the source by omission. Add the matching account-bound quote and dry-run evidence text; do not present an active Codex or Anthropic account as a substitute forcandidates[].codexAccountId/candidates[].accountRef.🤖 Prompt for AI Agents
Sources: Path instructions, Learnings