Repository navigation
.Net: fix(huggingface): move off retired api-inference.huggingface.co to router.huggingface.co - #14667
Open
Agustin Torres (torrresagus) wants to merge 2 commits into
Open
.Net: fix(huggingface): move off retired api-inference.huggingface.co to router.huggingface.co#14667Agustin Torres (torrresagus) wants to merge 2 commits into
Agustin Torres (torrresagus) wants to merge 2 commits into
Conversation
… to router.huggingface.co
I moved the .NET HuggingFace connector off the retired api-inference.huggingface.co host. Text generation, image-to-text and embeddings now default to router.huggingface.co/hf-inference, and embeddings use the new path order: models/{model}/pipeline/feature-extraction. Chat completion now defaults to router.huggingface.co/v1/chat/completions, with the model id still sent in the request body. I updated the unit tests, the TelemetryWithAppInsights and F# samples, and the integration testsettings.json to match. Nothing was built or run.
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.
Agustin Torres (torrresagus)
deployed
to
github-app-auth
October 27, 2026 05:28 — with
GitHub Actions
Active
Author
|
@microsoft-github-policy-service agree |
Agustin Torres (torrresagus)
deployed
to
github-app-auth
October 27, 2026 14:12 — with
GitHub Actions
Active
This branch was successfully deployed
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/pipeline/feature-extraction/{model}$POST https://router.huggingface.co/hf-inference/models/{model}/pipeline/feature-extractionPOST https://api-inference.huggingface.co/models/{model}/v1/chat/completions$POST https://router.huggingface.co/v1/chat/completionsPOST https://api-inference.huggingface.co/v1/chat/completions$POST https://router.huggingface.co/v1/chat/completionsThe notice's notes:
What this pull request changes
I moved the .NET HuggingFace connector off the retired api-inference.huggingface.co host. Text generation, image-to-text and embeddings now default to router.huggingface.co/hf-inference, and embeddings use the new path order: models/{model}/pipeline/feature-extraction. Chat completion now defaults to router.huggingface.co/v1/chat/completions, with the model id still sent in the request body. I updated the unit tests, the TelemetryWithAppInsights and F# samples, and the integration testsettings.json to match. Nothing was built or run.
dotnet/samples/Demos/FSharpScripts/huggingFaceChatCompletion.fsxdotnet/samples/Demos/TelemetryWithAppInsights/Program.csdotnet/src/Connectors/Connectors.HuggingFace.UnitTests/Services/HuggingFaceChatCompletionTests.csdotnet/src/Connectors/Connectors.HuggingFace.UnitTests/Services/HuggingFaceEmbeddingGenerationTests.csdotnet/src/Connectors/Connectors.HuggingFace.UnitTests/Services/HuggingFaceEmbeddingGeneratorTests.csdotnet/src/Connectors/Connectors.HuggingFace.UnitTests/Services/HuggingFaceImageToTextTests.csdotnet/src/Connectors/Connectors.HuggingFace.UnitTests/Services/HuggingFaceTextGenerationTests.csdotnet/src/Connectors/Connectors.HuggingFace/Core/HuggingFaceClient.csdotnet/src/Connectors/Connectors.HuggingFace/Core/HuggingFaceMessageApiClient.csdotnet/src/IntegrationTests/testsettings.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.