Skip to content

fix: Update defaultURL in huggingfacellm_option.go (old endpoint deprecated)#1450

Open
majiayu000 wants to merge 1 commit intotmc:mainfrom
majiayu000:fix-1428-update-defaulturl-in-huggingfacellmoptio
Open

fix: Update defaultURL in huggingfacellm_option.go (old endpoint deprecated)#1450
majiayu000 wants to merge 1 commit intotmc:mainfrom
majiayu000:fix-1428-update-defaulturl-in-huggingfacellmoptio

Conversation

@majiayu000
Copy link
Contributor

Summary

This PR fixes #1428

Changes

  • llms/huggingface/huggingfacellm_option.go
  • llms/huggingface/internal/huggingfaceclient/huggingfaceclient_test.go
  • llms/huggingface/internal/huggingfaceclient/testdata/TestClient_RunInference.httprr
  • llms/huggingface/internal/huggingfaceclient/testdata/TestClient_RunInferenceText2Text.httprr
  • llms/huggingface/testdata/TestHuggingFaceLLMStandardInference.httprr

The old HuggingFace Inference API endpoint (api-inference.huggingface.co)
was deprecated in January 2025 and returns 404 starting November 2025.
This updates the default URL to use the new router-based endpoint
(router.huggingface.co/hf-inference) as recommended by HuggingFace.

Fixes tmc#1428

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
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.

Update defaultURL in huggingfacellm_option.go (old endpoint deprecated)

1 participant