fix: auto-fix code issues (cron)

- 修复PEP8格式问题 (black格式化)
- 修复ai_manager.py中的行长度问题
This commit is contained in:
AutoFix Bot
2026-03-04 00:09:28 +08:00
parent 259f2c90d0
commit f9dfb03d9a

View File

@@ -548,9 +548,7 @@ class AIManager:
} }
content = [{"type": "text", "text": prompt}] content = [{"type": "text", "text": prompt}]
content.extend( content.extend([{"type": "image_url", "image_url": {"url": url}} for url in image_urls])
[{"type": "image_url", "image_url": {"url": url}} for url in image_urls]
)
payload = { payload = {
"model": "gpt-4-vision-preview", "model": "gpt-4-vision-preview",
@@ -582,9 +580,7 @@ class AIManager:
"anthropic-version": "2023-06-01", "anthropic-version": "2023-06-01",
} }
content = [ content = [{"type": "image", "source": {"type": "url", "url": url}} for url in image_urls]
{"type": "image", "source": {"type": "url", "url": url}} for url in image_urls
]
content.append({"type": "text", "text": prompt}) content.append({"type": "text", "text": prompt})
payload = { payload = {