From 782d8e4f84597fc5093c7b3b0ed454a61ea846d6 Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Sun, 7 Dec 2025 18:03:36 +0200 Subject: [PATCH] Fix syntax error in image processing: fix truncated variable assignment --- bot/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/bot.py b/bot/bot.py index 70d3352..68e1fdc 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -367,8 +367,7 @@ async def on_message(message): print(f"✅ Image downloaded, analyzing with vision model...") # Analyze image qwen_description = await analyze_image_with_qwen(base64_img) - truncated = (qwen_description[:50] + "...") - if not base64_img:if len(qwen_description) > 50 else qwen_description + truncated = (qwen_description[:50] + "...") if len(qwen_description) > 50 else qwen_description print(f"📝 Vision analysis result: {truncated}") if qwen_description and qwen_description.strip(): embed_context_parts.append(f"[Embedded image shows: {qwen_description}]")