[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
@@ -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