mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Remove unused cert from async client
This commit is contained in:
parent
ae6256a17a
commit
51e3f84453
@ -290,7 +290,6 @@ class AsyncClient:
|
||||
headers: Optional[Dict[str, str]] = None,
|
||||
cookies: Optional[Dict[str, str]] = None,
|
||||
timeout: int = 10,
|
||||
cert: Optional[Union[str, tuple[str, str]]] = None,
|
||||
):
|
||||
"""
|
||||
Args:
|
||||
@ -302,15 +301,11 @@ class AsyncClient:
|
||||
Cookies to include in the requests
|
||||
timeout (`int`):
|
||||
Timeout in seconds
|
||||
cert (`Optional[Union[str, tuple[str, str]]]`):
|
||||
If String, path to ssl client cert file (.pem).
|
||||
If Tuple, ('cert', 'key') pair.
|
||||
"""
|
||||
self.base_url = base_url
|
||||
self.headers = headers
|
||||
self.cookies = cookies
|
||||
self.timeout = ClientTimeout(timeout * 60)
|
||||
self.cert = cert
|
||||
|
||||
async def generate(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user