✓ PASS
any-llm 1.40.2
finish.stop-sequence · gemini
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| finish-is-stop | MUST | SATISFIED | finish.value="stop" (primary: choices[0].finish_reason); truth.finish="stop"; required finish="stop" |
| text-reported | MUST | SATISFIED | text.value="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, " (primary); truth.text="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, " |
Notes
- shim: Gemini reasoning_effort none is unsupported by any-llm; omitted to use the model default.
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": "choices[0].finish_reason", "surface": "primary", "value": "stop" }- Text
- Value
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": null, "input": 21, "output": 30, "reasoning": null, "surface": { "cached_input": "absent", "input": "primary", "output": "primary", "reasoning": "absent", "total": "primary" }, "total": 51 }- Stream
{ "chunks_seen": null, "completed": null, "used": false }- Error
null
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 576.0596049949527,
"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": [
"Gemini reasoning_effort none is unsupported by any-llm; omitted to use the model default."
],
"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": null,
"input": 21,
"output": 30,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "primary",
"output": "primary",
"reasoning": "absent",
"total": "primary"
},
"total": 51
}
}Fixture
recorded gemini/finish.stop-sequence
| Provenance | Value |
|---|---|
| Recorded at | 2026-10-13T10:14:11Z |
| Requested model | gemini-3.5-flash-lite |
| Returned model | gemini-3.5-flash-lite |
| CI run | https://github.com/kartsan03/wiretruth/actions/runs/38381941285 |
Reproduce
wiretruth serve gemini/finish.stop-sequencePlain-library snippet from the shim manifest.
any_llm.completion(model=model, provider='gemini', api_base=WIRETRUTH_BASE_URL_GEMINI, api_key=WIRETRUTH_API_KEY); host-root base URLUpstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.40.2 | ✓ PASS |
| 1.38.0 | ✓ PASS |
| 1.33.0 | ✓ PASS |