openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.56k stars 465 forks source link

[Bug]: Assistant API calls do not complete in version 0.10.1. #438

Open wuniulan opened 6 days ago

wuniulan commented 6 days ago

Description

Hello.

Using an assistant with GPT-4o specified as the model, I execute threads()->createAndRun(). When I get the status afterwards, "incomplete" is returned.

If I specify a model other than GPT-4o (GPT-4 Turbo, etc.), "completed" is returned, so this is only strange when GPT-4o is specified.

Does it not support GPT-4o?

Thank you.

Steps To Reproduce

  1. $client = OpenAI::client(OMMIT);
  2. $client->assistants()->create(OMMIT);
  3. $client->threads()->createAndRun(OMMIT)
  4. $client->threads()->runs()->retrieve(OMMIT);

OpenAI PHP Client Version

v0.10.1

PHP Version

8.1.8

Notes

No response