From f138ae5789107fe53ff3b0410f10a0e290356dec Mon Sep 17 00:00:00 2001 From: ooapex <153731545+ooapex@users.noreply.github.com> Date: Mon, 1 Dec 2025 09:50:22 +0800 Subject: [PATCH] [model-gateway] support VL models in router (#14140) --- sgl-router/src/protocols/common.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sgl-router/src/protocols/common.rs b/sgl-router/src/protocols/common.rs index a5895be14..ac51e85ea 100644 --- a/sgl-router/src/protocols/common.rs +++ b/sgl-router/src/protocols/common.rs @@ -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, // "auto", "low", or "high" } +#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)] +pub struct VideoUrl { + pub url: String, +} + // ============================================================================ // Response Format (for structured outputs) // ============================================================================