Releases: modelscope/modelscope_hub
Releases · modelscope/modelscope_hub
v0.1.4
Release Notes
- Added gated mode support via CLI (
--gated/--no-gated) and SDK (gated_mode). - Refined visibility logic:
visibilitytakes precedence;gated_modeis effective only whenvisibility=PRIVATE– ifvisibilityis omitted andgated_mode=True, it defaults toPRIVATE. - Filtered unknown fields from API payloads and enforced
ProtectedModeas integer (1 or 2) to prevent server errors.
What's Changed
- [Fix] Fix gated mode by @wangxingjun778 in #28
- [Fix] Fix gated repo issues by @wangxingjun778 in #29
Full Changelog: v0.1.3...v0.1.4
v0.1.3
What's Changed
- Fix compat apis by @wangxingjun778 in #26
- [Fix] Fix review issues by @wangxingjun778 in #27
Full Changelog: v0.1.2...v0.1.3
v0.1.2
v0.1.1
What's Changed
- Update news by @wangxingjun778 in #24
- [Fix] fix legacy api for msdatasets loading by @wangxingjun778 in #25
Full Changelog: v0.1.0...v0.1.1
v0.1.0
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
v0.0.9
Release Notes
Features & Enhancements
- Model Retrieval: Added support for the
revisionparameter inget_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_timestampto ensure robust timezone conversion across multiple formats, including ISO 8601 strings and floats.
What's Changed
- Feat/adap sdk by @wangxingjun778 in #17
- support revision for get_model by @wangxingjun778 in #18
Full Changelog: v0.0.8...v0.0.9
v0.0.8
What's Changed
- [Security] Redact OAuth tokens from git error logs and exceptions by @wangxingjun778 in #14
- [Feat and Refactor] Add ms list --envs and Fix security issues by @wangxingjun778 in #15
- [Feat] Unify envs processing by @wangxingjun778 in #16
Full Changelog: v0.0.7...v0.0.8
v0.0.7
What's Changed
- Fix UTs by @wangxingjun778 in #9
- Fix token issues by @wangxingjun778 in #10
- fix UT by @wangxingjun778 in #12
- Feat/refactor compat by @wangxingjun778 in #13
Full Changelog: v0.0.6...v0.0.7
v0.0.6
What's Changed
- Fix/v4 reviews by @wangxingjun778 in #7
- Feat/refactor compat by @wangxingjun778 in #8
Full Changelog: v0.0.5...v0.0.6
v0.0.5
What's Changed
- Fix/v4 reviews by @wangxingjun778 in #5
- Fix/v4 reviews by @wangxingjun778 in #6
Full Changelog: v0.0.4...v0.0.5