Skip to content

Conversation

julien-c
Copy link
Member

@julien-c julien-c commented Feb 6, 2025

No description provided.


### 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.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kinda killed that URL (the /framework one), prob not really relevant anymore anyways cc @XciD @Wauplin

Copy link
Contributor

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

@HuggingFaceDocBuilderDev

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.

@julien-c julien-c marked this pull request as ready for review February 6, 2025 13:42
@julien-c julien-c changed the title (WIP) Switch path to router.huggingface.co Switch path to router.huggingface.co Feb 6, 2025
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


### 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.
Copy link
Contributor

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

@julien-c julien-c merged commit 658e1b9 into main Feb 6, 2025
6 checks passed
@julien-c julien-c deleted the router-subdomain branch February 6, 2025 13:47
// 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"
Copy link
Contributor

@hanouticelina hanouticelina Feb 6, 2025

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/

julien-c added a commit that referenced this pull request Feb 10, 2025
julien-c added a commit that referenced this pull request Feb 11, 2025
SBrandeis pushed a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants