-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorException: Undefined array key "choices" #132
Comments
@gehrisandro yeah, the content type I've been seeing when debugging this is just |
I'm having the same issue today. Thanks for reporting @tomirons. |
Hi, I just encountered this when openAI was returning a content_filtered error. To help, here's the completion response on this error: |
I have a similar issue... pls help: got the
|
This has been fixed in the latest version: 0.5.3 |
Hi I am using the newest version 0.6.1 and still having this: [2023-06-17 09:09:12] production.ERROR: Undefined array key "choices" {"exception":"[object] (ErrorException(code: 0): Undefined array key "choices" at /home/forge/app.deeply.cz/vendor/openai-php/client/src/Responses/Chat/CreateStreamedResponse.php:44) any idea? thanks a lot |
I'm currently using v0.5.2.
When using the chat completions, I keep getting the following exception when there is a server error on OpenAI's side.
While debugging I came across this line.
Why does it check the charset? Is that required?
If I remove the charset part, then the following exception is thrown which I would expect.
The text was updated successfully, but these errors were encountered: