使用 cc-switch 接入模型并路由,端点Chat Completions
codex 版本
版本 26.601.21317 • 发布于 Jun 3, 2026
问题是不显示模型名称,windwos 下正常,mac 情况如图所示,可以正常使用,但是强迫症)
[Solana] coin.v2ex.pro 继续更新 · 和 V2EX 一致的配色 + 自动 Dark Mode · 成员列表 · Token Detail
[程序员] 求助帖:搭车干净🪜机场
config.toml
model_provider = "custom"
model = "workers-ai/@cf/moonshotai/kimi-k2.6"
model_catalog_json = "~/.codex/cc-switch-model-catalog.json"
model_reasoning_effort = "high"
disable_response_storage = true
[model_providers]
[model_providers.custom]
name = "Cloudflare"
wire_api = "responses"
requires_openai_auth = true
base_url = "xxx"
[features]
goals = true
[tui]
notification_condition = "always"
cc-switch-model-catalog.json
{
"models": [
{
"additional_speed_tiers": [],
"apply_patch_tool_type": "freeform",
"availability_nux": null,
"base_instructions": "You are Codex, 省略~~",
"context_window": 260000,
"default_reasoning_level": "medium",
"default_reasoning_summary": "none",
"default_verbosity": "low",
"description": "Kimi-K2.6",
"display_name": "Kimi-K2.6",
"effective_context_window_percent": 95,
"experimental_supported_tools": [],
"input_modalities": [
"text",
"image"
],
"max_context_window": 260000,
"model_messages": {
"instructions_template": "You are Codex, 省略",
"instructions_variables": {
"personality_default": "",
"personality_friendly": "# Personality\n\nYou have a vivid inner life as Codex: 省略"
}
},
"priority": 1000,
"service_tiers": [],
"shell_type": "shell_command",
"slug": "workers-ai/@cf/moonshotai/kimi-k2.6",
"support_verbosity": true,
"supported_in_api": true,
"supported_reasoning_levels": [
{
"description": "Fast responses with lighter reasoning",
"effort": "low"
},
{
"description": "Balances speed and reasoning depth for everyday tasks",
"effort": "medium"
},
{
"description": "Greater reasoning depth for complex problems",
"effort": "high"
},
{
"description": "Extra high reasoning depth for complex problems",
"effort": "xhigh"
}
],
"supports_image_detail_original": true,
"supports_parallel_tool_calls": true,
"supports_reasoning_summaries": true,
"supports_search_tool": true,
"truncation_policy": {
"limit": 10000,
"mode": "tokens"
},
"upgrade": null,
"visibility": "list",
"web_search_tool_type": "text_and_image"
}
]
}
5 个帖子 - 4 位参与者