解决Claude Code报错API Error: 400 Model only support text input
·
Claude Code 会话存于 ~/.claude/projects/<项目编码>/*.jsonl。Read 工具读图片(PNG 截图等)会在消息里留下 image block。切换到不支持图片识别的模型(如 glm 系列)后,resume 这些会话会因 API 拒绝图片而报错,提示:API Error: 400 Model only support text input,然后无法继续之前的任务。

针对这个报错,我让claude给我写了一个Skill去处理这个问题,具体可在github搜:strip-claude-code-conversation-images
链接如下:Naratsuna/strip-claude-code-conversation-images
如果有帮助可以点个Star
更多推荐



所有评论(0)