Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.3.0"
version = "2.3.1"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
510 changes: 308 additions & 202 deletions pkg/apis/common/v2/common.pb.go

Large diffs are not rendered by default.

190 changes: 190 additions & 0 deletions pkg/apis/common/v2/common.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,8 @@ message Download {
// If metadata_only is true, the peer registers with the scheduler only to report
// the metadata of the task, no need to be scheduled for downloading pieces.
bool metadata_only = 33;
// OpenCSG protocol information.
optional OpenCSG open_csg = 34;

reserved 21;
reserved "load_to_cache";
Expand Down Expand Up @@ -817,6 +819,25 @@ message ModelScope {
}];
}

// OpenCSG related information.
message OpenCSG {
// Access token for OpenCSG Hub.
optional string token = 1 [(validate.rules).string = {
min_len: 1
ignore_empty: true
}];
// Revision of the OpenCSG repository. It can be a branch name, tag name, or commit hash. This field must not be empty.
// Clients should use "main" when the user does not specify a revision.
string revision = 2 [(validate.rules).string = {
min_len: 1
}];
// Base URL of OpenCSG Hub. If not specified, it defaults to https://hub.opencsg.com/csg/.
optional string base_url = 3 [(validate.rules).string = {
uri: true
ignore_empty: true
}];
}

// Range represents download range.
message Range {
// Start of range.
Expand Down
Loading
Loading