model_gateway_rs/types/vision.rs
1use serde::{Deserialize, Serialize};
2
3/// Prompt structure for vision models
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct VisionPrompt {
6 /// URL or base64-encoded string of the image
7 pub image: String,
8
9 /// Optional prompt text accompanying the image
10 #[serde(skip_serializing_if = "Option::is_none")]
11 pub prompt: Option<String>,
12}
13
14/// Response structure from vision models
15#[derive(Debug, Clone, Serialize, Deserialize)]
16pub struct VisionResponse {
17 /// Textual description or result generated from the image
18 pub result: String,
19}