✓ PASS

litellm 1.105.5

truncation.structured-output · ollama

Back to results · Scenario

Requirements

IdLevelStatusEvidence
no-partial-successMUSTSATISFIEDstructured.attempted=true; structured.returned_as_success=false
cause-is-truncationMUSTSATISFIEDfinish.value="length" (primary: choices[0].finish_reason); truth.finish="length"; error.category=null; structured.returned_as_success=false
text-reportedSHOULDSATISFIEDtext.value="{\n \"islands\": [\n {\n \"name\": \"Κορύδαιο\"," (primary); truth.text="{\n \"islands\": [\n {\n \"name\": \"Κορύδαιο\","
usage-reportedSHOULDSATISFIEDusage.input=30 (primary); truth.usage.input=30; usage.output=24 (primary); truth.usage.output=24

What the provider sent

Finish
length
Raw finish
length
Text
{ "islands": [ { "name": "Κορύδαιο",
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": 0,
  "input": 30,
  "output": 24,
  "raw": {
    "eval_count": 24,
    "prompt_eval_cached_count": 0,
    "prompt_eval_count": 30
  },
  "reasoning": null,
  "total": 54
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json; charset=utf-8
body (json):
{
  "model": "qwen3.5:0.8b",
  "created_at": "2026-10-12T19:01:19.05881681Z",
  "message": {
    "role": "assistant",
    "content": "{\n  \"islands\": [\n    {\n      \"name\": \"Κορύδαιο\","
  },
  "done": true,
  "done_reason": "length",
  "total_duration": 1619139724,
  "load_duration": 2649959,
  "prompt_eval_count": 30,
  "prompt_eval_cached_count": 0,
  "prompt_eval_duration": 351993000,
  "eval_count": 24,
  "eval_duration": 1256211000
}

What the library reported

Outcome
returned
Finish
{
  "raw": "length",
  "source": "choices[0].finish_reason",
  "surface": "primary",
  "value": "length"
}
Text
Value
{ "islands": [ { "name": "Κορύδαιο",
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": null,
  "input": 30,
  "output": 24,
  "reasoning": null,
  "surface": {
    "cached_input": "absent",
    "input": "primary",
    "output": "primary",
    "reasoning": "absent",
    "total": "primary"
  },
  "total": 54
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 341.96478966623545,
  "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": null,
    "completed": null,
    "used": false
  },
  "structured": {
    "attempted": true,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "primary",
    "value": "{\n  \"islands\": [\n    {\n      \"name\": \"Κορύδαιο\","
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": null,
    "input": 30,
    "output": 24,
    "reasoning": null,
    "surface": {
      "cached_input": "absent",
      "input": "primary",
      "output": "primary",
      "reasoning": "absent",
      "total": "primary"
    },
    "total": 54
  }
}

Fixture

recorded ollama/truncation.structured-output

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

Reproduce

wiretruth serve ollama/truncation.structured-output

Plain-library snippet from the shim manifest.

litellm.completion(model='ollama_chat/' + model, api_base=WIRETRUTH_BASE_URL_OLLAMA, api_key=WIRETRUTH_API_KEY); host root

Upstream

No matching upstream report.

History

VersionGrade
1.105.5✓ PASS
1.105.1✓ PASS