✓ PASS
vercel-ai 7.0.153
stream.missing-finish-abort · gemini
Requirements
| Id | Level | Status | Evidence |
|---|---|---|---|
| no-normal-stop | MUST | SATISFIED | outcome=raised; finish.value=null (absent); truth.finish="none"; forbidden finish="stop" |
| stream-incomplete | MUST | SATISFIED | stream.completed=false; outcome=raised; truth.stream_completed=false |
What the provider sent
- Finish
- none
- 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
null
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"}
end: abortWhat 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": 4, "completed": false, "used": true }- Error
- Type
- AI_APICallError
- Message
- Failed to process successful response
- Category
- api
- Retry after
null
- Stack top
- @ai-sdk/provider-utils/dist/index.js:586
- Unsupported reason
null
Full observation JSON
{
"elapsed_ms": 137.495926,
"error": {
"category": "api",
"message": "Failed to process successful response",
"retry_after": null,
"stack_top": "@ai-sdk/provider-utils/dist/index.js:586",
"type": "AI_APICallError"
},
"finish": {
"raw": null,
"source": null,
"surface": "absent",
"value": null
},
"format": "wiretruth.observation/v1",
"library": {
"api": "streamText",
"language": "javascript",
"name": "vercel-ai",
"version": "7.0.153"
},
"notes": [],
"outcome": "raised",
"stream": {
"chunks_seen": 4,
"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.missing-finish-abort
| Provenance | Value |
|---|---|
| Transform | cut_stream_after |
| Source fixture | gemini/truncation.text-stream |
| Rationale | The connection closes before the stream has delivered every event. |
| Evidence | https://github.com/openai/openai-python/issues/2065 |
Reproduce
wiretruth serve gemini/stream.missing-finish-abortPlain-library snippet from the shim manifest.
createGoogleGenerativeAI({ baseURL: WIRETRUTH_BASE_URL_GEMINI + '/v1beta', apiKey })(model)Upstream
No matching upstream report.
History
| Version | Grade |
|---|---|
| 7.0.153 | ✓ PASS |
| 7.0.146 | ✓ PASS |
| 7.0.142 | ✓ PASS |