codex_models_manifest_config.go 762 B

123456789101112131415
  1. package domain
  2. // GroupCodexModelsManifestConfig controls which accounts fetch the Codex
  3. // models manifest for an OpenAI group. When enabled, the group's Codex
  4. // /models requests bypass the scheduler and only use the pinned accounts.
  5. type GroupCodexModelsManifestConfig struct {
  6. Enabled bool `json:"enabled"`
  7. // AccountIDs is the ordered list of pinned account IDs. Order decides
  8. // merge precedence for duplicate model slugs.
  9. AccountIDs []int64 `json:"account_ids,omitempty"`
  10. // FallbackToScheduler controls the behavior when no pinned account is
  11. // usable or all upstream fetches fail: fall back to the scheduler loop
  12. // (true) or return the upstream error / 503 (false, default).
  13. FallbackToScheduler bool `json:"fallback_to_scheduler,omitempty"`
  14. }