Skip to content

Commit fc26315

Browse files
committed
good catch from copilot
1 parent bb6fc32 commit fc26315

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/source/basic_tutorials/visual_language_models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ npm install @huggingface/inference
139139

140140
Whether you use Inference Providers (our serverless API), or Inference Endpoints, you can call `InferenceClient`.
141141

142-
We can create a `HfInferenceEndpoint` providing our endpoint URL and We can create a `HfInferenceEndpoint` providing our endpoint URL and [Hugging Face access token](https://huggingface.co/settings/tokens).
142+
We can create a `InferenceClient` providing our endpoint URL and [Hugging Face access token](https://huggingface.co/settings/tokens).
143143

144144
```js
145-
import { HfInferenceEndpoint } from "@huggingface/inference";
145+
import { InferenceClient } from "@huggingface/inference";
146146

147-
const client = new InferenceEndpoint('hf_YOUR_TOKEN', { endpointUrl: 'https://YOUR_ENDPOINT.endpoints.huggingface.cloud' });
147+
const client = new InferenceClient('hf_YOUR_TOKEN', { endpointUrl: 'https://YOUR_ENDPOINT.endpoints.huggingface.cloud' });
148148

149149
const prompt =
150150
"![](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/rabbit.png)What is this a picture of?\n\n";

docs/source/conceptual/streaming.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ Whether you use Inference Providers (our serverless API), or Inference Endpoints
134134

135135

136136
```js
137-
import { InferenceEndpoint } from '@huggingface/inference';
137+
import { InferenceClient } from '@huggingface/inference';
138138

139-
const client = new InferenceEndpoint('hf_YOUR_TOKEN', { endpointUrl: 'https://YOUR_ENDPOINT.endpoints.huggingface.cloud' });
139+
const client = new InferenceClient('hf_YOUR_TOKEN', { endpointUrl: 'https://YOUR_ENDPOINT.endpoints.huggingface.cloud' });
140140

141141
// prompt
142142
const prompt = 'What can you do in Nuremberg, Germany? Give me 3 Tips';

0 commit comments

Comments
 (0)