Skip to content

Harmonize inferenceProviderMapping additional parameter in modelInfo / listModel #1515

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jun 4, 2025

Equivalent to huggingface/huggingface_hub#3022 in Python.

Main problem is that expand[]=inferenceProviderMapping do not return the same data structure when getting model info or listing models. We will fix this in ~3 months (?) but in the meantime we want a client compatible with both current and future structure (see huggingface/huggingface_hub#3022 for more details).

TODO:

  • adapt call in @huggingface/inference

@Wauplin Wauplin marked this pull request as ready for review June 4, 2025 14:03
@Wauplin
Copy link
Contributor Author

Wauplin commented Jun 4, 2025

CI failing test seems unrelated so PR is ready to be reviewed. This PR introduces a breaking change in the return type of listModels / modelInfo but I do think it's for the best. Once this PR is merged and published, both clients will be compatible with current and future APIs.

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.

read this quite superficially but lgtm

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.

3 participants