From 28d0c11e483b78879e595601cb86c49567214656 Mon Sep 17 00:00:00 2001 From: Slipstreamm Date: Thu, 12 Jun 2025 19:27:59 -0600 Subject: [PATCH] refactor(image-description): Increase max output tokens to 1024 Previously, the maximum output tokens for image descriptions was set to 256. This was often too restrictive, leading to truncated or incomplete descriptions. Increasing the limit to 1024 allows for more comprehensive and detailed image descriptions while still encouraging conciseness. --- gurt/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gurt/api.py b/gurt/api.py index a4f9dd8..0bdc10d 100644 --- a/gurt/api.py +++ b/gurt/api.py @@ -2791,7 +2791,7 @@ async def generate_image_description( # System prompt is not strictly needed here as the user prompt is direct. description_gen_config = types.GenerateContentConfig( temperature=0.4, # Lower temperature for more factual description - max_output_tokens=256, # Descriptions should be concise + max_output_tokens=1024, # Descriptions should be concise safety_settings=STANDARD_SAFETY_SETTINGS, # No response_mime_type or response_schema needed for plain text tools=None, # No tools for this task