✓ PASS

litellm 1.105.5

truncation.text-stream · openai-chat

Back to results · Scenario

Requirements

IdLevelStatusEvidence
cause-is-truncationMUSTSATISFIEDfinish.value="length" (primary: choices[0].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-reportedSHOULDSATISFIEDusage.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": 730.2830601111054,
  "error": null,
  "finish": {
    "raw": "length",
    "source": "choices[0].finish_reason",
    "surface": "primary",
    "value": "length"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "litellm.completion",
    "language": "python",
    "name": "litellm",
    "version": "1.105.5"
  },
  "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

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.

litellm.completion(model='openai/' + model, api_base=WIRETRUTH_BASE_URL_OPENAI_CHAT, api_key=WIRETRUTH_API_KEY)

Upstream

No matching upstream report.

History

VersionGrade
1.105.5✓ PASS
1.105.1✓ PASS