✗ WRONG

any-llm 1.40.2

finish.unknown-value · ollama

Back to results · Scenario

Requirements

IdLevelStatusEvidence
response-returnedMUSTSATISFIEDoutcome=returned; error.category=null; truth.error=null
finish-is-otherMUSTCONTRADICTEDfinish.value="stop" (primary: choices[0].finish_reason); truth.finish="other"; required finish="other"
text-reportedMUSTSATISFIEDtext.value="Octopuses are unique marine invertebrates that possess three separate hearts, enabling" (primary); truth.text="Octopuses are unique marine invertebrates that possess three separate hearts, enabling"
raw-finish-reportedSHOULDCONTRADICTEDfinish.raw="stop"; truth.raw_finish="wiretruth_unknown_reason"

What the provider sent

Finish
other
Raw finish
wiretruth_unknown_reason
Text
Octopuses are unique marine invertebrates that possess three separate hearts, enabling
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": 28,
  "input": 32,
  "output": 16,
  "raw": {
    "eval_count": 16,
    "prompt_eval_cached_count": 28,
    "prompt_eval_count": 32
  },
  "reasoning": null,
  "total": 48
}
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:21.735707058Z",
  "message": {
    "role": "assistant",
    "content": "Octopuses are unique marine invertebrates that possess three separate hearts, enabling"
  },
  "done": true,
  "done_reason": "wiretruth_unknown_reason",
  "total_duration": 1180977461,
  "load_duration": 2015632,
  "prompt_eval_count": 32,
  "prompt_eval_cached_count": 28,
  "prompt_eval_duration": 70673000,
  "eval_count": 16,
  "eval_duration": 1106321000
}

What the library reported

Outcome
returned
Finish
{
  "raw": "stop",
  "source": "choices[0].finish_reason",
  "surface": "primary",
  "value": "stop"
}
Text
Value
Octopuses are unique marine invertebrates that possess three separate hearts, enabling
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": null,
  "input": 32,
  "output": 16,
  "reasoning": null,
  "surface": {
    "cached_input": "absent",
    "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": 174.52279664576054,
  "error": null,
  "finish": {
    "raw": "stop",
    "source": "choices[0].finish_reason",
    "surface": "primary",
    "value": "stop"
  },
  "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 are unique marine invertebrates that possess three separate hearts, enabling"
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": null,
    "input": 32,
    "output": 16,
    "reasoning": null,
    "surface": {
      "cached_input": "absent",
      "input": "primary",
      "output": "primary",
      "reasoning": "absent",
      "total": "primary"
    },
    "total": 48
  }
}

Fixture

derived ollama/finish.unknown-value

ProvenanceValue
Transformreplace_finish_value
Source fixtureollama/truncation.text
RationaleThe provider sends a finish value that a library may not recognize.
Evidencehttps://github.com/BerriAI/litellm/issues/21347

Reproduce

wiretruth serve ollama/finish.unknown-value

Plain-library snippet from the shim manifest.

any_llm.completion(model=model, provider='ollama', api_base=WIRETRUTH_BASE_URL_OLLAMA, api_key=WIRETRUTH_API_KEY)

Upstream

documented-behavior

Fixed in: not specified

any-llm documents the fallback: a done_reason outside stop, length, tool_calls, content_filter and function_call is reported as stop (https://github.com/mozilla-ai/any-llm/blob/18ed82b8ae89db560bf0b1ec8bccb752fc0e2b5d/src/any_llm/providers/ollama/utils.py#L33-L46). The caller cannot tell an unfamiliar reason from a normal stop.

History

VersionGrade
1.40.2✗ WRONG
1.38.0✗ WRONG
1.33.0✗ WRONG