mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'r.choices[0].delta') #731
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mandasaka on GitHub (Apr 26, 2024).
Bug Report
Description
Hello,
I noticed that the newly added src/lib/apis/streaming
/index.ts script in version v0.1.121 fails to handle responses where the 'choices' field lacks a 'delta', with these responses coming from Azure OpenAI.
The first response from completions:
data: {"choices":[],"created":0,"id":"","model":"","object":"","prompt_filter_results":[{"prompt_index":0,"content_filter_results":{"hate":{"filtered":false,"severity":"safe"},"self_harm":{"filtered":false,"severity":"safe"},"sexual":{"filtered":false,"severity":"safe"},"violence":{"filtered":false,"severity":"safe"}}}]}
Thank you and looking forward to your response.
@tjbck commented on GitHub (Apr 26, 2024):
@cheahjs
@tjbck commented on GitHub (Apr 26, 2024):
Should be fixed on our dev branch now, let me know if the issue persists!
@mandasaka commented on GitHub (Apr 28, 2024):
It’s ok now, thx