mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
15e712e779
Codex providers can now run in two modes per provider: - Proxy-Chat (route takeover): apiFormat=openai_chat, existing Responses<->Chat conversion. Unchanged. - Native-Responses (direct): apiFormat=openai_responses, no proxy. cc-switch generates ~/.codex/cc-switch-model-catalog.json so Codex shows the custom models and tools work without the freeform apply_patch (type=custom) tool that native gateways like MiMo reject; editing falls back to shell_command. Catalog generation is keyed on apiFormat (CodexCatalogToolProfile), decoupled from the takeover toggle, so native providers persist a catalog without enabling local route mapping. Codex's catalog parser requires base_instructions on every entry; the native template carries a neutral default and per-vendor official text overrides it (MiMo, MiniMax). Synthesized catalogs for Qwen/Doubao/LongCat use the neutral default. Existing native providers must be re-saved once to regenerate a valid catalog (no DB migration).
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"slug": "native-responses-template",
|
|
"display_name": "native-responses-template",
|
|
"description": "native-responses-template",
|
|
"base_instructions": "You are Codex, a coding agent. You and the user share the same workspace and collaborate to achieve the user's goals.",
|
|
"default_reasoning_level": "high",
|
|
"supported_reasoning_levels": [
|
|
{
|
|
"effort": "none",
|
|
"description": "Disable Thinking"
|
|
},
|
|
{
|
|
"effort": "high",
|
|
"description": "Enabled Thinking"
|
|
}
|
|
],
|
|
"shell_type": "shell_command",
|
|
"visibility": "list",
|
|
"supported_in_api": true,
|
|
"priority": 0,
|
|
"supports_reasoning_summaries": true,
|
|
"default_reasoning_summary": "none",
|
|
"support_verbosity": false,
|
|
"truncation_policy": {
|
|
"mode": "bytes",
|
|
"limit": 10000
|
|
},
|
|
"supports_parallel_tool_calls": false,
|
|
"supports_image_detail_original": false,
|
|
"context_window": 262144,
|
|
"max_context_window": 262144,
|
|
"effective_context_window_percent": 95,
|
|
"experimental_supported_tools": [],
|
|
"input_modalities": [
|
|
"text"
|
|
],
|
|
"supports_search_tool": false
|
|
}
|