[Rust Frontend] Strongly type wire dtypes and multimodal modalities (#56174)

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-09-10 02:11:22 +00:00
committed by GitHub
co-authored by Codex mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 285cbce6bd
commit 41cffa9af0
15 changed files with 453 additions and 270 deletions
+4 -2
View File
@@ -318,7 +318,9 @@ mod tests {
use std::collections::{BTreeSet, HashMap};
use serial_test::file_serial;
use vllm_engine_core_client::protocol::multimodal::{MmFeatureSpec, PlaceholderRange};
use vllm_engine_core_client::protocol::multimodal::{
MmFeatureSpec, MmModality, PlaceholderRange,
};
use vllm_tokenizer::test_utils::TestTokenizer;
use super::*;
@@ -720,7 +722,7 @@ mod tests {
fn lower_text_request_moves_multimodal_features_to_generate_request() {
let features = vec![MmFeatureSpec {
data: None,
modality: "image".to_string(),
modality: MmModality::Image,
identifier: "image-1".to_string(),
mm_position: PlaceholderRange {
offset: 2,