【 烁 】公益站 glm-5.1 /v1/messages 在CC中调用存在BUG会中断对话

kent 2026-06-28 02:52 1

path.join(claudeDir,‘plugins’,‘everything-claude-code@everything-claude-code’),path.join(claudeDir,‘plugins’,’

marketplaces’,‘everything-claude-code’)]){if(hasRunnerRoot(candidate))return candidate;}try{for(const slug of

[‘ecc’,‘everything-claude-code’]){const cacheBase=path.join(claudeDir,‘plugins’,‘cache’,slug);for(const org of

fs.readdirSync(cacheBase,{withFileTypes:true})){if(!org.isDirectory())continue;for(const version of

fs.readdirSync(path.join(cacheBase,org.name),{withFileTypes:true})){if(!version.isDirectory())continue;const

candidate=path.join(cacheBase,org.name,version.name);if(hasRunnerRoot(candidate))return

candidate;}}}}catch{}return claudeDir;})();const script=path.join(root,rel);if(fs.existsSync(script)){const

result=spawnSync(process.execPath,[script,‘stop:desktop-notify’,‘scripts/hooks/desktop-notify.js’,‘standard,st

rict’],{input:raw,encoding:‘utf8’,env:process.env,cwd:process.cwd(),timeout:30000});const stdout=typeof

result.stdout===‘string’?result.stdout:‘’;if(stdout)process.stdout.write(stdout);else

process.stdout.write(raw);if(result.stderr)process.stderr.write(result.stderr);if(result.error||result.status=

==null||result.signal){const reason=result.error?result.error.message:(result.signal?‘signal

‘+result.signal:‘missing exit status’);process.stderr.write(’[Stop] ERROR: hook runner failed:

‘+reason+String.fromCharCode(10));process.exit(1);}process.exit(Number.isInteger(result.status)?result.status:

0);}process.stderr.write(’[Stop] WARNING: could not resolve ECC plugin root; skipping

hook’+String.fromCharCode(10));process.stdout.write(raw);"

⎿ /grill-me xxxxx。

⎿ Stop hook error: JSON validation failed


客户端若支持选择协议,走 OpenAI /v1/chat/completions 调 glm-5.1(实测正常),但是CC需要路由中转一下接口。

最新回复 (5)
  • ByteBender 06-28 02:56
    1

    虽然但是,AIGC请截图发出 ^-^


    glm-5.2 没这个问题嘛

  • NukaColaM 06-28 02:58
    2

    这怕不是等炼化成LDC?


    赶紧改改吧。

  • Miuzzz 06-28 02:59
    3

    大晚上的应该没有审核吧?楼主是不是在审核反应过来之前改了就行 ^-^

  • ByteBender 06-28 03:02
    4


    上下文改一下就没有问题了,应该是上游奇怪的被缓存的截断导致的

  • Leo Kon 06-28 13:07
    5

    大佬这个cc-switch如何配置路由中转,我也是这个问题

* 帖子来源Linux.do
返回