告诉HN:使用Claude Code与官方第三方API似乎存在问题。
这很奇怪,但我在使用Z.ai的GLM 4.5与Claude Code(CC)时,仅仅启动CC并让它读取规格和指南文件就花费了5美元。这个API宣传的费用是每百万个输入令牌0.6美元,每百万个输出令牌2.2美元。
然后,我注意到在原始提示之后,我给CC的任何进一步提示(除了批准它的操作)都完全没有效果。是的,任何提示都被完全忽略。我必须停止CC并重新启动以使新提示生效。
这对我来说真的很奇怪。CC是否有某种方式来检测它是否在使用非Anthropic的API?巨大的成本和/或令牌使用量,以及受限的自主模式,显然不是因为GLM 4.5没有能力。要么CC在使用第三方API时受到某种限制,要么Z.ai的API以某种方式没有正常工作。
查看原文
It's weird, but using Claude Code (CC) with GLM 4.5 from Z.ai, I spent $5 just starting CC and asking it to read the spec and guideline files. This on an API that advertises $0.6 per million tokens input, and $2.2 per million tokens output.<p>Then, I noticed that after the original prompt, any further prompt I gave CC (other that approving its actions) did not have any effect at all on it. Yes, any prompt is totally ignored. I have to stop CC and restart with the new prompt for it to take effect.<p>This is really strange to me. Does CC have some way of detecting when it is running against an API other than Anthropic's? The massive cost and/or token usage and crippled agentic mode is clearly not due to GLM 4.5 not being capable. Either CC is crippled in some way when using a 3rd party API, or else Z.ai's API is somehow not working properly.