Skip to content

Fix OpenAI streaming empty chunk error - #69

Merged
Kludex merged 2 commits into
mainfrom
fix-empty-chunk-error
May 1, 2024
Merged

Kludex merged 2 commits into
mainfrom
fix-empty-chunk-error

Conversation

@hramezani

Copy link
Copy Markdown
Contributor

Fixes #64

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 1, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc22d44
Status: ✅  Deploy successful!
Preview URL: https://f509c879.logfire-docs.pages.dev
Branch Preview URL: https://fix-empty-chunk-error.logfire-docs.pages.dev

View logs

@Kludex

Kludex commented May 1, 2024 •

Copy link
Copy Markdown
Member

Hold on...

But the chunk was available on the issue, what was not available was the choices list, isn't it the case?

@hramezani

Copy link
Copy Markdown
Contributor Author

Hold on...

But the chunk was available on the issue, what was not available was the choices list, isn't it the case?

Yes, let me handle choices as well

@hramezani
hramezani requested a review from Kludex May 1, 2024 15:34
@hramezani

Copy link
Copy Markdown
Contributor Author

@Kludex I handled the empty choices and added a test for it

@Kludex
Kludex merged commit 011e127 into main May 1, 2024
@Kludex
Kludex deleted the fix-empty-chunk-error branch May 1, 2024 16:11
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.

Index error for Azure OpenAI streaming

2 participants