Files
CLIProxyAPI/internal/auth/copilot/compat.json
hkfires d059cf2891 feat(copilot)!: add preset-based in-memory catalog
Add copilot presets to the registry models catalog and intersect
them with per-account /models capabilities, so usable credentials
get cold-start preset routes before discovery and account data
overrides limits, modalities, thinking and endpoint afterwards.

Replace the persisted metadata catalog with an immutable
in-memory Auth.CopilotCatalog with preset and unavailable
sentinels, preserving or revoking it across reloads, account
and origin changes, and re-resolving routes on each attempt.

Run discovery in a dedicated worker pool with per-account
transport, queued cancellation and skip-persist commits, gate
native-executor plugin models on catalog availability, and
remove login-time catalog fetch and embedded effort lists.

Add cmd/fetch_copilot_models to export the raw upstream /models
response atomically without modifying the stored credential.

BREAKING CHANGE: upstream-only Copilot models without a registry
preset are no longer routed, and the persisted copilot_catalog
metadata, ReadCatalog and string FetchCatalog APIs are removed
2026-11-21 17:11:35 +08:00

33 lines
4.5 KiB
JSON

{
"claude-fable-5": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":32000,"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-fable-5.1": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":32000,"anthropic_betas":["thinking-binding-controls-2026-08-01","mid-conversation-output-config-2026-07-01"],"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-fable-5.2": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":48000,"anthropic_betas":["thinking-binding-controls-2026-08-01","mid-conversation-output-config-2026-07-01"],"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-haiku-4.5": {"endpoint":"/v1/messages","default_max_tokens":8192,"default_budget":1024,"max_non_streaming_output_tokens":16000},
"claude-haiku-5.5": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":128000,"anthropic_betas":["thinking-binding-controls-2026-08-01"],"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-opus-4.8-fast": {"endpoint":"/v1/messages","adaptive_mode":"required","default_max_tokens":32000,"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-opus-5": {"endpoint":"/v1/messages","adaptive_mode":"required","max_non_streaming_output_tokens":16000},
"claude-opus-5.5": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":48000,"anthropic_betas":["thinking-binding-controls-2026-08-01","mid-conversation-output-config-2026-07-01"],"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-sonnet-5": {"endpoint":"/v1/messages","adaptive_mode":"required","default_max_tokens":64000,"default_effort":"medium","max_non_streaming_output_tokens":16000},
"claude-sonnet-5.5": {"endpoint":"/v1/messages","adaptive_mode":"adaptive_only","default_max_tokens":64000,"anthropic_betas":["thinking-binding-controls-2026-08-01","fallback-credit-2026-07-01"],"default_effort":"medium","max_non_streaming_output_tokens":16000},
"gemini-4-argon": {"endpoint":"/chat/completions","default_effort":"medium","disable_snippy":true,"default_tool_choice":"validated"},
"gemini-4-carbon": {"endpoint":"/chat/completions","default_effort":"medium","disable_snippy":true,"default_tool_choice":"validated"},
"gemini-4-hydrogen": {"endpoint":"/chat/completions","default_effort":"medium","disable_snippy":true,"default_tool_choice":"validated","limit_efforts":true},
"gemini-4-neon": {"endpoint":"/chat/completions","default_effort":"medium","disable_snippy":true,"default_tool_choice":"validated","limit_efforts":true},
"kimi-k3": {"endpoint":"/chat/completions","default_effort":"high","disable_snippy":true},
"gpt-5.3-codex": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"medium","default_verbosity":"low"},
"gpt-5.6-luna": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-5.6-sol": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6-astra": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6-luna": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6-sol": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6.1-sol": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6.1-terra": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6.2-astra": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"gpt-6.2-sol": {"endpoint":"/responses","system_prompt":"system","default_effort":"medium","default_verbosity":"low"},
"grok-4.6": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"medium"},
"grok-4.7": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"high"},
"mai-code-1.1-flash": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"medium"},
"mai-code-2": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"medium","default_verbosity":"low"},
"mai-code-2-flash": {"endpoint":"/responses","system_prompt":"instructions","default_effort":"medium","default_verbosity":"low"}
}