client icon indicating copy to clipboard operation
client copied to clipboard

Fixed attachments exception on ThreadMessageResponse.php

Open misteryomi opened this issue 1 year ago • 0 comments

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

misteryomi avatar Sep 13 '24 10:09 misteryomi