fix inference_api headers for new signature

This commit is contained in:
Devin Conathan 2023-03-23 09:04:31 -04:00
parent 232bfbf27f
commit 81b5fceb52

View File

@ -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
)