claw-code/rust/crates/api
Heo, Sung 5d67e76788 fix(api): surface Ollama `reasoning` field for Qwen3 thinking models
Ollama's Qwen3 thinking models stream the chain-of-thought in a `reasoning`
field with an empty `content`. The OpenAI-compatible provider only recognised
`reasoning_content`/`thinking`, so reasoning-only responses surfaced no text
at all.

Add `reasoning` to both the streaming (`ChunkDelta`) and non-streaming
(`ChatMessage`) shapes and fall back to it when extracting thinking, preserving
the existing thinking/text content-block separation. Covered by two new tests
for the streaming and non-streaming paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-06 08:09:18 +09:00
..
benches
…
src fix(api): surface Ollama `reasoning` field for Qwen3 thinking models 2026-06-06 08:09:18 +09:00
tests
…
Cargo.toml
…