✓ PASS

vercel-ai 7.0.153

finish.stop-sequence · ollama-openai

Back to results · Scenario

Requirements

IdLevelStatusEvidence
finish-is-stopMUSTSATISFIEDfinish.value="stop" (primary: result.finishReason); truth.finish="stop"; required finish="stop"
text-reportedMUSTSATISFIEDtext.value="```text\n1\n2\n3\n4\n5\n6\n7\n8\n9" (primary); truth.text="```text\n1\n2\n3\n4\n5\n6\n7\n8\n9"

What the provider sent

Finish
stop
Raw finish
stop
Text
```text 1 2 3 4 5 6 7 8 9
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": 0,
  "input": 32,
  "output": 22,
  "raw": {
    "completion_tokens": 22,
    "prompt_tokens": 32,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "total_tokens": 54
  },
  "reasoning": null,
  "total": 54
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
  "id": "chatcmpl-551",
  "object": "chat.completion",
  "created": 1791831669,
  "model": "qwen3.5:0.8b",
  "system_fingerprint": "fp_ollama",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "```text\n1\n2\n3\n4\n5\n6\n7\n8\n9"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 32,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens": 22,
    "total_tokens": 54
  }
}

What the library reported

Outcome
returned
Finish
{
  "raw": "stop",
  "source": "result.finishReason",
  "surface": "primary",
  "value": "stop"
}
Text
Value
```text 1 2 3 4 5 6 7 8 9
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 0,
  "input": 32,
  "output": 22,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 54
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 110.81375299999996,
  "error": null,
  "finish": {
    "raw": "stop",
    "source": "result.finishReason",
    "surface": "primary",
    "value": "stop"
  },
  "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": "```text\n1\n2\n3\n4\n5\n6\n7\n8\n9"
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 32,
    "output": 22,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 54
  }
}

Fixture

recorded ollama-openai/finish.stop-sequence

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

Reproduce

wiretruth serve ollama-openai/finish.stop-sequence

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