[model-gateway] support VL models in router (#14140)
This commit is contained in:
@@ -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)
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user