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

Đang mở
#8,762 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
40/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
16.9k
Fork
1.3k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
814

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lidge-jun/opencodex

Tất cả issue của lidge-jun/opencodex

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.