[model-gateway] support VL models in router (#14140)

This commit is contained in:
ooapex
2025-12-01 09:50:22 +08:00
committed by GitHub
parent decb48965d
commit f138ae5789

View File

@@ -114,6 +114,8 @@ pub enum ContentPart {
Text { text: String },
#[serde(rename = "image_url")]
ImageUrl { image_url: ImageUrl },
#[serde(rename = "video_url")]
VideoUrl { video_url: VideoUrl },
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
@@ -123,6 +125,11 @@ pub struct ImageUrl {
pub detail: Option<String>, // "auto", "low", or "high"
}
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
pub struct VideoUrl {
pub url: String,
}
// ============================================================================
// Response Format (for structured outputs)
// ============================================================================