[Feature]: Explicit Codex account namespace binding for failover combo targets

Aperta
#8,762 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, cli

Direzione di ricerca

The CLI target schema is in src/cli/combo-input.ts; start there to see where a combo target is validated, then the target type in src/combos/types.ts and the config shape in src/types/config.ts. Namespace resolution already exists in src/routing/router.ts — read how codexAccountNamespaces maps a name to an account and mirror it as a target-level binding. Done means a combo target can name the second account of the same model, quota failover selects it, usage identifies the served account, and existing physical-provider combos still validate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

account-pool enhancement
Goal / problem

Combos in 2.100.2 cannot explicitly target a Codex account namespace, although the same namespace works as a direct routed model.

For example, with two existing ChatGPT accounts and codexAccountNamespaces mapping openai-team to the second account, direct openai-team/<model> routes correctly. A failover combo cannot represent both accounts of the same model:

  • target.provider = "openai-team" fails validation because this namespace is not a physical key in config.providers.
  • target.provider = "openai" has no supported account-binding field. Repeating that provider/model is a duplicate, not an explicit second account.
  • The CLI target-file schema rejects an accountRef field, and target normalization does not preserve one.

Source locations: src/cli/combo-input.ts, src/combos/types.ts, src/types/config.ts; namespace resolution already exists in src/routing/router.ts.

Expected behaviour

Please support an explicit, validated account binding for combo targets, or resolve an existing account namespace as a target. Preserve the account through selection, upstream routing, usage attribution and account-scoped cooldown. Missing or exhausted bindings should follow the existing failover contract without silently using the default account.

Acceptance: two existing accounts of the same model remain independently addressable; a quota failure in the first can select the specified second account; usage identifies the served account; existing physical-provider combos remain compatible. No new login, account merging or default-account change should be required.

This request is based on source inspection. No credentials, account identifiers or private configuration are included.

Lingua principale
TypeScript
Stelle
16.9k
Fork
1.3k
Merge medio
1g 4h
PR unite (30g)
814

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lidge-jun/opencodex

Tutte le issue di lidge-jun/opencodex

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.