Migrating to HuggingFace Hub v0.28.0
Version v0.28.0 introduces 1 breaking change. This guide details how to update your code.
Released: 1/28/2025
1
Breaking Changes
1
Migration Steps
9
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
InferenceClientHfApilikeunlikechat_completiontext_to_imageprepare_requestModelHubMixinCardDataBreaking Changes
●Issue #1
The `like` endpoint in HfApi has been removed to prevent misuse. To remove existing likes, use the `unlike` endpoint instead.
Migration Steps
- 1If you were using the removed `like` endpoint, switch to using the `unlike` endpoint to remove existing likes.
Release Summary
This release introduces major updates to the InferenceClient, enabling unified inference across multiple third-party providers using Hugging Face Hub model IDs. Additionally, HfApi has been updated with new repository properties and the deprecated `like` endpoint has been removed.
Need More Details?
View the full release notes and all changes for HuggingFace Hub v0.28.0.
View Full Changelog