shanghui 3 月之前
父节点
当前提交
bd2a047ac9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/voip/bot.py

+ 1 - 0
src/core/voip/bot.py

@@ -439,6 +439,7 @@ class ToTextBotAgent:
                 latency = (time.time() - start_time)
                 latency = (time.time() - start_time)
                 registry.BOT_REQUEST_COUNT.inc()
                 registry.BOT_REQUEST_COUNT.inc()
                 registry.BOT_REQUEST_LATENCY.labels(request.taskId).observe(latency)
                 registry.BOT_REQUEST_LATENCY.labels(request.taskId).observe(latency)
+                session.close()
 
 
 
 
 # 模拟接口请求返回
 # 模拟接口请求返回