Skip to content

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

Open
dknos wants to merge 1 commit intoNVIDIA:mainfrom
dknos:fix/huggingface-endpoint-1453
Open

fix(policy): update HuggingFace preset to router.huggingface.co#1481
dknos wants to merge 1 commit intoNVIDIA:mainfrom
dknos:fix/huggingface-endpoint-1453

Conversation

@dknos
Copy link
Copy Markdown

@dknos dknos commented Apr 4, 2026

Summary

  • Updates the HuggingFace policy preset from the deprecated api-inference.huggingface.co endpoint to router.huggingface.co
  • The old endpoint returns HTTP 410 (Gone), breaking HuggingFace inference from sandboxes

Test plan

  • Apply huggingface preset and verify inference calls route to router.huggingface.co
  • Confirm the old endpoint is no longer referenced in any preset files

Fixes #1453

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the network configuration for HuggingFace Inference API access, routing requests through the updated endpoint to ensure continued reliable connectivity.

The api-inference.huggingface.co endpoint returns HTTP 410 (Gone).
Updated to the current router.huggingface.co endpoint.

Fixes NVIDIA#1453

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 4, 2026

📝 Walkthrough

Walkthrough

Updated the HuggingFace preset network policy endpoint host from the deprecated api-inference.huggingface.co (HTTP 410 Gone) to the current router.huggingface.co endpoint, while preserving all other configuration settings including port, protocol, TLS termination, and HTTP methods.

Changes

Cohort / File(s) Summary
HuggingFace Preset Configuration
nemoclaw-blueprint/policies/presets/huggingface.yaml
Updated inference API endpoint host from deprecated api-inference.huggingface.co to router.huggingface.co to address HTTP 410 Gone responses.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A rabbit hops to fix the way,
The endpoint that had gone astray!
From old to new, the path is clear,
Router HuggingFace, oh so dear! 🤗
No more 410, just smooth requests,
This preset now passes all the tests!

🚥 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 summarizes the main change: updating the HuggingFace preset endpoint from api-inference.huggingface.co to router.huggingface.co.
Linked Issues check ✅ Passed The pull request successfully addresses issue #1453 by replacing the deprecated api-inference.huggingface.co endpoint with router.huggingface.co, resolving the HTTP 410 Gone error.
Out of Scope Changes check ✅ Passed The change is narrowly scoped to updating a single endpoint host in the HuggingFace preset YAML file, directly addressing the linked issue with no extraneous modifications.
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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
nemoclaw-blueprint/policies/presets/huggingface.yaml (1)

27-27: Add a hostname-specific regression test for this preset.

Current tests only verify presets have endpoints, not that HuggingFace uses the expected inference host. Please add an assertion that huggingface preset endpoints include router.huggingface.co (and optionally exclude the deprecated host) to prevent silent regressions.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nemoclaw-blueprint/policies/presets/huggingface.yaml` at line 27, Add a
focused regression test that checks the "huggingface" preset's endpoints include
the hostname "router.huggingface.co" (and optionally assert it does not include
the deprecated "api-inference.huggingface.co"). Implement this as a new unit
test (e.g., TestHuggingFacePresetHost or add to TestPresetsEndpoints) that loads
the presets map or uses the existing helper (e.g., presets["huggingface"] or
GetPreset("huggingface")) and asserts the endpoints list contains
"router.huggingface.co" and does not contain the deprecated host.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@nemoclaw-blueprint/policies/presets/huggingface.yaml`:
- Line 27: Add a focused regression test that checks the "huggingface" preset's
endpoints include the hostname "router.huggingface.co" (and optionally assert it
does not include the deprecated "api-inference.huggingface.co"). Implement this
as a new unit test (e.g., TestHuggingFacePresetHost or add to
TestPresetsEndpoints) that loads the presets map or uses the existing helper
(e.g., presets["huggingface"] or GetPreset("huggingface")) and asserts the
endpoints list contains "router.huggingface.co" and does not contain the
deprecated host.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d1527bbb-960b-4b26-a0e4-1c0767e86471

📥 Commits

Reviewing files that changed from the base of the PR and between c99e3e8 and 8b73c4a.

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

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.

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

2 participants