✓ PASS

vercel-ai 7.0.153

request.max-tokens-field · openai-chat

Back to results · Scenario

Requirements

IdLevelStatusEvidence
limit-fieldMUSTSATISFIEDrequest[0].json_body.max_completion_tokens=16; required=16
no-legacy-limitMUSTSATISFIEDmax_tokens absent from all 1 logged requests
no-temperatureSHOULDSATISFIEDtemperature absent from all 1 logged requests

What the provider sent

Finish
stop
Raw finish
stop
Text
Io, Europa, and Ganymede.
Tool calls
[]
Usage
{
  "alternatives": {},
  "cached_input": 0,
  "input": 12,
  "output": 12,
  "raw": {
    "completion_tokens": 12,
    "completion_tokens_details": {
      "accepted_prediction_tokens": 0,
      "audio_tokens": 0,
      "reasoning_tokens": 0,
      "rejected_prediction_tokens": 0
    },
    "prompt_tokens": 12,
    "prompt_tokens_details": {
      "audio_tokens": 0,
      "cache_write_tokens": 0,
      "cached_tokens": 0
    },
    "total_tokens": 24
  },
  "reasoning": 0,
  "total": 24
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json
body (json):
{
  "id": "chatcmpl-EXmWRUbnnv27jZGJrJnukzq7uKTpC",
  "object": "chat.completion",
  "created": 1791720051,
  "model": "gpt-6-luna",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Io, Europa, and Ganymede.",
        "refusal": null,
        "annotations": []
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 12,
    "total_tokens": 24,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "cache_write_tokens": 0,
      "audio_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0,
      "audio_tokens": 0,
      "accepted_prediction_tokens": 0,
      "rejected_prediction_tokens": 0
    }
  },
  "service_tier": "default",
  "system_fingerprint": null
}

What the library reported

Outcome
returned
Finish
{
  "raw": "stop",
  "source": "result.finishReason",
  "surface": "primary",
  "value": "stop"
}
Text
Value
Io, Europa, and Ganymede.
Surface
primary
Tool calls
[]
Usage
{
  "cached_input": 0,
  "input": 12,
  "output": 12,
  "reasoning": 0,
  "surface": {
    "cached_input": "primary",
    "input": "primary",
    "output": "primary",
    "reasoning": "primary",
    "total": "primary"
  },
  "total": 24
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 95.02005999999997,
  "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": "Io, Europa, and Ganymede."
  },
  "tool_calls": [],
  "unsupported_reason": null,
  "usage": {
    "cached_input": 0,
    "input": 12,
    "output": 12,
    "reasoning": 0,
    "surface": {
      "cached_input": "primary",
      "input": "primary",
      "output": "primary",
      "reasoning": "primary",
      "total": "primary"
    },
    "total": 24
  }
}

Fixture

recorded openai-chat/request.max-tokens-field

ProvenanceValue
Recorded at2026-10-11T12:00:49Z
Requested modelgpt-6-luna
Returned modelgpt-6-luna
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38137650119

Reproduce

wiretruth serve openai-chat/request.max-tokens-field

Plain-library snippet from the shim manifest.

createOpenAI({ baseURL: WIRETRUTH_BASE_URL_OPENAI_CHAT, apiKey }).chat(model)

Upstream

No matching upstream report.

History

VersionGrade
7.0.153✓ PASS
7.0.146✓ PASS
7.0.142✓ PASS