Explorar o código

解构增长头部视频

luojunhui hai 1 semana
pai
achega
a75b344bff

+ 1 - 1
app/domains/llm_tasks/decode_video/_const.py

@@ -2,7 +2,7 @@ class VideoDecodeConst:
     TASK_NAME = "decode_video_produce"
     FEISHU_BOT_ENV = "long_articles_task"
     FAIL_RATE_THRESHOLD = 0.1
-    ERROR_SAMPLE_LIMIT = 5
+    ERROR_SAMPLE_LIMIT = 20
 
     class TaskStatus:
         INIT = 0

+ 1 - 5
app/domains/llm_tasks/decode_video/decode_video_produce.py

@@ -240,11 +240,7 @@ class DecodeVideoProduce(VideoDecodeConst):
 
         if error_count:
             error_samples = [
-                {
-                    "index": idx,
-                    "video_id": task_obj.get("video_id"),
-                    "error": str(err),
-                }
+                f"https://admin.piaoquantv.com/cms/post-detail/{task_obj.get('video_id')}/detail/ "
                 for idx, task_obj, err in result["errors"][: self.ERROR_SAMPLE_LIMIT]
             ]
             await feishu_robot.bot(