✓ PASS
tanstack-ai 1.4.0
stream.error-midstream · ollama
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| error-reported | MUST | SATISFIED | outcome=returned; error.category="api"; finish.value=null (absent); truth.finish="error" |
What the provider sent
- Finish
- error
- 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
- Message
- an error was encountered while running the model
- Status
null
- Type
null
- Code
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}
{"error":"an error was encountered while running the model"}What the library reported
- Outcome
- returned
- 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": 11, "completed": false, "used": true }- Error
- Type
- RUN_ERROR
- Message
- an error was encountered while running the model
- Category
- api
- Retry after
null
- Stack top
null
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 94.87885599999998,
"error": {
"category": "api",
"message": "an error was encountered while running the model",
"retry_after": null,
"stack_top": null,
"type": "RUN_ERROR"
},
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "chat",
"language": "javascript",
"name": "tanstack-ai",
"version": "1.4.0"
},
"notes": [],
"outcome": "returned",
"stream": {
"chunks_seen": 11,
"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.error-midstream
| Provenance | Value |
|---|---|
| Transform | inject_error_event |
| Source fixture | ollama/truncation.text-stream |
| Rationale | The provider reports an error after starting a successful HTTP stream. |
| Evidence | https://docs.ollama.com/api/errors |
Reproduce
wiretruth serve ollama/stream.error-midstreamPlain-library snippet from the shim manifest.
createOllamaChat(model, { host: WIRETRUTH_BASE_URL_OLLAMA }); POST /api/chat.Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.4.0 | ✓ PASS |
| 1.0.0 | ✓ PASS |
| 0.71.0 | ✓ PASS |