mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 11:24:53 +00:00
fix inference_api headers for new signature
This commit is contained in:
parent
232bfbf27f
commit
81b5fceb52
@ -92,7 +92,9 @@ class InferenceAPIClient(Client):
|
||||
)
|
||||
base_url = f"{INFERENCE_ENDPOINT}/models/{repo_id}"
|
||||
|
||||
super(InferenceAPIClient, self).__init__(base_url, headers, timeout)
|
||||
super(InferenceAPIClient, self).__init__(
|
||||
base_url, headers=headers, timeout=timeout
|
||||
)
|
||||
|
||||
|
||||
class InferenceAPIAsyncClient(AsyncClient):
|
||||
@ -147,4 +149,6 @@ class InferenceAPIAsyncClient(AsyncClient):
|
||||
)
|
||||
base_url = f"{INFERENCE_ENDPOINT}/models/{repo_id}"
|
||||
|
||||
super(InferenceAPIAsyncClient, self).__init__(base_url, headers, timeout)
|
||||
super(InferenceAPIAsyncClient, self).__init__(
|
||||
base_url, headers=headers, timeout=timeout
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user