This commit is contained in:
2026-03-06 13:23:32 +08:00
parent 4ba636e98c
commit afb2b78c15
29 changed files with 76 additions and 1521 deletions

View File

@@ -164,7 +164,9 @@ class ImageAnalyzerService:
timeout=30
)
content = response.choices[0].message.content
if not response.choices:
return self._fallback(image_url, "API 返回空 choices")
content = response.choices[0].message.content or ""
elapsed = time.monotonic() - start
result = self._parse_result(image_url, content)