Repository navigation
fix(huggingface): point Inference API endpoint to router.huggingface.co/hf-inference - #1464
Open
torrresagus wants to merge 1 commit into
Open
torrresagus wants to merge 1 commit into
torrresagus wants to merge 1 commit into
Conversation
…co/hf-inference The serverless Inference API host api-inference.huggingface.co no longer exists. I changed the HuggingFace `Endpoint` from `https://api-inference.huggingface.co` to `https://router.huggingface.co/hf-inference` in the three appsettings.json files. The plugin's Refit route `/models/{space}/{model}` is added to this base address, so requests now go to the HF Inference successor, which takes the same body and returns the same response. Nothing in the repo calls the removed `api-inference.huggingface.co/v1/chat/completions` endpoint, so there was nothing to change for that one. Notice huggingface-serverless-inference-api-retired about huggingface.co's API describes the change. It was read from a file and is not signed by the provider.
Contributor
Contributor
PR Summary by QodoPoint Hugging Face inference defaults to the HF Inference router
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed in the API
Notice
huggingface-serverless-inference-api-retiredabouthuggingface.co's API describes this change, published 2025-07-01. It is not signed byhuggingface.co: it was read from a file the person running Tiltmeter trusts.The notice's summary:
POST https://api-inference.huggingface.co/models/{model}$POST https://router.huggingface.co/hf-inference/models/{model}POST https://api-inference.huggingface.co/v1/chat/completions$POST https://router.huggingface.co/v1/chat/completionsThe notice's notes:
What this pull request changes
The serverless Inference API host api-inference.huggingface.co no longer exists. I changed the HuggingFace
Endpointfromhttps://api-inference.huggingface.cotohttps://router.huggingface.co/hf-inferencein the three appsettings.json files. The plugin's Refit route/models/{space}/{model}is added to this base address, so requests now go to the HF Inference successor, which takes the same body and returns the same response. Nothing in the repo calls the removedapi-inference.huggingface.co/v1/chat/completionsendpoint, so there was nothing to change for that one.dockerfiles/appsettings.jsonsrc/WebStarter/appsettings.jsontests/BotSharp.LLM.Tests/appsettings.jsonLeft for a human
This pull request was generated automatically by Tiltmeter from the unsigned notice
huggingface-serverless-inference-api-retiredabout huggingface.co's API. An AI agent (Claude Code with claude-opus-5-5) wrote these edits; review them like any other change.