Skip to content

v0.1.0

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 18 Jun 03:30
· 60 commits to release/0.1 since this release

Release Notes

v0.1.0 (2026-06-12)

馃殌 Features

  • Expanded Parameters: get_model now supports the revision parameter, improving parameter passthrough across repo and model operations (#19).
  • Remote Repo Sync: Added a --sync CLI flag (via sync_remote_repo) to detect and purge remote orphan files after a successful upload, scoped to the path_in_repo prefix (#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_paths helper 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 TypeError in the path resolution helper when cache_dir is configured as a string instead of a Path object (#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 DeprecationWarning and security restrictions for programmatic delete_repo and delete_files operations, 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

Full Changelog: v0.0.9...v0.1.0