atomroyal (@rustc)opencode的deepseek-v4-flash-free模型通过newapi和cc switch接入claude code使用 中发帖

1、登录opencode获取api密钥 
[image]
2、neiapi管理后台添加渠道,填入第一步获取的api密钥,api地址填https://opencode.ai/zen,模型填deepseek-v4-flash-free
[image]
3、展开高级设置,可视化编辑,设置字段填入messages.*.reasoning_content
一定要弄这步不然在claude code中调用工具会出现400错误, API Error: 400 Error from provider (DeepSeek): The reasoning_content in the thinking mode must be passed back to the API.
[image]
[image]
这个解决方法是在这位佬友帖子找到的,感谢佬友

4、newapi令牌管理,...