From 3ed4c0f33fee281fbdc276e208574e22821818d9 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Wed, 6 Sep 2023 14:57:59 +0200 Subject: [PATCH] docs: typo in streaming.js (#971) Looks like an error --- docs/source/conceptual/streaming.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conceptual/streaming.md b/docs/source/conceptual/streaming.md index c20d76e0..054fde30 100644 --- a/docs/source/conceptual/streaming.md +++ b/docs/source/conceptual/streaming.md @@ -121,9 +121,9 @@ If you're using the free Inference API, you can use `HfInference`. If you're usi We can create a `HfInferenceEndpoint` providing our endpoint URL and credential. ```js -import { HfInference } from '@huggingface/inference' +import { HfInferenceEndpoint } from '@huggingface/inference' -const hf = new HfInference('https://YOUR_ENDPOINT.endpoints.huggingface.cloud', 'hf_YOUR_TOKEN') +const hf = new HfInferenceEndpoint('https://YOUR_ENDPOINT.endpoints.huggingface.cloud', 'hf_YOUR_TOKEN') // prompt const prompt = 'What can you do in Nuremberg, Germany? Give me 3 Tips'