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

This commit is contained in:
ooapex
2025-11-30 17:50:22 -08:00
committed by GitHub
parent decb48965d
commit f138ae5789
+7
View File
@@ -114,6 +114,8 @@ pub enum ContentPart {
Text { text: String }, Text { text: String },
#[serde(rename = "image_url")] #[serde(rename = "image_url")]
ImageUrl { image_url: ImageUrl }, ImageUrl { image_url: ImageUrl },
#[serde(rename = "video_url")]
VideoUrl { video_url: VideoUrl },
} }
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)] #[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
@@ -123,6 +125,11 @@ pub struct ImageUrl {
pub detail: Option<String>, // "auto", "low", or "high" 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) // Response Format (for structured outputs)
// ============================================================================ // ============================================================================