Skip to content

feat: add ModelScope message#637

Merged
gaius-qi merged 1 commit intomainfrom
feature/model-scope
Mar 9, 2026
Merged

feat: add ModelScope message#637
gaius-qi merged 1 commit intomainfrom
feature/model-scope

Conversation

@gaius-qi
Copy link
Member

@gaius-qi gaius-qi commented Mar 9, 2026

Description

This pull request introduces support for ModelScope protocol in the download API and refactors the HuggingFace protocol definition. It also updates the protobuf message indices to accommodate the new protocol and increments the package version.

Protocol enhancements:

  • Added ModelScope protocol support to the Download struct, including its token and revision fields, and implemented associated getter methods. [1] [2] [3]
  • Refactored the HuggingFace struct by removing the InsecureSkipVerify field and adjusting the field indices for Revision. [1] [2]

Protobuf index updates:

  • Updated protobuf message type indices for Range and Piece structs to accommodate the addition of ModelScope. [1] [2] [3] [4] [5] [6]
  • Updated the raw descriptor byte array to reflect the new structure and indices.

Version bump:

  • Incremented the package version in Cargo.toml from 2.2.22 to 2.2.23.

Related Issue

Motivation and Context

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi self-assigned this Mar 9, 2026
@gaius-qi gaius-qi added the enhancement New feature or request label Mar 9, 2026
@gaius-qi gaius-qi enabled auto-merge (squash) March 9, 2026 07:53
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gaius-qi gaius-qi merged commit 771d177 into main Mar 9, 2026
5 checks passed
@gaius-qi gaius-qi deleted the feature/model-scope branch March 9, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants