Skip to content

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 10, 2023

Related to huggingface/huggingface_hub#1813.

In /api/repos/move, we (I? 😄) forgot to mention the type parameter to specify the repo type.

cc @enzostvs you would have to update the API Playground as well to add this parameter. Thanks in advance!

EDIT: see PR documentation here

Related to huggingface/huggingface_hub#1813.

In `/api/repos/move`, we (I? 😄) forgot to mention the `type` parameter to specify the repo type.

cc @enzostvs you would have to update the API Playground as well to add this parameter. Thanks in advance!
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 10, 2023

The documentation is not available anymore as the PR was closed or merged.

docs/hub/api.md Outdated
"fromRepo" : "namespace/repo_name",
"toRepo" : "namespace2/repo_name2"
"toRepo" : "namespace2/repo_name2",
"type": "dataset",
Copy link
Member

Choose a reason for hiding this comment

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

In the other examples, "type":"type" instead of a specific type like dataset. I wonder if it might be better to just leave it as type to signal that it can also be a model or space?

Suggested change
"type": "dataset",
"type": "type",

Copy link
Contributor Author

@Wauplin Wauplin Nov 14, 2023

Choose a reason for hiding this comment

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

Good catch. I've pushed a new commit (8ee8745) to align how we are setting this. I prefer to have "type": "model" as an example and explain in words what are the possible values.

Copy link
Member

@stevhliu stevhliu left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@Wauplin
Copy link
Contributor Author

Wauplin commented Nov 14, 2023

Great, thanks for reviewing :)

@Wauplin Wauplin merged commit f5e0bc8 into main Nov 14, 2023
@Wauplin Wauplin deleted the Wauplin-patch-1 branch November 14, 2023 16:20
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