You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Streaming parser does not handle Ollama's reasoning field for thinking models #805
When using thinking/reasoning models via Ollama (e.g. Qwen 3.5), Ollama's OpenAI-compatible streaming endpoint places the model's thinking output in a field named reasoning within the delta object. The streaming parser in openai.rs (around line 1152) only checks for reasoning_content, not reasoning. As a result, the thinking output is silently dropped.
delta["reasoning_content"] — not present in Ollama's response
It does not check delta["reasoning"], which is where Ollama places the output.
Expected Behavior
The parser should also check delta["reasoning"] as a fallback, e.g.: if let Some(reasoning) = delta["reasoning_content"].as_str().or_else(|| delta["reasoning"].as_str()) {
Steps to Reproduce
Pull a thinking model in Ollama: ollama pull qwen3.5
Configure OpenFang with Ollama and qwen3.5:latest
Send a chat message
The thinking output is dropped — no text appears
OpenFang Version
0.5.1
Operating System
Linux (x86_64)
Logs / Screenshots
Version: 0.5.1 (confirmed by reading source at crates/openfang-runtime/src/drivers/openai.rs)
Fixed in v0.5.3. The streaming parser now checks both delta["reasoning_content"] and delta["reasoning"] so Ollama thinking models like Qwen 3.5 work correctly.
Activity
fix: support Ollama 'reasoning' field in streaming and non-streaming …
fix: resolve 6 open bugs (#834, #805, #820, #848, #826, #836)
jaberjaber23 commentedon Mar 27, 2026
Fixed in v0.5.3. The streaming parser now checks both delta["reasoning_content"] and delta["reasoning"] so Ollama thinking models like Qwen 3.5 work correctly.
fix: resolve 6 open bugs (RightNow-AI#834, RightNow-AI#805, RightNow-…
fix: handle Ollama 'reasoning' field (not just 'reasoning_content')
13 remaining items