MCPcopy
hub / github.com/lm-sys/FastChat / is_limit_reached

Function is_limit_reached

fastchat/serve/gradio_web_server.py:344–354  ·  view source on GitHub ↗
(model_name, ip)

Source from the content-addressed store, hash-verified

342
343
344def is_limit_reached(model_name, ip):
345 monitor_url = "http://localhost:9090"
346 try:
347 ret = requests.get(
348 f"{monitor_url}/is_limit_reached?model={model_name}&user_id={ip}", timeout=1
349 )
350 obj = ret.json()
351 return obj
352 except Exception as e:
353 logger.info(f"monitor error: {e}")
354 return None
355
356
357def bot_response(

Callers 1

bot_responseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…