Replies: 2 comments
|
Looks like the In 2.0.0's bundled transformer:
DeepSeek's thinking mode wants the previous turn's Worth noting there's no DeepSeek-specific transformer in 2.0.0 — the registered set is Workaround until a reverse mapping exists: turn reasoning off on that route so the provider never emits "reasoning": { "enabled": false }One gotcha if you go looking for a knob here: Caveat on all of the above: this is from reading the bundled transformer in 2.0.0, not a live reproduction against DeepSeek. Treat the root cause as a strong hypothesis rather than a verified fix. |
|
Update with a version-level resolution, since this keeps biting people on 2.x: I pulled apart the v3 pipeline to check whether this still reproduces. It doesn't — v3.x moved the transformer chain into the So the practical matrix is:
One extra 2.x footnote for anyone tuning this: in the reasoning config, |
Uh oh!
There was an error while loading. Please reload this page.
API Error: 400 {"error":{"message":"Error from provider(deepseek,deepseek-v4-pro: 400):
{"error":{"message":"The
reasoning_contentin the thinking mode must be passed back to theAPI.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}Error: Error from
provider(deepseek,deepseek-v4-pro: 400): {"error":{"message":"The
reasoning_contentin the thinking modemust be passed back to the
API.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}\n at qn
(C:\Users\Markstien\AppData\Local\pnpm\global\5\.pnpm\@musistudio+claude-code-router@2.0.0\node_module
s\@musistudio\claude-code-router\dist\cli.js:582:7451)\n at fD
(C:\Users\Markstien\AppData\Local\pnpm\global\5\.pnpm\@musistudio+claude-code-router@2.0.0\node_module
s\@musistudio\claude-code-router\dist\cli.js:582:11338)\n at process.processTicksAndRejections
(node:internal/process/task_queues:105:5)\n at async cN (C:\Users\Markstien\AppData\Local\pnpm\global\
5\.pnpm\@musistudio+claude-code-router@2.0.0\node_modules\@musistudio\claude-code-router\dist\cli.js:582:
8659)","type":"api_error","code":"provider_response_error"}}
All reactions