✓ PASS
any-llm 1.40.2
request.max-tokens-field · openai-chat
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| limit-field | MUST | SATISFIED | request[0].json_body.max_completion_tokens=16; required=16 |
| no-legacy-limit | MUST | SATISFIED | max_tokens absent from all 1 logged requests |
| no-temperature | SHOULD | SATISFIED | temperature 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": "choices[0].finish_reason", "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": 161.50500252842903,
"error": null,
"finish": {
"raw": "stop",
"source": "choices[0].finish_reason",
"surface": "primary",
"value": "stop"
},
"format": "wiretruth.observation/v1",
"library": {
"api": "any_llm.completion",
"language": "python",
"name": "any-llm",
"version": "1.40.2"
},
"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
| Provenance | Value |
|---|---|
| Recorded at | 2026-10-11T12:00:49Z |
| Requested model | gpt-6-luna |
| Returned model | gpt-6-luna |
| CI run | https://github.com/kartsan03/wiretruth/actions/runs/38137650119 |
Reproduce
wiretruth serve openai-chat/request.max-tokens-fieldPlain-library snippet from the shim manifest.
any_llm.completion(model=model, provider='openai', api_base=WIRETRUTH_BASE_URL_OPENAI_CHAT, api_key=WIRETRUTH_API_KEY)Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.40.2 | ✓ PASS |
| 1.38.0 | ✓ PASS |
| 1.33.0 | ✓ PASS |