v0.1.0
·
60 commits
to release/0.1
since this release
Release Notes
v0.1.0 (2026-06-12)
馃殌 Features
- Expanded Parameters:
get_modelnow supports therevisionparameter, improving parameter passthrough across repo and model operations (#19). - Remote Repo Sync: Added a
--syncCLI flag (viasync_remote_repo) to detect and purge remote orphan files after a successful upload, scoped to thepath_in_repoprefix (#22). - Upload Resiliency: Introduced configurable consecutive failure limits (
MODELSCOPE_UPLOAD_BATCH_CONSECUTIVE_FAILURE_LIMIT) and total wait time thresholds (MODELSCOPE_UPLOAD_COMMIT_MAX_TOTAL_WAIT) (#23).
馃悰 Fixes & Compatibility
- OpenAPI Migration: Shifted dataset retrieval and listing (
get_dataset,list_datasets) from the legacy API to the OpenAPI implementation (#21). - API Normalization: Enhanced compatibility APIs with defensive input pre-conversion, auth/HTTP exception translations, numeric string label support in
Visibility.from_label(), and early exits for batch commit timeouts/failures (#23). - Legacy Cache Reuse: Added a
_resolve_legacy_pathshelper across 4 download entry points (model_file_download,dataset_file_download,snapshot_download,dataset_snapshot_download) to reuse old flat path cache structures without migration (#23). - Type Safety: Fixed a potential
TypeErrorin the path resolution helper whencache_diris configured as a string instead of aPathobject (#23). - Sync Correction: Fixed orphan detection to use the unfiltered local file list, preventing pattern-excluded files from being falsely deleted on remote (#22).
馃摑 Documentation
- Deprecation Notice: Added a
DeprecationWarningand security restrictions for programmaticdelete_repoanddelete_filesoperations, redirecting users to the web console until token-scoped auth is ready (#20).
馃И Tests
- Added and updated unit/integration tests covering upload thresholds, OpenAPI dataset retrieval, legacy cache hit simulations, and path resolution logic (#21, #23).
All contributions in this release cycle were made by @wangxingjun778.
What's Changed
- update readme by @wangxingjun778 in #19
- add delete deprecation notice in readme by @wangxingjun778 in #20
- [Fix] Fix list_datasets with openapi by @wangxingjun778 in #21
- [Feature] Add sync_remote_repo orphan detection and default value for upload folder by @wangxingjun778 in #22
- Upload Enhancements & Compatibility Fixes by @wangxingjun778 in #23
Full Changelog: v0.0.9...v0.1.0