client
client copied to clipboard
Fixed attachments exception on ThreadMessageResponse.php
What:
- [-] Bug Fix
Description:
The Thread Message returns an exception error when empty. Based on the Open AI docs in https://platform.openai.com/docs/api-reference/messages/object, the attachment param must either be an array|null.
The bug fix has added an extra check to allow for the attachment to receive a null value (or not throw an exception if not set).
Related:
Resolves: https://github.com/openai-php/client/issues/470