Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed attachments exception on ThreadMessageResponse.php #476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

misteryomi
Copy link

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: #470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant