[Rust Frontend][Multimodal] Accept preprocessed multimodal gRPC features (#55047)
Signed-off-by: Biswa Panda <biswa.panda@gmail.com> Signed-off-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Bugen Zhao
Codex
parent
a0844fa6c6
commit
31759ccb6d
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "vllm-proto"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
description = "Protobuf messages and gRPC bindings for the vLLM Rust frontend"
|
||||
|
||||
@@ -17,7 +17,7 @@ Repository setup requires a `BUF_TOKEN` GitHub Actions secret with permission to
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
vllm-proto = "0.1"
|
||||
vllm-proto = "0.2"
|
||||
```
|
||||
|
||||
For example, import `vllm_proto::inference_client::InferenceClient` or
|
||||
|
||||
@@ -228,7 +228,20 @@ message MediaItem {
|
||||
string url = 2; // http:// or https://
|
||||
string data_uri = 3; // data:
|
||||
bytes raw_bytes = 4;
|
||||
PreprocessedMediaFeatures features = 7;
|
||||
}
|
||||
string mime_type = 5;
|
||||
string uuid = 6;
|
||||
}
|
||||
|
||||
// Engine-ready multimodal features produced by a version-compatible frontend.
|
||||
// `kwargs` is the MessagePack wire representation of one MmKwargsItem.
|
||||
message PreprocessedMediaFeatures {
|
||||
// Required inline payload. Cache-only references are not accepted.
|
||||
optional bytes kwargs = 1;
|
||||
string identifier = 2;
|
||||
uint64 offset = 3;
|
||||
uint64 length = 4;
|
||||
optional string mm_hash = 5;
|
||||
repeated bool is_embed = 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user