diff --git a/src/ai/ollama.rs b/src/ai/ollama.rs index 48cc220..0c473d3 100644 --- a/src/ai/ollama.rs +++ b/src/ai/ollama.rs @@ -483,11 +483,11 @@ Analyze the image and use specific details from both the visual content and the /// Generate a brief visual description of a photo for use in RAG query enrichment. /// Returns 1-2 sentences describing people, location, and activity visible in the image. /// Only called when the model has vision capabilities. - pub async fn generate_photo_description(&self, image_base64: String) -> Result { + pub async fn generate_photo_description(&self, image_base64: &str) -> Result { let prompt = "Briefly describe what you see in this image in 1-2 sentences. \ Focus on the people, location, and activity."; let system = "You are a scene description assistant. Be concise and factual."; - let images = vec![image_base64]; + let images = vec![image_base64.to_string()]; let description = self .generate_with_images(prompt, Some(system), Some(images))