|
@@ -88,8 +88,9 @@ def botservice(reqbot:reqRobot):
|
|
|
#del_cache(uid, bid, 'status', session_id)
|
|
|
return ChatResponse(code=Error.error.value, message="internal error").to_json_string()
|
|
|
finally:
|
|
|
+ print('ceshi')
|
|
|
latency = (time.time() - start_time)
|
|
|
- AI_BOT_REQUEST_LATENCY.labels(bid).observe(latency)
|
|
|
+ AI_BOT_REQUEST_LATENCY.labels(bid=bid).observe(latency)
|
|
|
|
|
|
Instrumentator().instrument(app).expose(app)
|
|
|
if __name__ == '__main__':
|