messages.content.type 参数非法,取值范围 ['text'] — Codex
Quick fix
移除 glm-5.3 的 image 能力标记,改用仅文本的模型目录配置。
Symptom
Section titled “Symptom”CC Switch local proxy failed while handling Codex endpoint /responses. Provider: Zhipu GLM; model: glm-5.3; upstream_status: HTTP 400; cause: messages.content.type 参数非法,取值范围 ['text']在 Codex 测试软件时截图发送给模型,cc-switch 的模型目录将 glm-5.3 标记为支持图像,因而向上游发送了图像内容。但该模型接口仅接受 ['text'],上游返回 HTTP 400。
原帖提供了移除 image 能力标记的临时解决方案。维护者表示 glm-5.3 缺少精确的纯文本能力注册表项,并计划提交修复及回归测试;该评论未说明修复已合并或发布。
修改模型目录,删除 glm-5.3 的 input_modalities 中的 image 项,并将修改后的文件保存为 cc-switch-model-catalog-text-only.json。
cc-switch-model-catalog.json "input_modalities": ["text", "image"]"input_modalities": ["text"]在 CC 配置中添加 model_catalog_json = "cc-switch-model-catalog-text-only.json",使其使用仅文本的模型目录。
Affected Versions
Section titled “Affected Versions”ToolCodex
Versionv3.20.0(受影响)
PlatformsWindows
Source Issues
Section titled “Source Issues”本页汇总自 1 个真实 issue
(暂无 FAQ)
这是一个非官方社区 wiki,与 cc-switch 作者及项目本身无隶属关系。内容整理自项目公开的 GitHub issues。本站不分发任何软件。