Skip to content

fireworks-ai: handle empty choices in streaming chunks#1628

Open
SAY-5 wants to merge 1 commit into
Portkey-AI:mainfrom
SAY-5:fix/fireworks-stream-empty-choices-1627
Open

fireworks-ai: handle empty choices in streaming chunks#1628
SAY-5 wants to merge 1 commit into
Portkey-AI:mainfrom
SAY-5:fix/fireworks-stream-empty-choices-1627

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 2, 2026

Copy link
Copy Markdown

Closes #1627. Mirrors the groq #1073 / together-ai #1321 fix, guard chunk.choices?.[0] and emit choices: [] on usage-only chunks.

@SAY-5 SAY-5 force-pushed the fix/fireworks-stream-empty-choices-1627 branch from d69e7ed to f111700 Compare May 27, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled exception in fireworks-ai streaming requests when stream chunk has empty choices

1 participant