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}]")