mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
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
This commit is contained in:
parent
0390b28b85
commit
0a5755eb7a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user