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

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

Open
mmcgowan1 opened this issue Jul 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmcgowan1
Copy link

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

@mmcgowan1 mmcgowan1 added the bug Something isn't working label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant