|
logger.error('[+] 获取模型响应失败, 跳过任务')
|
|
logger.error('[+] 获取模型响应失败, 跳过任务')
|
|
- usage_info, text = str(response.usage_metadata).replace('\n', ', '), response.text.strip()
|
|
|
|
cleaned_text = text.replace("```json", '').replace("```", '').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))
|
|
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))
|