✓ PASS
litellm 1.105.5
usage.stream-final-chunk · gemini
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| usage-reported | MUST | SATISFIED | usage.input=13 (primary); truth.usage.input=13; usage.output=31 (primary); truth.usage.output=31 |
What the provider sent
- Finish
- stop
- Raw finish
- STOP
- Text
- The sky looks blue because molecules in Earth's atmosphere scatter short-wavelength blue light from the sun in all directions more than they scatter the other colors.
- Tool calls
[]
- Usage
{ "alternatives": {}, "cached_input": null, "input": 13, "output": 31, "raw": { "candidatesTokenCount": 31, "promptTokenCount": 13, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 13 } ], "serviceTier": "standard", "totalTokenCount": 44 }, "reasoning": null, "total": 44 }- Stream completed
true
- Error
null
Wire excerpt
status: 200
content-type: text/event-stream
body (sse):
data: {"candidates": [{"content": {"parts": [{"text": "The sky"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 13,"candidatesTokenCount": 2,"totalTokenCount": 15,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 13}],"serviceTier": "standard"},"modelVersion": "gemini-3.5-flash-lite","responseId": "ugTOaqmIKYGU_uMPo5fqSQ"}
data: {"candidates": [{"content": {"parts": [{"text": " looks blue because molecules in Earth's atmosphere scatter short-wavelength blue light from"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 13,"candidatesTokenCount": 18,"totalTokenCount": 31,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 13}],"serviceTier": "standard"},"modelVersion": "gemini-3.5-flash-lite","responseId": "ugTOaqmIKYGU_uMPo5fqSQ"}
data: {"candidates": [{"content": {"parts": [{"text": " the sun in all directions more than they scatter the other colors."}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 13,"candidatesTokenCount": 31,"totalTokenCount": 44,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 13}],"serviceTier": "standard"},"modelVersion": "gemini-3.5-flash-lite","responseId": "ugTOaqmIKYGU_uMPo5fqSQ"}
data: {"candidates": [{"content": {"parts": [{"text": "","thoughtSignature": "EmAKXgFpFH0TU4wpG/EyT9awmbm6yp5Wege7OQgCOOX5XVMcLyZSBXQ3kah+VjX+me4nWUIulgItkc3Z2pQUeOiQ8INcN8Gwp4egQk17BMU7jgg1xO/a5t/3z7gKP6ZLwBY="}],"role": "model"},"finishReason": "STOP","index": 0}],"usageMetadata": {"promptTokenCount": 13,"candidatesTokenCount": 31,"totalTokenCount": 44,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 13}],"serviceTier": "standard"},"modelVersion": "gemini-3.5-flash-lite","responseId": "ugTOaqmIKYGU_uMPo5fqSQ"}
What the library reported
- Outcome
- returned
- Finish
{ "raw": "stop", "source": "choices[0].finish_reason", "surface": "primary", "value": "stop" }- Text
- Value
- The sky looks blue because molecules in Earth's atmosphere scatter short-wavelength blue light from the sun in all directions more than they scatter the other colors.
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": null, "input": 13, "output": 31, "reasoning": null, "surface": { "cached_input": "absent", "input": "primary", "output": "primary", "reasoning": "absent", "total": "primary" }, "total": 44 }- Stream
{ "chunks_seen": 6, "completed": null, "used": true }- Error
null
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 282.68764819949865,
"error": null,
"finish": {
"raw": "stop",
"source": "choices[0].finish_reason",
"surface": "primary",
"value": "stop"
},
"format": "wiretruth.observation/v1",
"library": {
"api": "litellm.completion",
"language": "python",
"name": "litellm",
"version": "1.105.5"
},
"notes": [],
"outcome": "returned",
"stream": {
"chunks_seen": 6,
"completed": null,
"used": true
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "primary",
"value": "The sky looks blue because molecules in Earth's atmosphere scatter short-wavelength blue light from the sun in all directions more than they scatter the other colors."
},
"tool_calls": [],
"unsupported_reason": null,
"usage": {
"cached_input": null,
"input": 13,
"output": 31,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "primary",
"output": "primary",
"reasoning": "absent",
"total": "primary"
},
"total": 44
}
}Fixture
recorded gemini/usage.stream-final-chunk
| Provenance | Value |
|---|---|
| Recorded at | 2026-10-13T10:15:22Z |
| 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/usage.stream-final-chunkPlain-library snippet from the shim manifest.
litellm.completion(model='gemini/' + model, api_base=WIRETRUTH_BASE_URL_GEMINI + '/v1beta', api_key=WIRETRUTH_API_KEY); the runner supplies the host root and LiteLLM appends /models/...Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 1.105.5 | ✓ PASS |
| 1.105.1 | ✓ PASS |