Closed ilbeygi closed 2 months ago
The status field is missing in the file ThreadMessageResponseAttachment.php (https://github.com/openai-php/client/blob/main/src/Responses/Threads/Messages/ThreadMessageResponseAttachment.php), and after reviewing, I found that this file does not align with the message object definition (https://platform.openai.com/docs/api-reference/messages/object).
I discovered this bug while I was creating a message in the following format:
OpenAI::threads()->messages()->create('thread_id', [ 'role' => 'user', 'content' => $prompt, ]);
latest
8.3.11
No response
This appears to be an issue from the Open AI service. It's even a topic of discussion within the community.
See: https://community.openai.com/t/status-key-missing-from-assistant-apis-get-message-response/736538/5
Description
The status field is missing in the file ThreadMessageResponseAttachment.php (https://github.com/openai-php/client/blob/main/src/Responses/Threads/Messages/ThreadMessageResponseAttachment.php), and after reviewing, I found that this file does not align with the message object definition (https://platform.openai.com/docs/api-reference/messages/object).
Steps To Reproduce
I discovered this bug while I was creating a message in the following format:
OpenAI::threads()->messages()->create('thread_id', [ 'role' => 'user', 'content' => $prompt, ]);
OpenAI PHP Client Version
latest
PHP Version
8.3.11
Notes
No response