Skip to content

Commit 557576d

Browse files
fix docstring (#3040)
1 parent 8b54e42 commit 557576d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/huggingface_hub/inference/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ class InferenceClient:
141141
Note: for better compatibility with OpenAI's client, `token` has been aliased as `api_key`. Those 2
142142
arguments are mutually exclusive and have the exact same behavior.
143143
timeout (`float`, `optional`):
144-
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
145-
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.
144+
The maximum number of seconds to wait for a response from the server. Defaults to None, meaning it will loop until the server is available.
146145
headers (`Dict[str, str]`, `optional`):
147146
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
148147
Values in this dictionary will override the default values.

src/huggingface_hub/inference/_generated/_async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ class AsyncInferenceClient:
129129
Note: for better compatibility with OpenAI's client, `token` has been aliased as `api_key`. Those 2
130130
arguments are mutually exclusive and have the exact same behavior.
131131
timeout (`float`, `optional`):
132-
The maximum number of seconds to wait for a response from the server. Loading a new model in Inference
133-
API can take up to several minutes. Defaults to None, meaning it will loop until the server is available.
132+
The maximum number of seconds to wait for a response from the server. Defaults to None, meaning it will loop until the server is available.
134133
headers (`Dict[str, str]`, `optional`):
135134
Additional headers to send to the server. By default only the authorization and user-agent headers are sent.
136135
Values in this dictionary will override the default values.

0 commit comments

Comments
 (0)