求助【ccs+codex+grok】调用出现的各种问题

SuperG 2026-07-15 10:34 1

大概几个问题,我描述一下。实在折腾不动了,想着用grok接入改个前端。结果codex配置自己折腾了几下跑通了,但是早上起来发现各种奇葩问题冒出来还都不一样。

重要信息:我接入的是黑白佬的grok接口。上班没办法折腾求佬友帮忙解决一下,我初步感觉是某个配置不兼容导致的。

问题1:上下文超过500K不会自动压缩,这个测试几次都是直接中断了。下面配置加了完全不生效。


model_context_window = 500000
model_auto_compact_token_limit = 400000

问题2:之前都没问题早上起来运行就出现tool调用不支持的问题。

CC Switch local proxy failed while handling Codex endpoint /responses. Provider: 黑白 grok 4.5; model: grok-4.5; upstream_status: HTTP 400; cause: 来自上游渠道的报错: Invalid tool arguments received, please pass back the unmodified tool arguments from the original model response: trailing characters at line 1 column 127 (request id: 2026071510084631435454GM7TFQVG)


问题3:重新开会话也是一样的情况。不知道什么鬼~

CC Switch local proxy failed while handling Codex endpoint /responses. Provider: 黑白 grok 4.5; model: grok-4.5; upstream_status: HTTP 400; cause: invalid character ‘{’ after top-level value (request id: 20260715102216979113703B13oAt1O)


贴一下我的配置:


disable_response_storage = true
model_provider = "xxx"
model = "grok-4.5"
review_model = "grok-4.5"
model_reasoning_effort = "max"
approval_policy = "never"
service_tier = "fast"
sandbox_mode = "danger-full-access"
network_access = "enabled"
web_search = "live"
model_supports_reasoning_summaries = true
model_context_window = 500000
model_auto_compact_token_limit = 400000

personality = "pragmatic"
[model_providers.xxx]
name = "xxx"
base_url = "https://ai.hybgzs.com/v1/chat/completions"
wire_api = "responses"
requires_openai_auth = true

[windows]
sandbox = "elevated"

[features]
skills = true
hooks = true
js_repl = false
multi_agent = true
goals = true
memories = true

[agents]
max_threads = 4

[tui.model_availability_nux]
"grok-4.5" = 4







最新回复 (5)
  • SuperG 楼主 07-15 11:24
    1

    ^-^论坛的佬都去哪里了~~半天没有大佬帮我解决一下这个问题。果然还是太难了!我已经在考虑是不是上游不支持压缩造成的了。

  • fhf 07-15 11:25
    2

    我是grok的auth文件->cpa->codex,一切都使用正常,也没什么额外配置,你这个有可能是上游的问题。

  • fhf 07-15 11:29
    3

    你要不换个上游试一试?站内grok的公益站挺多的

  • SuperG 楼主 07-15 11:31
    4

    我也找了很多但是稳定的只有黑白的。其他的要么额度不够要么用几次,突然就提示自己是对话模型无法调用tool什么的。很无奈

  • fhf 07-15 11:34
    5

    你这个base_url是谁给你配的,一般base_url不都是/v1结尾吗?尤其是wire_api设置称responses的情况

* 帖子来源Linux.do
返回