focus/crates/focus-providers
DaiChaoXiong 107f1f9f42 fix(providers): echo reasoning_content back for thinking-mode APIs
DeepSeek's thinking mode rejects a replayed assistant message that omits its
reasoning ('the reasoning_text must be passed back to the API', HTTP 400).
The Chat Completions serializer now includes thinking blocks as
reasoning_content on assistant messages; OpenAI official never produces
thinking blocks, so the field is only sent when present — safe for both.
Regression test: a replayed assistant carries reasoning_content.
2026-08-09 21:48:29 +08:00
..
src fix(providers): echo reasoning_content back for thinking-mode APIs 2026-08-09 21:48:29 +08:00
tests fix(providers): echo reasoning_content back for thinking-mode APIs 2026-08-09 21:48:29 +08:00
Cargo.toml feat(providers): rewrite Anthropic and OpenAI providers 2026-08-09 20:59:49 +08:00