From 9ed4d2c7807a76b04c85988b71290bb53da56fbd Mon Sep 17 00:00:00 2001 From: Hugo Abonizio Date: Thu, 29 Feb 2024 11:41:49 -0300 Subject: [PATCH] Fix async client timeout (#1617) # What does this PR do? Fixes #1616 According to the [aiohttp.ClientTimeout docs](https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientTimeout), the arguments should be in seconds. This PR removes the multiplication by 60. @OlivierDehaene OR @Narsil --- clients/python/text_generation/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/python/text_generation/client.py b/clients/python/text_generation/client.py index 09660de3..e1de253b 100644 --- a/clients/python/text_generation/client.py +++ b/clients/python/text_generation/client.py @@ -424,7 +424,7 @@ class AsyncClient: self.base_url = base_url self.headers = headers self.cookies = cookies - self.timeout = ClientTimeout(timeout * 60) + self.timeout = ClientTimeout(timeout) async def chat( self,