From f9dfb03d9a3d0e9fc85a81c43d9e66c30f621bb0 Mon Sep 17 00:00:00 2001 From: AutoFix Bot Date: Wed, 4 Mar 2026 00:09:28 +0800 Subject: [PATCH] fix: auto-fix code issues (cron) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复PEP8格式问题 (black格式化) - 修复ai_manager.py中的行长度问题 --- backend/ai_manager.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/ai_manager.py b/backend/ai_manager.py index 26895cc..7f34801 100644 --- a/backend/ai_manager.py +++ b/backend/ai_manager.py @@ -548,9 +548,7 @@ class AIManager: } content = [{"type": "text", "text": prompt}] - content.extend( - [{"type": "image_url", "image_url": {"url": url}} for url in image_urls] - ) + content.extend([{"type": "image_url", "image_url": {"url": url}} for url in image_urls]) payload = { "model": "gpt-4-vision-preview", @@ -582,9 +580,7 @@ class AIManager: "anthropic-version": "2023-06-01", } - content = [ - {"type": "image", "source": {"type": "url", "url": url}} for url in image_urls - ] + content = [{"type": "image", "source": {"type": "url", "url": url}} for url in image_urls] content.append({"type": "text", "text": prompt}) payload = {