✓ PASS

vercel-ai 7.0.153

finish.unknown-value · ollama-openai

Back to results · Scenario

Requirements

IdLevelStatusEvidence
response-returnedMUSTSATISFIEDoutcome=returned; error.category=null; truth.error=null
finish-is-otherMUSTSATISFIEDfinish.value="other" (primary: result.finishReason); truth.finish="other"; required finish="other"
text-reportedMUSTSATISFIEDtext.value="Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage" (primary); truth.text="Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"
raw-finish-reportedSHOULDSATISFIEDfinish.raw="wiretruth_unknown_reason"; truth.raw_finish="wiretruth_unknown_reason"

What the provider sent

Finish
other
Raw finish
wiretruth_unknown_reason
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": "wiretruth_unknown_reason"
    }
  ],
  "usage": {
    "prompt_tokens": 32,
    "prompt_tokens_details": {
      "cached_tokens": 28
    },
    "completion_tokens": 16,
    "total_tokens": 48
  }
}

What the library reported

Outcome
returned
Finish
{
  "raw": "wiretruth_unknown_reason",
  "source": "result.finishReason",
  "surface": "primary",
  "value": "other"
}
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": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 48
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 98.263665,
  "error": null,
  "finish": {
    "raw": "wiretruth_unknown_reason",
    "source": "result.finishReason",
    "surface": "primary",
    "value": "other"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "generateText",
    "language": "javascript",
    "name": "vercel-ai",
    "version": "7.0.153"
  },
  "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": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 48
  }
}

Fixture

derived ollama-openai/finish.unknown-value

ProvenanceValue
Transformreplace_finish_value
Source fixtureollama-openai/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-openai/finish.unknown-value

Plain-library snippet from the shim manifest.

createOpenAICompatible({ name: 'ollama', baseURL: WIRETRUTH_BASE_URL_OLLAMA_OPENAI })(model)

Upstream

No matching upstream report.

History

VersionGrade
7.0.153✓ PASS
7.0.146✓ PASS
7.0.142✓ PASS