✓ PASS

pydantic-ai 2.61.0

truncation.text-stream · ollama-openai

Back to results · Scenario

Requirements

IdLevelStatusEvidence
cause-is-truncationMUSTSATISFIEDfinish.value="length" (primary: ModelResponse.finish_reason); truth.finish="length"; error.category=null; structured.returned_as_success=false
text-reportedSHOULDSATISFIEDtext.value="Octopuses rely on their unique physiology to camouflage against the vast array of natural" (primary); truth.text="Octopuses rely on their unique physiology to camouflage against the vast array of natural"
usage-reportedSHOULDCONTRADICTEDusage.output=0 (primary); truth.usage.output=null; library reported output=0 but the wire carried no output

What the provider sent

Finish
length
Raw finish
length
Text
Octopuses rely on their unique physiology to camouflage against the vast array of natural
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": null,
  "input": null,
  "output": null,
  "raw": null,
  "reasoning": null,
  "total": null
}
Stream completed
true
Error
null
Wire excerpt
status: 200
content-type: text/event-stream
body (sse):
data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"role":"assistant","content":"Oct"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":"op"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":"uses"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" rely"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" on"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" their"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" unique"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" physiology"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" to"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" camouflage"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" against"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" vast"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" array"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{"content":" natural"},"finish_reason":null}]}


data: {"id":"chatcmpl-554","object":"chat.completion.chunk","created":1791831681,"model":"qwen3.5:0.8b","system_fingerprint":"fp_ollama","choices":[{"index":0,"delta":{},"finish_reason":"length"}]}


data: [DONE]

What the library reported

Outcome
returned
Finish
{
  "raw": "length",
  "source": "ModelResponse.finish_reason",
  "surface": "primary",
  "value": "length"
}
Text
Value
Octopuses rely on their unique physiology to camouflage against the vast array of natural
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 0,
  "input": 0,
  "output": 0,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 0
}
Stream
{
  "chunks_seen": 19,
  "completed": true,
  "used": true
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 304.0555315092206,
  "error": null,
  "finish": {
    "raw": "length",
    "source": "ModelResponse.finish_reason",
    "surface": "primary",
    "value": "length"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "Agent.run_stream_events",
    "language": "python",
    "name": "pydantic-ai",
    "version": "2.61.0"
  },
  "notes": [],
  "outcome": "returned",
  "stream": {
    "chunks_seen": 19,
    "completed": true,
    "used": true
  },
  "structured": {
    "attempted": false,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "primary",
    "value": "Octopuses rely on their unique physiology to camouflage against the vast array of natural"
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 0,
    "output": 0,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 0
  }
}

Fixture

recorded ollama-openai/truncation.text-stream

ProvenanceValue
Recorded at2026-10-12T19:01:21Z
Requested modelqwen3.5:0.8b
Returned modelqwen3.5:0.8b
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38294739276

Reproduce

wiretruth serve ollama-openai/truncation.text-stream

Plain-library snippet from the shim manifest.

OllamaModel(model, provider=OllamaProvider(base_url=WIRETRUTH_BASE_URL_OLLAMA_OPENAI, api_key=WIRETRUTH_API_KEY)); /v1 base

Upstream

No matching upstream report.

History

VersionGrade
2.61.0✓ PASS
2.56.0✓ PASS