From b31b4b903c9b01f44bc8b9fd18c421f4e058d019 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 18 Mar 2026 16:56:27 -0400 Subject: [PATCH] refactor: use &str for generate_photo_description image parameter Co-Authored-By: Claude Sonnet 4.6 --- src/ai/ollama.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))