openai-php / client

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

It's very slow and there are frequent errors #266

Closed shakhbiev closed 7 months ago

shakhbiev commented 7 months ago

Requests are processed very slowly and almost every third request ends in an error:

Got error 'PHP message: PHP Fatal error: Uncaught Symfony\\Component\\HttpClient\\Exception\\TimeoutException: Idle timeout reached for

Why is everything working so poorly?

I see how in other projects the API works instantly and without failures.

gehrisandro commented 7 months ago

Depending on the model you are using, OpenAI has a lot of issues the last couple of days. Especially with the Assistants API.

https://status.openai.com/

But the PHP client has no influence on that.

shakhbiev commented 7 months ago

Problems with using these two models: gpt-3.5-turbo-1106 and gpt-4-1106-preview.