The description property of \OpenAI\Responses\Assistants\AssistantResponseToolFunctionFunction is nullable.
When creating an assistant with a function that does not have a description specified, I received an error:
OpenAI\Responses\Assistants\AssistantResponseToolFunctionFunction::__construct(): Argument #1 ($description) must be of type string, null given, called in /var/www/html/vendor/openai-php/client/src/Responses/Assistants/AssistantResponseToolFunctionFunction.php on line 40
What:
Description:
The description property of
\OpenAI\Responses\Assistants\AssistantResponseToolFunctionFunction
is nullable.When creating an assistant with a function that does not have a description specified, I received an error:
OpenAI documentation: https://platform.openai.com/docs/api-reference/assistants/createAssistant
Exception
Source of response
Screenshot of documentation