Skip to content

fix(policy): update HuggingFace preset to use router.huggingface.co#1473

Open
ac12644 wants to merge 1 commit intoNVIDIA:mainfrom
ac12644:fix/huggingface-preset-endpoint
Open

fix(policy): update HuggingFace preset to use router.huggingface.co#1473
ac12644 wants to merge 1 commit intoNVIDIA:mainfrom
ac12644:fix/huggingface-preset-endpoint

Conversation

@ac12644
Copy link
Copy Markdown

@ac12644 ac12644 commented Apr 4, 2026

Summary

Update the HuggingFace policy preset to replace the deprecated api-inference.huggingface.co endpoint with router.huggingface.co.

The old endpoint now returns HTTP 410 Gone:

$ curl -sI https://api-inference.huggingface.co | head -1
HTTP/1.1 410 Gone

$ curl -sI https://router.huggingface.co/v1/models | head -1
HTTP/1.1 200 OK

Changes

  • nemoclaw-blueprint/policies/presets/huggingface.yaml: api-inference.huggingface.corouter.huggingface.co

Fixes #1453

Summary by CodeRabbit

  • Chores
    • Updated Hugging Face inference network configuration to use an optimized routing endpoint for improved connectivity and reliability.

The api-inference.huggingface.co endpoint now returns HTTP 410 Gone.
HuggingFace migrated their Inference Providers API to
router.huggingface.co.

Fixes NVIDIA#1453

Signed-off-by: Abhishek Chauhan <ac12644@gmail.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 4, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d9aadaa5-6b9d-4fd6-8040-9a88ed7b71ad

📥 Commits

Reviewing files that changed from the base of the PR and between 3328359 and 68ae5da.

📒 Files selected for processing (1)
  • nemoclaw-blueprint/policies/presets/huggingface.yaml

📝 Walkthrough

Walkthrough

This change updates the Hugging Face network policy preset to replace the deprecated api-inference.huggingface.co endpoint with router.huggingface.co. The previous host was returning HTTP 410 Gone, indicating it is no longer available.

Changes

Cohort / File(s) Summary
HuggingFace Network Policy
nemoclaw-blueprint/policies/presets/huggingface.yaml
Updated HTTPS endpoint host from deprecated api-inference.huggingface.co to active router.huggingface.co for inference requests. Protocol, enforcement, TLS termination, and allowed routes remain unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop, a skip, through code I go,
Old endpoints dead, but now we know—
To router bright, the traffic flows,
No more 410s, that's how it goes!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: updating the HuggingFace preset to use the new router.huggingface.co endpoint instead of the deprecated api-inference.huggingface.co.
Linked Issues check ✅ Passed The PR successfully addresses issue #1453 by replacing the deprecated api-inference.huggingface.co endpoint with router.huggingface.co on port 443, exactly as required.
Out of Scope Changes check ✅ Passed The change is narrowly focused on updating the HuggingFace policy preset host endpoint, with no extraneous modifications to other files or unrelated code.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@latenighthackathon
Copy link
Copy Markdown
Contributor

Great find! We have an open PR at #1454 addressing the same deprecated endpoint. Linking here for maintainers so we know to close any related duplicate PRs once one merges.

@wscurran wscurran added NemoClaw CLI Use this label to identify issues with the NemoClaw command-line interface (CLI). fix Provider: HuggingFace labels Apr 4, 2026
@wscurran
Copy link
Copy Markdown
Contributor

wscurran commented Apr 4, 2026

✨ Thanks for submitting this fix, which proposes a way to update the HuggingFace policy preset to use the current router.huggingface.co endpoint instead of the deprecated api-inference.huggingface.co. This restores connectivity for HuggingFace integrations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix NemoClaw CLI Use this label to identify issues with the NemoClaw command-line interface (CLI). Provider: HuggingFace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(policy): HuggingFace preset references deprecated api-inference.huggingface.co endpoint

3 participants