Remove the hasToolInteraction guard in filterDeepSeekReasoningTurn that was stripping reasoning_content from non-tool interaction assistant messages. DeepSeek V3/V4+ thinking mode rejects requests where any assistant message is missing reasoning_content, returning 400: "The reasoning_content in the thinking mode must be passed back to the API." This is a follow-up to the streaming fix that captured reasoning_content from SSE deltas. That fix alone wasn't sufficient because reasoning_content was still being stripped on replay for plain assistant turns. |
||
|---|---|---|
| .. | ||
| provider.go | ||
| provider_test.go | ||