Skip to content

feat: add Hugging Face Inference Providers support - #935

Merged
Astro-Han merged 2 commits into
mainfrom
feat/huggingface-inference-providers-support
Jul 13, 2026
Merged

Astro-Han merged 2 commits into
mainfrom
feat/huggingface-inference-providers-support

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add Hugging Face Inference Providers as the stable huggingface provider across registry, runtime, storage, headless, CLI, and Desktop.
  • Discover the complete Router /v1/models list and retain only models with a live tool-capable upstream, while preserving exact model IDs and routing suffixes.
  • Vendor the byte-identical Hugging Face SVG from Lobe Icons with immutable provenance, license, SHA-256, shared mask rendering, and notice coverage.

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/v1 with HF token authentication. It does not add compatibility aliases or deployment-specific access paths.

Verification

  • npm run typecheck
  • npm run test:scripts — 64 passed
  • npm --workspace @maka/core test — 911 passed
  • npm --workspace @maka/storage test
  • npm --workspace @maka/runtime test
  • npm --workspace @maka/headless test — 891 passed
  • npm --workspace maka-agent test
  • npm --workspace @maka/desktop test — 2,473 passed
  • npm --workspace @maka/desktop run build:renderer — renderer build and third-party notice check passed
  • npm run check:stale
  • git diff --check origin/main...HEAD
  • Hugging Face SVG SHA-256: de7f2c60f974b75b385116ef0dc6a9fa62f2fd7bf58156b5623301a5436b91c4; byte comparison against Lobe Icons commit e4302041fbb3039608d25f9f618bd462783b875e passed
  • Named reviewer found 0 P0–P3 issues on final SHA b510d27f

No safe HF token was available, so a real inference smoke was not run. Deterministic conformance coverage exercises authenticated discovery, exact :preferred routing, 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-capable discovery filter derived from Router provider metadata.

Ready for review

  • Verification is complete and the results above are current
  • Impact, compatibility, migration, documentation, and release-note needs are addressed
  • User-visible UI/UX changes include visual evidence, or Verification explains why it is not applicable

@Astro-Han
Astro-Han merged commit cb82c2f into main Jul 13, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/huggingface-inference-providers-support branch July 13, 2026 21:38
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.

1 participant