A lot off timeout exception #33
-
Hello, As you know, GPT4 takes a very long time to give responses and I very often come up against error timeouts.
I've tried this way but without success :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there @Alt0car, thanks for getting in touch. The Tectalic API client itself doesn't have any limits on API request timeouts. Instead, that is the responsibility of the HTTP client that you are using. By the looks of things you are using the Symfony PSR18 HTTP client. Looking at https://symfony.com/doc/current/http_client.html#psr-18-and-psr-17, it seems you may need to use code similiar to this: $httpClient = (new Psr18Client())->withOptions([ 'timeout' => 600, 'max_duration' => 600 ]);
$client = new Client($httpClient, $auth, Manager::BASE_URI); Good luck with your project! James |
Beta Was this translation helpful? Give feedback.
Hi there @Alt0car, thanks for getting in touch.
The Tectalic API client itself doesn't have any limits on API request timeouts. Instead, that is the responsibility of the HTTP client that you are using.
By the looks of things you are using the Symfony PSR18 HTTP client.
Looking at https://symfony.com/doc/current/http_client.html#psr-18-and-psr-17, it seems you may need to use code similiar to this:
Good luck with your project!
James