Open
Description
Describe the bug
When using Gemini flash models the stream is failing to decode. Looks like Gemini ommits a few fields from the response. Should these fields be optional?
"id": "chatcmpl-B9Yydp5DMEQ0z5Hr7ujy0DqaBGZ2E",
"service_tier": "default",
"system_fingerprint": "fp_eb9dce56a8",
{
"id": "chatcmpl-B9Yydp5DMEQ0z5Hr7ujy0DqaBGZ2E",
"object": "chat.completion.chunk",
"created": 1741619103,
"model": "gpt-4o-2024-08-06",
"service_tier": "default",
"system_fingerprint": "fp_eb9dce56a8",
"choices": [
{
"index": 0,
"delta": {
"role": "assistant",
"content": "",
"refusal": null
},
"logprobs": null,
"finish_reason": null
}
]
}
{
"choices": [
{
"delta": {
"content": "Hey",
"role": "assistant"
},
"index": 0
}
],
"created": 1741619073,
"model": "gemini-2.0-flash-lite",
"object": "chat.completion.chunk"
}
Metadata
Metadata
Assignees
Labels
No labels