Repository navigation
Replies: 1 comment 2 replies
|
这个报错不是"不支持切换思维等级",是另一件很具体的事,而且大概率能配掉。 报错在说什么DeepSeek 的 thinking 模式有一条要求:assistant 消息里的 官方有对应的 compat 开关rc.8 的 llm-pi-ai:
providers:
你的provider:
api: openai-completions
baseURL: https://api.deepseek.com
apiKeyEnv: 你的KEY变量名
models:
- id: <模型 id>
name: <显示名>
contextWindow: 131072
reasoningEfforts:
off:
low: low
high: high
compat:
requiresReasoningContentOnAssistantMessages: true
但要先确认你走的是哪条路由
麻烦说一下你是哪种,以及在设置里选的是哪个 provider。是第二种的话,这帖就是一份有效的 bug 报告,值得让维护者看到。 边界上面的配置形状我完整跑过(换的是别的端点,同一套 compat 机制,并且进了我自己项目的发版回归),所以字段名和位置是可靠的;但"配上它就能解决你这个具体报错"我没有在 DeepSeek 官方端点上验证过——我是从报错文案反推的。你试完如果还报,把配置和完整报错贴出来。 利益相关:我维护 pi2dsh,上面全是 DSH 官方 |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
本轮运行失败The
reasoning_contentin the thinking mode must be passed back to the API.INVALID_REQUEST
ds你自己都不在源码上支持切换思维等级。
All reactions