focus/crates/focus-providers
DaiChaoXiong 80333ee127 fix(providers): capture and replay Responses API reasoning items
The real endpoint log (deepseek-v4-flash) shows the Responses protocol: the
thinking arrives as a 'reasoning' output item plus response.reasoning_text.delta
events, which we ignored — so the thinking never reached the transcript and
the replayed history omitted it ('reasoning_text must be passed back', 400).

- output_item.added with item.type 'reasoning' opens a thinking block;
  response.reasoning_text.delta appends to it
- messages_to_responses now replays assistant thinking as a 'reasoning' item
  with a reasoning_text part (before the text item)
- regression tests: reasoning capture and reasoning-item replay
- (the earlier chat-completions reasoning_content/text fixes remain for the
  chat protocol)
2026-08-09 21:58:16 +08:00
..
src fix(providers): capture and replay Responses API reasoning items 2026-08-09 21:58:16 +08:00
tests fix(providers): capture and replay Responses API reasoning items 2026-08-09 21:58:16 +08:00
Cargo.toml feat(providers): rewrite Anthropic and OpenAI providers 2026-08-09 20:59:49 +08:00