PD Rust LB (PO2) (#6437)

Co-authored-by: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com>
This commit is contained in:
Liangsheng Yin
2025-05-29 20:50:10 +08:00
committed by GitHub
parent 1dc6864f17
commit 78689d3393
17 changed files with 1017 additions and 42 deletions

View File

@@ -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)