✓ PASS
litellm 1.105.5
stream.missing-finish-abort · ollama
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| no-normal-stop | MUST | SATISFIED | outcome=raised; finish.value=null (absent); truth.finish="none"; forbidden finish="stop" |
| stream-incomplete | MUST | SATISFIED | stream.completed=false; outcome=raised; truth.stream_completed=false |
What the provider sent
- Finish
- none
- Raw finish
null
- Text
- Octopuses are master of camouflage,
- Tool calls
[]
- Usage
{ "alternatives": {}, "cached_input": null, "input": null, "output": null, "raw": {}, "reasoning": null, "total": null }- Stream completed
false
- Error
null
Wire excerpt
status: 200
content-type: application/x-ndjson
body (ndjson):
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.421674958Z","message":{"role":"assistant","content":"Oct"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.533325633Z","message":{"role":"assistant","content":"op"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.533383631Z","message":{"role":"assistant","content":"uses"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.533501035Z","message":{"role":"assistant","content":" are"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.65099542Z","message":{"role":"assistant","content":" master"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.759551535Z","message":{"role":"assistant","content":" of"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.872036409Z","message":{"role":"assistant","content":" camouflage"},"done":false}
{"model":"qwen3.5:0.8b","created_at":"2026-10-12T19:01:19.982184117Z","message":{"role":"assistant","content":","},"done":false}
end: abortWhat the library reported
- Outcome
- raised
- Finish
{ "raw": null, "source": null, "surface": "absent", "value": null }- Text
- Value
- Octopuses are master of camouflage,
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": null, "input": null, "output": null, "reasoning": null, "surface": { "cached_input": "absent", "input": "absent", "output": "absent", "reasoning": "absent", "total": "absent" }, "total": null }- Stream
{ "chunks_seen": 8, "completed": false, "used": true }- Error
- Type
- litellm.exceptions.MidStreamFallbackError
- Message
- litellm.MidStreamFallbackError: litellm.APIConnectionError: Ollama_chatException - peer closed connection without sending complete message body (incomplete chunked read) Original exception: APIConnectionError: litellm.APIConnectionError: Ollama_chatException - peer closed connection without sending complete message body (incomplete chunked read)
- Category
- api
- Retry after
null
- Stack top
- litellm/litellm_core_utils/streaming_handler.py:2318
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 377.4006087332964,
"error": {
"category": "api",
"message": "litellm.MidStreamFallbackError: litellm.APIConnectionError: Ollama_chatException - peer closed connection without sending complete message body (incomplete chunked read) Original exception: APIConnectionError: litellm.APIConnectionError: Ollama_chatException - peer closed connection without sending complete message body (incomplete chunked read)",
"retry_after": null,
"stack_top": "litellm/litellm_core_utils/streaming_handler.py:2318",
"type": "litellm.exceptions.MidStreamFallbackError"
},
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "litellm.completion",
"language": "python",
"name": "litellm",
"version": "1.105.5"
},
"notes": [],
"outcome": "raised",
"stream": {
"chunks_seen": 8,
"completed": false,
"used": true
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "primary",
"value": "Octopuses are master of camouflage,"
},
"tool_calls": [],
"unsupported_reason": null,
"usage": {
"cached_input": null,
"input": null,
"output": null,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "absent",
"output": "absent",
"reasoning": "absent",
"total": "absent"
},
"total": null
}
}Fixture
derived ollama/stream.missing-finish-abort
| Provenance | Value |
|---|---|
| Transform | cut_stream_after |
| Source fixture | ollama/truncation.text-stream |
| Rationale | The connection closes before the stream has delivered every event. |
| Evidence | https://github.com/openai/openai-python/issues/2065 |
Reproduce
wiretruth serve ollama/stream.missing-finish-abortPlain-library snippet from the shim manifest.
litellm.completion(model='ollama_chat/' + model, api_base=WIRETRUTH_BASE_URL_OLLAMA, api_key=WIRETRUTH_API_KEY); host rootUpstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.105.5 | ✓ PASS |
| 1.105.1 | ✓ PASS |