Skip to content
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

docs(hub-api): add expand param to get models #1632

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Johann-S
Copy link

@Johann-S Johann-S commented Mar 9, 2025

Hi 👋

I was using your API and I found expand parameter was missing in the API documentation but not on the Python lib (https://github.com/huggingface/huggingface_hub/blob/v0.29.2/src/huggingface_hub/hf_api.py#L1738)

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

lgtm, i would also document it in other endpoints too (datasets and spaces)?

asking @coyotte508 for a review

@SBrandeis SBrandeis requested a review from coyotte508 March 10, 2025 09:21
Copy link
Member

@coyotte508 coyotte508 left a comment

Choose a reason for hiding this comment

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

We can get the list by this url: https://huggingface.co/api/models?expand[]=wrong , lgtm

and yes we can document for datasets & spaces too

@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.

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