focus/crates/focus-providers/src
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
..
anthropic.rs refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
common.rs feat(providers): rewrite Anthropic and OpenAI providers 2026-08-09 20:59:49 +08:00
config.rs refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
lib.rs feat(providers): rewrite Anthropic and OpenAI providers 2026-08-09 20:59:49 +08:00
openai.rs fix(providers): echo reasoning_content back for thinking-mode APIs 2026-08-09 21:48:29 +08:00