any-ccswitch-codex,实测有效,可正常加mcp工具

klyang 2026-06-12 13:29 1

问题:通过ccswitch配置any一直不成功,会出现诸如encrypted content等其他报错

解决:通过添加wangwar提供的代码,就可以正常对话了,如下


stream=true
include = ["reasoning.encrypted_content"]
api_protocol = "responses"
store = false
disable_response_storage = true

另外我还试了下添加mcp工具,也不会出现问题,依旧正常,全部配置如下:


model_provider = "custom"
model = "gpt-5.5"
model_reasoning_effort = "xhigh"
stream=true
include = ["reasoning.encrypted_content"]
api_protocol = "responses"
store = false
disable_response_storage = true
model_context_window = 1000000
model_auto_compact_token_limit = 900000

[features]
goals = true

[model_providers]
[model_providers.custom]
name = "OpenAI"
wire_api = "responses"
requires_openai_auth = true
base_url = "https://a-ocnfniawgw.cn-shanghai.fcapp.run/v1"

[windows]
sandbox = "elevated"

[plugins]
[plugins."github@openai-curated"]
enabled = true

[mcp_servers]
[mcp_servers.context7]
type = "stdio"
command = "npx"
args = [ "-y", "@upstash/context7-mcp" ]

只不过在ccswitch里会额外出现gpt-5.4-mini的调用,不知道为啥,不过也不消耗额度,不影响正常使用,继续开蹬!!!

最新回复 (6)
  • Smuzhe 06-12 13:51
    1

    只不过在 ccswitch 里会额外出现 gpt-5.4-mini 的调用,不知道为啥



    生成会话标题、日志高亮这类内部辅助任务会调用到 gpt-5.4-mini 去做

  • answerzx 06-12 13:56
    2

    那还是有点问题吧 这个mini模型的调用500错误

  • klyang 楼主 06-12 14:08
    3

    但是我实际没调用mini模型呀哈哈,可以参考前一个佬的回答,应该就是正常的了~

  • 兔斯基不在家 06-15 23:04
    4

    stream=true
    include = ["reasoning.encrypted_content"]
    api_protocol = "responses"
    store = false
    disable_response_storage = true


    虽然但是,楼主贴的这几个配置应该是过时的旧配置了,当前官方 schema https://developers.openai.com/codex/config-schema.json 里没有这些

  • sunfly 06-18 09:35
    5

    这个 MCP 调用是/MCP 能够读取到配置,但是上游 api 没有获取到 tools 的 schema 所以好像没法正常使用。

  • kingkare 06-19 04:37
    6

    感谢佬 也是终于让我用上any大善人的codex了 接下来就是折腾克劳德了

* 帖子来源Linux.do
返回