PD Rust LB (PO2) (#6437)
Co-authored-by: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com>
This commit is contained in:
@@ -229,6 +229,11 @@ async def get_server_info():
|
||||
}
|
||||
|
||||
|
||||
@app.get("/get_load")
|
||||
async def get_load():
|
||||
return await _global_state.tokenizer_manager.get_load()
|
||||
|
||||
|
||||
@app.api_route("/set_internal_state", methods=["POST", "PUT"])
|
||||
async def set_internal_state(obj: SetInternalStateReq, request: Request):
|
||||
res = await _global_state.tokenizer_manager.set_internal_state(obj)
|
||||
|
||||
Reference in New Issue
Block a user