Claude Desktop 里的 DeepSeek API 该怎么设置?

6 小时 46 分钟前
 GeorgeV

之前按网上搜来的办法,在 Claude Desktop ( Help → Troubleshooting → Enable Developer Mode Developer → Configure Third-Party Inference )里添加了 DeepSeek 的 API ,运行正常。今天发现 Claude 提示:

message: Invalid custom3p enterprise config: inferenceModels: configured model "deepseek-v4-pro" is not an Anthropic model. Gateway deployments require an Anthropic model from the provider catalog — expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model. failingField: inferenceModels

是不是要在deepseek-v4-pro之前加一个claude-才行了?

703 次点击
所在节点    Claude
9 条回复
fiveStarLaoliang
5 小时 38 分钟前
你的模型名称不对吧,DeepSeek 的官网的模型是下面这些:
Windows 用户,在 Powershell 中执行:
$env:ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
$env:ANTHROPIC_AUTH_TOKEN="<你的 DeepSeek API Key>"
$env:ANTHROPIC_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL="deepseek-v4-pro[1m]"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-flash"
$env:CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"
$env:CLAUDE_CODE_EFFORT_LEVEL="max"
GeorgeV
5 小时 36 分钟前
@fiveStarLaoliang 你这个是在 Claude Code 里的设置,我之前就按照官网这么设,Claude Code 里一直能正常调用 DS 模型,现在也无任何问题。上面说的是在 Claude Desktop app 里的设置,今天突然出问题了。
fiveStarLaoliang
5 小时 33 分钟前
desktop app 不就是套了个壳子么,应该是类似的吧,环境变量配置以后应该是通用的吧
youngxhui
5 小时 32 分钟前
推荐 cc desktop switch, 一件切换模型。https://github.com/lonr-6/cc-desktop-switch
GeorgeV
5 小时 26 分钟前
@fiveStarLaoliang 网上也有人碰到相同问题了( https://www.reddit.com/r/LocalLLM/comments/1t3oypq/switched_my_claude_code_agent_loop_to_deepseek_v4/)

解决办法就是 zaids 模型名前加个前缀`claude-xx`

“Just found the solution by myself... rename the model name from `deepseek-v4-pro` to `claude-deepseek-v4-pro`. CC desktop need a prefix `claude-xx` to recognize models. How conservative”

这样能继续用 DS 模型,但估计会降级成 flash 版本:

“Deepseek will use Flash as fallback if the model name not matched. Guess that's why it works in your case. If you wanna use Pro, do considering set up a local http proxy to move on.”
viking602
4 小时 28 分钟前
最新版本已经只能限制使用 claude 模型了
GeorgeV
4 小时 7 分钟前
@viking602 在 Terminal 里运行的 Claude Code 似乎还没受影响。另外,qoder 这个 app 和 Claude Desktop 比起来怎么样? qoder 能用 DS 的 API
softnero
1 小时 52 分钟前
utodea
1 小时 31 分钟前

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1210851

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX