✓ PASS
any-llm 1.40.2
truncation.text-stream · openai-chat
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| cause-is-truncation | MUST | SATISFIED | finish.value="length" (primary: choices[0].finish_reason); truth.finish="length"; error.category=null; structured.returned_as_success=false |
| text-reported | SHOULD | SATISFIED | text.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-reported | SHOULD | SATISFIED | usage.output=null (absent); truth.usage.output=null; wire carried no output; library reported none |
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": "choices[0].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": null, "input": null, "output": null, "reasoning": null, "surface": { "cached_input": "absent", "input": "absent", "output": "absent", "reasoning": "absent", "total": "absent" }, "total": null }- Stream
{ "chunks_seen": 15, "completed": null, "used": true }- Error
null
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 216.3267470896244,
"error": null,
"finish": {
"raw": "length",
"source": "choices[0].finish_reason",
"surface": "primary",
"value": "length"
},
"format": "wiretruth.observation/v1",
"library": {
"api": "any_llm.completion",
"language": "python",
"name": "any-llm",
"version": "1.40.2"
},
"notes": [],
"outcome": "returned",
"stream": {
"chunks_seen": 15,
"completed": null,
"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": null,
"input": null,
"output": null,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "absent",
"output": "absent",
"reasoning": "absent",
"total": "absent"
},
"total": null
}
}Fixture
recorded openai-chat/truncation.text-stream
| Provenance | Value |
|---|---|
| Recorded at | 2026-11-10T20:10:25Z |
| Requested model | gpt-6-luna |
| Returned model | gpt-6-luna |
| CI run | https://github.com/kartsan03/wiretruth/actions/runs/42892575092 |
Reproduce
wiretruth serve openai-chat/truncation.text-streamPlain-library snippet from the shim manifest.
any_llm.completion(model=model, provider='openai', api_base=WIRETRUTH_BASE_URL_OPENAI_CHAT, api_key=WIRETRUTH_API_KEY)Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.40.2 | ✓ PASS |
| 1.38.0 | ✓ PASS |
| 1.33.0 | ✓ PASS |