@@ -532,7 +532,7 @@ async def ai_chat_text_async(request: Request,token_id, app_id, wxid, msg_data, | |||
await asyncio.sleep(random.uniform(1.5, 3)) | |||
else: | |||
if reply_content=='不回复': | |||
if reply_content in '不回复': | |||
end_time = time.time() # 记录任务结束时间 | |||
execution_time = end_time - start_time # 计算执行时间 | |||
logger.warning(f"AI回答任务完成,耗时 {execution_time:.2f} 秒,AI回答<不回复>,跳过微信回复") | |||