mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[feature] support reward api (#4518)
CE Compile Job / ce_job_pre_check (push) Has been cancelled
CE Compile Job / print_ce_job_pre_check_outputs (push) Has been cancelled
CE Compile Job / FD-Clone-Linux (push) Has been cancelled
CE Compile Job / Show Code Archive Output (push) Has been cancelled
CE Compile Job / BUILD_SM8090 (push) Has been cancelled
CE Compile Job / BUILD_SM8689 (push) Has been cancelled
CE Compile Job / CE_UPLOAD (push) Has been cancelled
Deploy GitHub Pages / deploy (push) Has been cancelled
CE Compile Job / ce_job_pre_check (push) Has been cancelled
CE Compile Job / print_ce_job_pre_check_outputs (push) Has been cancelled
CE Compile Job / FD-Clone-Linux (push) Has been cancelled
CE Compile Job / Show Code Archive Output (push) Has been cancelled
CE Compile Job / BUILD_SM8090 (push) Has been cancelled
CE Compile Job / BUILD_SM8689 (push) Has been cancelled
CE Compile Job / CE_UPLOAD (push) Has been cancelled
Deploy GitHub Pages / deploy (push) Has been cancelled
Co-authored-by: SunLei <sunlei5788@gmail.com>
This commit is contained in:
@@ -125,6 +125,8 @@ class DealerConnectionManager:
|
||||
request_id = response[-1]["request_id"]
|
||||
if request_id[:4] in ["cmpl", "embd"]:
|
||||
request_id = request_id.rsplit("_", 1)[0]
|
||||
elif "reward" == request_id[:6]:
|
||||
request_id = request_id.rsplit("_", 1)[0]
|
||||
elif "chatcmpl" == request_id[:8]:
|
||||
request_id = request_id.rsplit("_", 1)[0]
|
||||
async with self.lock:
|
||||
|
||||
Reference in New Issue
Block a user