feat(huggingface): Add Hugging Face AI provider#139
Merged
Conversation
Contributor
Author
|
chat only |
b04660d to
d804110
Compare
Adds chat-only provider targeting the Hugging Face Inference Providers router (https://router.huggingface.co/v1) via Microsoft.Extensions.AI.OpenAI. Validates credentials against the Hub's whoami-v2 endpoint since the router's /v1/models is fully public. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…I pipeline Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
d804110 to
578eba4
Compare
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.
Summary
Umbraco.AI.HuggingFaceprovider package — chat-only, talks to the Hugging Face Inference Providers router (https://router.huggingface.co/v1).Microsoft.Extensions.AI.OpenAI(no new SDK dependency, no dependency onUmbraco.AI.OpenAI— both packages just consume the same NuGet).whoami-v2endpoint because the router's/v1/modelsis fully public and would otherwise mask invalid tokens in Test Connection.Umbraco.AI.slnx, both install scripts (sh + ps1), the package-test-site scripts, and thelevel1Productsmatrix inazure-pipelines.yml.Out of scope (future)
tryAGI/HuggingFaceSDK. Noted in the package'sCLAUDE.md.AI*CapabilityBaseexists for these in Core.Test plan
dotnet build Umbraco.AI.HuggingFace/Umbraco.AI.HuggingFace.slnx— green, lock file generated,packages.lock.jsonconfirms noUmbraco.AI.OpenAIdependencyGET /v1/models, chat round-trip works with a realhf_...token🤖 Generated with Claude Code