✓ PASS

vercel-ai 7.0.153

truncation.text · gemini

Back to results · Scenario

Requirements

IdLevelStatusEvidence
cause-is-truncationMUSTSATISFIEDfinish.value="length" (primary: result.finishReason); truth.finish="length"; error.category=null; structured.returned_as_success=false
text-reportedSHOULDSATISFIEDtext.value="Octopuses are masters of disguise, utilizing an extraordinary biological" (primary); truth.text="Octopuses are masters of disguise, utilizing an extraordinary biological"
usage-reportedSHOULDSATISFIEDusage.input=22 (primary); truth.usage.input=22; usage.output=12 (primary); truth.usage.output=12

What the provider sent

Finish
length
Raw finish
MAX_TOKENS
Text
Octopuses are masters of disguise, utilizing an extraordinary biological
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": null,
  "input": 22,
  "output": 12,
  "raw": {
    "candidatesTokenCount": 12,
    "promptTokenCount": 22,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 22
      }
    ],
    "serviceTier": "standard",
    "totalTokenCount": 34
  },
  "reasoning": null,
  "total": 34
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json; charset=UTF-8
body (json):
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "text": "Octopuses are masters of disguise, utilizing an extraordinary biological",
            "thoughtSignature": "EmAKXgFpFH0Tm8qzVWNDFvDnBwobD+/9o7uFQz9+c2VcCrTB9RWT+X+x31DAAin+FtIl2C83hppDgmzNy1HB9PPsQ8rPuUnop8Dz511I6ZzJISG/duJhXlK9Qx4iq7WblXs="
          }
        ],
        "role": "model"
      },
      "finishReason": "MAX_TOKENS",
      "index": 0
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 22,
    "candidatesTokenCount": 12,
    "totalTokenCount": 34,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 22
      }
    ],
    "serviceTier": "standard"
  },
  "modelVersion": "gemini-3.5-flash-lite",
  "responseId": "qATOaqvbNv6NjMcPlvHCoA4"
}

What the library reported

Outcome
returned
Finish
{
  "raw": "MAX_TOKENS",
  "source": "result.finishReason",
  "surface": "primary",
  "value": "length"
}
Text
Value
Octopuses are masters of disguise, utilizing an extraordinary biological
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 0,
  "input": 22,
  "output": 12,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 34
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 119.98712999999998,
  "error": null,
  "finish": {
    "raw": "MAX_TOKENS",
    "source": "result.finishReason",
    "surface": "primary",
    "value": "length"
  },
  "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 are masters of disguise, utilizing an extraordinary biological"
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 22,
    "output": 12,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 34
  }
}

Fixture

recorded gemini/truncation.text

ProvenanceValue
Recorded at2026-10-13T10:15:04Z
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/truncation.text

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