Skip to content

[FIX DOCSTRING] Update hf_api.py #3182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 1, 2025
Merged

Conversation

cakiki
Copy link
Contributor

@cakiki cakiki commented Jun 26, 2025

remove baseModels, childrenModelCount and usedStorage from expand possible values for list_models because they are only accepted when using the /api/models/repo_id endpoint (i.e. HfApi.model_info()).

cakiki and others added 3 commits June 26, 2025 13:59
remove `baseModels`, `childrenModelCount` and `usedStorage` from `expand` possible values because they are only accepted when using the /api/models/repo_id endpoint (i.e. HfApi.model_info()).
Remove tab I added by accident
@hanouticelina
Copy link
Contributor

@Wauplin more context in this internal thread. As you can see here and here (internal links), baseModels, childrenModelCount and usedStorage are not allowed when listing models.

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

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

thank you @cakiki!

@hanouticelina hanouticelina merged commit c26b063 into huggingface:main Jul 1, 2025
38 of 40 checks passed
@Wauplin
Copy link
Contributor

Wauplin commented Jul 1, 2025

Thank you for spotting and fixing @cakiki !

mintyleaf pushed a commit to Swarmind/huggingface_hub that referenced this pull request Jul 11, 2025
* [FIX DOCSTRING] Update hf_api.py

remove `baseModels`, `childrenModelCount` and `usedStorage` from `expand` possible values because they are only accepted when using the /api/models/repo_id endpoint (i.e. HfApi.model_info()).

* [MINOR:FIX] Update hf_api.py

Remove tab I added by accident

---------

Co-authored-by: célina <hanouticelina@gmail.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.

4 participants