Open
Description
Description
PHP Fatal error: Uncaught TypeError: OpenAI\Responses\Threads\Messages\ThreadMessageResponse::from(): Argument #1 ($attributes) must be of type array, string given, called in .../vendor/openai-php/client/src/Resources/ThreadsMessages.php on line 32
Steps To Reproduce
This error happens irregularly during following call chain:
$client->threads()->messages()->create( $thread_id, $message );
OpenAI PHP Client Version
v0.10.3
PHP Version
8.2.16
Notes
After error_log debugging I found that API replied with 'Bad Gateway' response and 'Content-Type: text/plain`.