-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch path to router.huggingface.co
#1188
Conversation
@@ -117,7 +117,7 @@ for await (const output of hf.textGenerationStream({ | |||
|
|||
### Text Generation (Chat Completion API Compatible) | |||
|
|||
Using the `chatCompletion` method, you can generate text with models compatible with the OpenAI Chat Completion API. All models served by [TGI](https://api-inference.huggingface.co/framework/text-generation-inference) on Hugging Face support Messages API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it for a bit at least for backward compatibility 🙏 (but yeah, no need for it anymore)
huggingface_hub
has a method relying on it
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
router.huggingface.co
router.huggingface.co
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -117,7 +117,7 @@ for await (const output of hf.textGenerationStream({ | |||
|
|||
### Text Generation (Chat Completion API Compatible) | |||
|
|||
Using the `chatCompletion` method, you can generate text with models compatible with the OpenAI Chat Completion API. All models served by [TGI](https://api-inference.huggingface.co/framework/text-generation-inference) on Hugging Face support Messages API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it for a bit at least for backward compatibility 🙏 (but yeah, no need for it anymore)
huggingface_hub
has a method relying on it
@@ -183,7 +183,7 @@ const { generated_text } = await gpt2.textGeneration({inputs: 'The answer to the | |||
|
|||
// Chat Completion | |||
const llamaEndpoint = inference.endpoint( | |||
"https://api-inference.huggingface.co/models/meta-llama/Llama-3.1-8B-Instruct" | |||
"https://router.huggingface.co/together/models/meta-llama/Llama-3.1-8B-Instruct" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hf-inference
instead of together
here? since we have models/
No description provided.