✓ PASS

pydantic-ai 2.61.0

truncation.text-stream · openai-chat

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 hide from predators by changing the colour and appearance of" (primary); truth.text="Octopuses hide from predators by changing the colour and appearance of"
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 hide from predators by changing the colour and appearance of
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; charset=utf-8
body (sse):
data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"finish_reason":null}],"obfuscation":"feZB1AQKjijEc"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"Oct"},"finish_reason":null}],"obfuscation":"jBX8AFkVWKpt"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"op"},"finish_reason":null}],"obfuscation":"ZBBPtSH7GfSkH"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"uses"},"finish_reason":null}],"obfuscation":"SqK8a3OxjOK"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" hide"},"finish_reason":null}],"obfuscation":"8QrrLej1rM"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" from"},"finish_reason":null}],"obfuscation":"Ep0VGNqP4q"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" predators"},"finish_reason":null}],"obfuscation":"pLO6k"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" by"},"finish_reason":null}],"obfuscation":"940DKBVPKI8d"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" changing"},"finish_reason":null}],"obfuscation":"eIsVHD"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" the"},"finish_reason":null}],"obfuscation":"RyzAEBghfGX"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" colour"},"finish_reason":null}],"obfuscation":"8V8JeYkl"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" and"},"finish_reason":null}],"obfuscation":"sEJRI1kAQHB"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" appearance"},"finish_reason":null}],"obfuscation":"a530"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":" of"},"finish_reason":null}],"obfuscation":"9KrYoYlqtHCO"}


data: {"id":"chatcmpl-EimSgRaBjWKPh948vLqherqcWpzlh","object":"chat.completion.chunk","created":1794341426,"model":"gpt-6-luna","service_tier":"default","system_fingerprint":null,"choices":[{"index":0,"delta":{},"finish_reason":"length"}],"obfuscation":"sEphaf7"}


data: [DONE]

What the library reported

Outcome
returned
Finish
{
  "raw": "length",
  "source": "ModelResponse.finish_reason",
  "surface": "primary",
  "value": "length"
}
Text
Value
Octopuses hide from predators by changing the colour and appearance of
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": 16,
  "completed": true,
  "used": true
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 297.1017938107252,
  "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": 16,
    "completed": true,
    "used": true
  },
  "structured": {
    "attempted": false,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "primary",
    "value": "Octopuses hide from predators by changing the colour and appearance of"
  },
  "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 openai-chat/truncation.text-stream

ProvenanceValue
Recorded at2026-11-10T20:10:25Z
Requested modelgpt-6-luna
Returned modelgpt-6-luna
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/42892575092

Reproduce

wiretruth serve openai-chat/truncation.text-stream

Plain-library snippet from the shim manifest.

OpenAIChatModel(model, provider=OpenAIProvider(base_url=WIRETRUTH_BASE_URL_OPENAI_CHAT, api_key=WIRETRUTH_API_KEY))

Upstream

No matching upstream report.

History

VersionGrade
2.61.0✓ PASS
2.56.0✓ PASS