Skip to content

Releases: modelscope/modelscope_hub

v0.1.6

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 02 Jul 16:26

What's Changed

  • replace _ALLOWED_EXTRA whitelist with _RESERVED_EXTRA_FIELDS blocklist by @wangxingjun778 in #33

Full Changelog: v0.1.5...v0.1.6

v0.1.5

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 30 Jun 03:19

What's Changed

Full Changelog: v0.1.4...v0.1.5

v0.1.4

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 26 Jun 04:45

Release Notes

  • Added gated mode support via CLI (--gated/--no-gated) and SDK (gated_mode).
  • Refined visibility logic: visibility takes precedence; gated_mode is effective only when visibility=PRIVATE – if visibility is omitted and gated_mode=True, it defaults to PRIVATE.
  • Filtered unknown fields from API payloads and enforced ProtectedMode as integer (1 or 2) to prevent server errors.

What's Changed

Full Changelog: v0.1.3...v0.1.4

v0.1.3

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 24 Jun 07:00

What's Changed

Full Changelog: v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 22 Jun 17:01

v0.1.1

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 22 Jun 05:55

What's Changed

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 18 Jun 03:30

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

v0.0.9

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 15 Jun 06:16

Release Notes

Features & Enhancements

  • Model Retrieval: Added support for the revision parameter in get_model.
  • Repository Operations: Expanded parameter support for various repository and model operations.
  • Pattern Normalization: Generalized pattern normalization to accept iterable inputs.

Improvements & Fixes

  • Timezone Parsing: Enhanced parse_timestamp to ensure robust timezone conversion across multiple formats, including ISO 8601 strings and floats.

What's Changed

Full Changelog: v0.0.8...v0.0.9

v0.0.8

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 11 Jun 03:45

What's Changed

Full Changelog: v0.0.7...v0.0.8

v0.0.7

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 09 Jun 20:41

What's Changed

Full Changelog: v0.0.6...v0.0.7