From 146de5f0167ce7be49e00e5102c1adbfbfe60520 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 23 Jul 2026 19:40:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D2=E4=B8=AAruff?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20-=20F541=E5=A4=9A=E4=BD=99f=E5=89=8D?= =?UTF-8?q?=E7=BC=80=20+=20B007=E6=9C=AA=E7=94=A8=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/app/services/ai_service.py | 2 +- apps/worker/worker_app/tasks/ai_tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/app/services/ai_service.py b/apps/api/app/services/ai_service.py index bd7e3ffb4..0d1bca0a1 100755 --- a/apps/api/app/services/ai_service.py +++ b/apps/api/app/services/ai_service.py @@ -434,7 +434,7 @@ def semantic_match_assets( user_prompt = ( f"目标视频描述:{description}\n\n" - f"素材列表:\n" + "\n".join(asset_summaries) + f"\n\n请返回每个素材的匹配分数JSON:" + f"素材列表:\n" + "\n".join(asset_summaries) + "\n\n请返回每个素材的匹配分数JSON:" ) messages = [ diff --git a/apps/worker/worker_app/tasks/ai_tasks.py b/apps/worker/worker_app/tasks/ai_tasks.py index cbc5a63e9..6ef25d7b0 100755 --- a/apps/worker/worker_app/tasks/ai_tasks.py +++ b/apps/worker/worker_app/tasks/ai_tasks.py @@ -142,7 +142,7 @@ def _parse_recommend_response( return None clips: List[Dict[str, Any]] = [] - for i, clip in enumerate(clips_data): + for _, clip in enumerate(clips_data): if not isinstance(clip, dict): continue asset_id = str(clip.get("asset_id", ""))