mirror of
https://github.com/deepseek-ai/awesome-deepseek-agent.git
synced 2026-11-05 01:07:37 +00:00
[GH-ISSUE #94] Claude code通过bash环境变量,提示: API Error: 400 模型不存在,请检查模型代码。 #32
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/awesome-deepseek-agent#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @it950 on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/94
OS:Windows 11
直接通过 bash,export 环境变量,Claude code提示:API Error: 400 模型不存在,请检查模型代码,具体如下:
@keydexofficial commented on GitHub (May 11, 2026):
建议试一下Langcli,Langcli 100%兼容claude code、完美适配deepseek v4 flash 和 v4 pro,且/connect 命令一键配置,不用环境配置那么麻烦的。
@Agents365-ai commented on GitHub (May 11, 2026):
Try https://github.com/Agents365-ai/dsclaude
one script to set claude dekstop, and use co-work, claude code
It is easy
@BenedictKing commented on GitHub (May 29, 2026):
这个问题的根因是 Claude Code 发送的模型名(如
claude-opus-4-7、claude-sonnet-4-5)和ANTHROPIC_MODEL中带[1m]后缀的格式,DeepSeek 的/anthropic端点可能无法正确识别。CCX可以解决这个问题 —— 它作为本地代理坐在 Claude Code 和 DeepSeek 之间,通过模型映射自动完成名称转换,无需在 Claude Code 侧做任何特殊配置:
配置方式非常简洁,只需两个环境变量:
不需要设置
ANTHROPIC_MODEL、ANTHROPIC_DEFAULT_OPUS_MODEL等一堆变量,也不用操心[1m]后缀。模型路由在 CCX 侧统一管理,Web UI 可视化配置。集成指南:docs/ccx.md
@it950 commented on GitHub (May 30, 2026):
用下面的这个方法,可以简单切换glm and deepseek: