registry.py 267 B

1234567
  1. from typing import Callable
  2. from prometheus_client import Counter,Histogram
  3. AI_BOT_REQUEST_LATENCY = Histogram('ai_bot_request_latency', '文本机器人接口耗时',['bid'])
  4. AI_BOT_REQUEST_COUNT = Counter('ai_bot_request_count', 'Total number of bot requests')