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
[Bug] Ollama endpoint /api/chat fails with empty chunks when stream: true (OpenAI endpoint works) #436
When using the Ollama-compatible endpoint (/api/chat) with "stream": true, the server instantly returns empty SSE chunks containing only metadata (no content) and immediately closes the stream with "done": true.
This completely breaks tools like Claude Code (via proxies like claudish or LiteLLM) that rely on the Ollama streaming API.
Steps to Reproduce:
Run a simple streaming request against the Ollama endpoint:
Expected Behavior:
The stream should return the generated text chunk by chunk. Note: The OpenAI-compatible endpoint (/v1/chat/completions) works perfectly fine with stream: true on the exact same model. Also, setting "stream": false on the Ollama endpoint works correctly.
Activity
ZaneNi commentedon Mar 23, 2026
@TRS-WOB We no longer maintain the Ollama API as of v0.9.17. Thank you.