Skip to content

[Bug]: Undefined array keys in ThreadMessageResponseContentTextAnnotationFileCitationObject.php #454

@mmcgowan1

Description

@mmcgowan1

Description

Periodically, undefined array keys "start_index", "end_index", and "file_citation" produce a fatal error:

Uncaught TypeError: OpenAI\Responses\Threads\Messages\ThreadMessageResponseContentTextAnnotationFileCitation::from(): Argument #1 ($attributes) must be of type array, null given

Steps To Reproduce

The fatal error occurs unpredictably while streaming a response from an Assistant. Retrying the same query will not generate the error a second time. There can be dozens of queries between fatal erros.

OpenAI PHP Client Version

v0.10.1

PHP Version

8.1.18

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions