Repository navigation
feat: add Hugging Face Inference Providers support - #935
Merged
Merged
Conversation
57 tasks done
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
huggingfaceprovider across registry, runtime, storage, headless, CLI, and Desktop./v1/modelslist and retain only models with a live tool-capable upstream, while preserving exact model IDs and routing suffixes.Why
Issue #860 includes Hugging Face Inference Providers as a Phase 3 hosted API access path. This slice adds that path without mixing in local Transformers, dedicated Inference Endpoints, OpenRouter, or any individual upstream provider preset.
Refs #860
Scope
This PR covers only the Hugging Face Inference Providers Router at
https://router.huggingface.co/v1with HF token authentication. It does not add compatibility aliases or deployment-specific access paths.Verification
npm run typechecknpm run test:scripts— 64 passednpm --workspace @maka/core test— 911 passednpm --workspace @maka/storage testnpm --workspace @maka/runtime testnpm --workspace @maka/headless test— 891 passednpm --workspace maka-agent testnpm --workspace @maka/desktop test— 2,473 passednpm --workspace @maka/desktop run build:renderer— renderer build and third-party notice check passednpm run check:stalegit diff --check origin/main...HEADde7f2c60f974b75b385116ef0dc6a9fa62f2fd7bf58156b5623301a5436b91c4; byte comparison against Lobe Icons commite4302041fbb3039608d25f9f618bd462783b875epassedb510d27fNo safe HF token was available, so a real inference smoke was not run. Deterministic conformance coverage exercises authenticated discovery, exact
:preferredrouting, reasoning replay, and the two-stage tool-result wire without secrets. Local Desktop E2E was deferred to CI; the PR E2E job is the merge gate. Static screenshots are not applicable because this reuses the existing provider catalog/detail logo and form surfaces; computed-style, governance, and representative E2E contracts cover the visible path.Impact
Users can configure an HF token, discover tool-capable Inference Providers models, preserve exact routed model IDs, and use chat/reasoning/tool calls through Maka. Existing provider IDs and persisted connections are unchanged; no migration is required.
Reviewer notes
The provider reuses the existing OpenAI-compatible adapter and protocol discovery seam. HF-specific behavior is limited to registry metadata and the
tool-capablediscovery filter derived from Router provider metadata.Ready for review
Verificationexplains why it is not applicable