refactor(hf): use the official hf scheme instead of huggingface#7193
Merged
tisonkun merged 3 commits intoapache:mainfrom Feb 18, 2026
Merged
refactor(hf): use the official hf scheme instead of huggingface#7193tisonkun merged 3 commits intoapache:mainfrom
hf scheme instead of huggingface#7193tisonkun merged 3 commits intoapache:mainfrom
Conversation
hf scheme instead of huggingface
a258196 to
20b37e6
Compare
Member
Author
|
cc @lhoestq |
Member
|
The Go CI failure seems to be unrelated - need to bump toolchain version separately. |
Member
|
@Xuanwo you may track an item to add a changelog entry. |
Member
Author
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #.
Rationale for this change
The official Hugging Face scheme is
hf://. Aligning OpenDAL's naming with the official convention makes the API more intuitive and consistent with the broader Hugging Face ecosystem.What changes are included in this PR?
Huggingface*toHf*(e.g.HuggingfaceBuilder->HfBuilder,HuggingfaceConfig->HfConfig, etc.)services/huggingfacedirectory toservices/hfand renamed the crate fromopendal-service-huggingfacetoopendal-service-hfhf://(primary) andhuggingface://(alias) URI schemesservices-hffeature flag as the primary, withservices-huggingfacekept as a backward-compatible alias (services-huggingface = ["services-hf"])services-hffeature flagAre there any user-facing changes?
Yes. The public API types are renamed:
Huggingface->HfHuggingfaceConfig->HfConfigservices-hfis now primary (oldservices-huggingfacestill works as alias)Scheme.Huggingface->Scheme.Hfhf://andhuggingface://URI schemes are supportedAI Usage Statement
This PR was authored with the assistance of Claude Code.