|
@@ -202,8 +202,7 @@ def run():
|
|
|
logger.error('[+] 获取模型响应失败, 跳过任务')
|
|
|
return
|
|
|
|
|
|
- usage_info, text = str(response.usage_metadata).replace('\n', ', '), response.text.strip()
|
|
|
- logger.info(f'[+] 使用情况: {usage_info}')
|
|
|
+ text = response.text.strip()
|
|
|
cleaned_text = text.replace("```json", '').replace("```", '').strip()
|
|
|
AliyunLogger.logging( str(redis_task['video_id']), redis_task['title'], redis_task['video_path'], str(mark), redis_task['type'], redis_task['partition'], str(cleaned_text))
|
|
|
logger.info(f'[+] 模型响应结果: {text}')
|