✓ PASS
litellm 1.105.5
stream.error-midstream · gemini
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| error-reported | MUST | SATISFIED | outcome=raised; error.category="api"; finish.value=null (absent); truth.finish="error" |
What the provider sent
- Finish
- error
- Raw finish
null
- Text
- Octop
- Tool calls
[]
- Usage
{ "alternatives": {}, "cached_input": null, "input": 22, "output": 2, "raw": { "candidatesTokenCount": 2, "promptTokenCount": 22, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 22 } ], "serviceTier": "standard", "totalTokenCount": 24 }, "reasoning": null, "total": 24 }- Stream completed
false
- Error
- Message
- This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.
- Status
null
- Type
- UNAVAILABLE
- Code
- 503
Wire excerpt
status: 200
content-type: text/event-stream
body (sse):
data: {"candidates": [{"content": {"parts": [{"text": "Octop"}],"role": "model"},"index": 0}],"usageMetadata": {"promptTokenCount": 22,"candidatesTokenCount": 2,"totalTokenCount": 24,"promptTokensDetails": [{"modality": "TEXT","tokenCount": 22}],"serviceTier": "standard"},"modelVersion": "gemini-3.5-flash-lite","responseId": "pgTOaonbKMuV_uMPvK7d4AE"}
data: {"error":{"code":503,"message":"This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.","status":"UNAVAILABLE"}}
What the library reported
- Outcome
- raised
- Finish
{ "raw": null, "source": null, "surface": "absent", "value": null }- Text
- Value
- Octop
- Surface
- primary
- Tool calls
[]
- Usage
{ "cached_input": null, "input": null, "output": null, "reasoning": null, "surface": { "cached_input": "absent", "input": "absent", "output": "absent", "reasoning": "absent", "total": "absent" }, "total": null }- Stream
{ "chunks_seen": 1, "completed": false, "used": true }- Error
- Type
- litellm.exceptions.MidStreamFallbackError
- Message
- litellm.MidStreamFallbackError: litellm.ServiceUnavailableError: Vertex_ai_betaException - UNAVAILABLE - This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later. Original exception: ServiceUnavailableError: litellm.ServiceUnavailableError: Vertex_ai_betaException - UNAVAILABLE - This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.
- Category
- api
- Retry after
null
- Stack top
- litellm/litellm_core_utils/streaming_handler.py:2318
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 361.5959044545889,
"error": {
"category": "api",
"message": "litellm.MidStreamFallbackError: litellm.ServiceUnavailableError: Vertex_ai_betaException - UNAVAILABLE - This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later. Original exception: ServiceUnavailableError: litellm.ServiceUnavailableError: Vertex_ai_betaException - UNAVAILABLE - This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.",
"retry_after": null,
"stack_top": "litellm/litellm_core_utils/streaming_handler.py:2318",
"type": "litellm.exceptions.MidStreamFallbackError"
},
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "litellm.completion",
"language": "python",
"name": "litellm",
"version": "1.105.5"
},
"notes": [],
"outcome": "raised",
"stream": {
"chunks_seen": 1,
"completed": false,
"used": true
},
"structured": {
"attempted": false,
"returned_as_success": false,
"value": null
},
"text": {
"surface": "primary",
"value": "Octop"
},
"tool_calls": [],
"unsupported_reason": null,
"usage": {
"cached_input": null,
"input": null,
"output": null,
"reasoning": null,
"surface": {
"cached_input": "absent",
"input": "absent",
"output": "absent",
"reasoning": "absent",
"total": "absent"
},
"total": null
}
}Fixture
derived gemini/stream.error-midstream
| Provenance | Value |
|---|---|
| Transform | inject_error_event |
| Source fixture | gemini/truncation.text-stream |
| Rationale | The provider reports an error after starting a successful HTTP stream. |
| Evidence | https://github.com/googleapis/python-genai/blob/main/google/genai/_api_client.py |
Reproduce
wiretruth serve gemini/stream.error-midstreamPlain-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 |