CodePilot icon indicating copy to clipboard operation
CodePilot copied to clipboard

使用 0.38 仍然无法添加Anthropic Third-party API第三方模型,运行诊断是通过的

Open jjd0324 opened this issue 8 months ago • 12 comments

Image Image Image

jjd0324 avatar Mar 16 '26 11:03 jjd0324

codepilot-doctor-2026-03-16.json

日志在这里

jjd0324 avatar Mar 16 '26 11:03 jjd0324

我是这样用的,暂时用v0.26.0版本

liaoyangr8-ai avatar Mar 16 '26 11:03 liaoyangr8-ai

v0.38.1 已修复

第三方 Anthropic API 模型无法使用的问题在 v0.38.1 中已修复,核心改动:

  1. 模型选择器补全:现在 role_models_json 里配置的模型会自动出现在聊天选择器中
  2. 默认 provider 悬空修复:如果之前的默认 provider 被删除过,resolver 会自动修复而不是回退到环境变量
  3. Doctor 增强:诊断通过但实际不工作的情况现在会被更准确地检测(包括「模型列表为空」、「默认 provider 指向已删除记录」等)

请更新到 v0.38.1: https://github.com/op7418/CodePilot/releases

更新后如果仍有问题:

  1. 打开 设置 → 服务商 → 运行诊断
  2. 点击「导出日志」下载诊断报告
  3. 将日志文件附在此 issue 回复中,我们帮你排查

op7418 avatar Mar 16 '26 12:03 op7418

Image Image

codepilot-doctor-2026-03-16.json

Image

这个是质谱国内的glm coding plan套餐,也不行

jjd0324 avatar Mar 16 '26 14:03 jjd0324

Image Image

codepilot-doctor-2026-03-16.json

这个是第三方中转站的也不行,显示的报错和质谱的一样

jjd0324 avatar Mar 16 '26 14:03 jjd0324

Azure works fine in v0.38.1

Update: Only sonnet 4.6 works

mzy2240 avatar Mar 16 '26 14:03 mzy2240

运行服务商诊断后把 log 贴上来

op7418 avatar Mar 16 '26 15:03 op7418

运行服务商诊断后把 log 贴上来

codepilot-doctor-2026-03-16.json

jjd0324 avatar Mar 16 '26 15:03 jjd0324

codepilot-doctor-2026-03-16.json

这个是质谱 国内的

jjd0324 avatar Mar 16 '26 15:03 jjd0324

持续报同一个错,用的是cc的套餐,检查是通过的,但回到对话框就是错的。

Image

Error: Claude Code process exited with an error (Provider: Anthropic Third-party API). Common causes: • Invalid or missing API Key • Incorrect Base URL configuration • Network connectivity issues • Thinking mode may not be supported What to do: Check your API key and provider settings. Run Provider Doctor in Settings for detailed diagnostics. 💡 Go to Settings → Providers → Run Diagnostics for detailed troubleshooting.

hmzyly avatar Mar 16 '26 16:03 hmzyly

我的火山方舟coding plan,情况类似,版本 0.38.2

theodoreye001 avatar Mar 17 '26 06:03 theodoreye001

这个 issue 因为缺少复现信息 / 等待确认,已经 14 天没有更新。

如果问题仍然存在,请在最新版本(v0.56.2 及以上)上补充:版本号、操作系统、运行时 / 服务商、复现步骤或日志。

再过 14 天若仍无回应,会自动关闭——这不是否认问题,关闭后随时可以用新信息重新打开。

github-actions[bot] avatar Jul 13 '26 05:07 github-actions[bot]