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.2.20"
version = "2.2.21"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
147 changes: 80 additions & 67 deletions pkg/apis/common/v2/common.pb.go

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

19 changes: 19 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.

6 changes: 6 additions & 0 deletions pkg/apis/common/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@ message HuggingFace {
}];
// Insecure skip verify indicates whether to skip verifying the server's certificate chain.
optional bool insecure_skip_verify = 2;
// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
// it defaults to the repository's default main branch.
optional string revision = 3 [(validate.rules).string = {
min_len: 1
ignore_empty: true
}];
}

// Range represents download range.
Expand Down
3 changes: 3 additions & 0 deletions proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ message HuggingFace {
optional string token = 1;
// Insecure skip verify indicates whether to skip verifying the server's certificate chain.
optional bool insecure_skip_verify = 2;
// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
// it defaults to the repository's default main branch.
optional string revision = 3;
}

// Range represents download range.
Expand Down
4 changes: 4 additions & 0 deletions src/common.v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ pub struct HuggingFace {
/// Insecure skip verify indicates whether to skip verifying the server's certificate chain.
#[prost(bool, optional, tag = "2")]
pub insecure_skip_verify: ::core::option::Option<bool>,
/// Revision of the HuggingFace model, dataset, or space. It can be a branch name, tag name, or commit hash. If not specified,
/// it defaults to the repository's default main branch.
#[prost(string, optional, tag = "3")]
pub revision: ::core::option::Option<::prost::alloc::string::String>,
}
/// Range represents download range.
#[derive(serde::Serialize, serde::Deserialize)]
Expand Down
Binary file modified src/descriptor.bin
Binary file not shown.