Closed nekromoff closed 6 months ago
composer.json versions:
"symfony/http-client": "^7.0",
"nyholm/psr7": "^1.8",
"openai-php/client": "^0.8.0",
"guzzlehttp/guzzle": "^7.8"
Would love if we were able to specify timeout. My application often has long responses and this is causing timeouts. Made me have to switch to using gpt3.5 for now until this is fixed.
Good catch, switching to 3.5-turbo works. Still a serious issue for v4 making it completely unusable for longer prompts.
Good catch, switching to 3.5-turbo works. Still a serious issue for v4 making it completely unusable for longer prompts.
I've had this issue on the 3.5 turbo many times.
Good catch, switching to 3.5-turbo works. Still a serious issue for v4 making it completely unusable for longer prompts.
I have been able to use long prompts and they work just fine. I think the problem is with longer responses taking too long and causing it to timeout.
Hi
This is a problem with the (default) timeout configured in the HTTP client you are using.
I've added a troubleshooting section to the docs explaining how to increase the timeouts: https://github.com/openai-php/client?tab=readme-ov-file#timeout
I hope this helps. Otherwise please let me know.
Description
Steps To Reproduce
run longer prompt using:
where
xxxxxxxx
is about 1150 chars long. This error will happen all the time. Very short (under 200 chars) prompts work.OpenAI PHP Client Version
0.8.0
PHP Version
8.3.0
Notes
No response