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:
Hugo Abonizio 2024-02-29 11:41:49 -03:00 committed by GitHub
parent 5a3903ba99
commit 9ed4d2c780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ class AsyncClient:
self.base_url = base_url self.base_url = base_url
self.headers = headers self.headers = headers
self.cookies = cookies self.cookies = cookies
self.timeout = ClientTimeout(timeout * 60) self.timeout = ClientTimeout(timeout)
async def chat( async def chat(
self, self,