Browse Source

调整

1257
H Vs 2 weeks ago
parent
commit
bd624a88a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/endpoints/pipeline_endpoint.py

+ 1
- 1
app/endpoints/pipeline_endpoint.py View File

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


Loading…
Cancel
Save