find a little bug #157
ZhangKoven
started this conversation in
General
Replies: 1 comment
-
Hi @ZhangKoven Can you provide an example how to reproduce this error? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
sorry, i am chinese ,my english is poor.
thanks for this storehouse. this day , i don't know what happen, once in a while openai will show this error
PHP Warning: Undefined array key "choices" in /vendor/openai-php/client/src/Responses/Chat/CreateStreamedResponse.php on line 44
and then, it will show fatal error array_map():Argument #($array) must be of type array, null given
so ,i think we need to throw a exception
if(!isset($attributes['choices'])) {
throw new \Exception('');
}
thanks
Beta Was this translation helpful? Give feedback.
All reactions