✓ PASS

any-llm 1.40.2

truncation.text · ollama-openai

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, like many marine invertebrates, employ sophisticated methods to camouflage" (primary); truth.text="Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"
usage-reportedSHOULDSATISFIEDusage.input=32 (primary); truth.usage.input=32; usage.output=16 (primary); truth.usage.output=16

What the provider sent

Finish
length
Raw finish
length
Text
Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": 28,
  "input": 32,
  "output": 16,
  "raw": {
    "completion_tokens": 16,
    "prompt_tokens": 32,
    "prompt_tokens_details": {
      "cached_tokens": 28
    },
    "total_tokens": 48
  },
  "reasoning": null,
  "total": 48
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
  "id": "chatcmpl-54",
  "object": "chat.completion",
  "created": 1791831683,
  "model": "qwen3.5:0.8b",
  "system_fingerprint": "fp_ollama",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"
      },
      "finish_reason": "length"
    }
  ],
  "usage": {
    "prompt_tokens": 32,
    "prompt_tokens_details": {
      "cached_tokens": 28
    },
    "completion_tokens": 16,
    "total_tokens": 48
  }
}

What the library reported

Outcome
returned
Finish
{
  "raw": "length",
  "source": "choices[0].finish_reason",
  "surface": "primary",
  "value": "length"
}
Text
Value
Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 28,
  "input": 32,
  "output": 16,
  "reasoning": null,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "absent",
    "total": "primary"
  },
  "total": 48
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 133.6092483252287,
  "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": null,
    "completed": null,
    "used": false
  },
  "structured": {
    "attempted": false,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "primary",
    "value": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 28,
    "input": 32,
    "output": 16,
    "reasoning": null,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "absent",
      "total": "primary"
    },
    "total": 48
  }
}

Fixture

recorded ollama-openai/truncation.text

ProvenanceValue
Recorded at2026-10-12T19:01:22Z
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

Plain-library snippet from the shim manifest.

any_llm.completion(model=model, provider='openai', api_base=WIRETRUTH_BASE_URL_OLLAMA_OPENAI, api_key=WIRETRUTH_API_KEY)

Upstream

No matching upstream report.

History

VersionGrade
1.40.2✓ PASS
1.38.0✓ PASS
1.33.0✓ PASS