Skip to content

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

@Wauplin
Copy link
Contributor Author

Wauplin commented Jun 10, 2025

Merging it now as failing test seems unrelated

@Wauplin Wauplin merged commit 4e05d9e into main Jun 10, 2025
5 of 8 checks passed
@Wauplin Wauplin deleted the fix-inference-search-param branch June 10, 2025 16:06
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