Closed gehrisandro closed 1 year ago
Yep, same here.
This needs to be fixed in: https://github.com/openai-php/client/blob/67937756931af848c03112e52706aa6ad175aa7a/src/Exceptions/ErrorException.php#L18
Should be replaced by:
parent::__construct(json_encode($contents['message']));
Under some circumstances the API returns an error with an array of messages (even if the documentation says it's always a string).