Skip to content

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