You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❗**Important note:** Using an access token is optional to get started, however you will be rate limited eventually. Join [Hugging Face](https://huggingface.co/join) and then visit [access tokens](https://huggingface.co/settings/tokens) to generate your access token for **free**.
@@ -63,7 +63,7 @@ To send requests to a third-party provider, you have to pass the `provider` para
63
63
```ts
64
64
const accessToken ="hf_..."; // Either a HF access token, or an API key from the third-party provider (Replicate in this example)
65
65
66
-
const client =newHfInference(accessToken);
66
+
const client =newInferenceClient(accessToken);
67
67
awaitclient.textToImage({
68
68
provider: "replicate",
69
69
model:"black-forest-labs/Flux.1-dev",
@@ -93,7 +93,7 @@ This is not an issue for LLMs as everyone converged on the OpenAI API anyways, b
93
93
94
94
### Tree-shaking
95
95
96
-
You can import the functions you need directly from the module instead of using the `HfInference` class.
96
+
You can import the functions you need directly from the module instead of using the `InferenceClient` class.
0 commit comments