MCPcopy Index your code
hub / github.com/lm-sys/FastChat / api_get_status

Function api_get_status

fastchat/serve/multi_model_worker.py:128–133  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

126
127@app.post("/worker_get_status")
128async def api_get_status(request: Request):
129 return {
130 "model_names": [m for w in workers for m in w.model_names],
131 "speed": 1,
132 "queue_length": sum([w.get_queue_length() for w in workers]),
133 }
134
135
136@app.post("/count_token")

Callers

nothing calls this directly

Calls 1

get_queue_lengthMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…