✓ PASS

vercel-ai 7.0.153

finish.stop-sequence · gemini

Back to results · Scenario

Requirements

IdLevelStatusEvidence
finish-is-stopMUSTSATISFIEDfinish.value="stop" (primary: result.finishReason); truth.finish="stop"; required finish="stop"
text-reportedMUSTSATISFIEDtext.value="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, " (primary); truth.text="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "

What the provider sent

Finish
stop
Raw finish
STOP
Text
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": null,
  "input": 21,
  "output": 30,
  "raw": {
    "candidatesTokenCount": 30,
    "promptTokenCount": 21,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 21
      }
    ],
    "serviceTier": "standard",
    "totalTokenCount": 51
  },
  "reasoning": null,
  "total": 51
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json; charset=UTF-8
body (json):
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "text": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ",
            "thoughtSignature": "EmAKXgFpFH0TB9eX2mz0PdUqpfsOVm6XLVI/MPPB2Ivo9ftB5fI75Giv4DmlmP+aHnLKyj34VqanETM/hQNxKU9I4/c8YY5drmNJ39VIyE0P3GPCVDdf8KMeqzIe/hLpiss="
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "index": 0
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 21,
    "candidatesTokenCount": 30,
    "totalTokenCount": 51,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 21
      }
    ],
    "serviceTier": "standard"
  },
  "modelVersion": "gemini-3.5-flash-lite",
  "responseId": "cwTOapKHHbPP_PUP3-KB6A4"
}

What the library reported

Outcome
returned
Finish
{
  "raw": "STOP",
  "source": "result.finishReason",
  "surface": "primary",
  "value": "stop"
}
Text
Value
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 0,
  "input": 21,
  "output": 30,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 51
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 106.75466799999998,
  "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": "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 21,
    "output": 30,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 51
  }
}

Fixture

recorded gemini/finish.stop-sequence

ProvenanceValue
Recorded at2026-10-13T10:14:11Z
Requested modelgemini-3.5-flash-lite
Returned modelgemini-3.5-flash-lite
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38381941285

Reproduce

wiretruth serve gemini/finish.stop-sequence

Plain-library snippet from the shim manifest.

createGoogleGenerativeAI({ baseURL: WIRETRUTH_BASE_URL_GEMINI + '/v1beta', apiKey })(model)

Upstream

No matching upstream report.

History

VersionGrade
7.0.153✓ PASS
7.0.146✓ PASS
7.0.142✓ PASS