|
@@ -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()
|
|
|
|
|
|
|
|
|
|
# 模拟接口请求返回
|
|
# 模拟接口请求返回
|