mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
feat: add post-processing step for pool_output (#4462)
* feat: add post-processing step for pool_output * bugfix * fix: test_serving_embedding * fix test_request_to_batch_dicts * fix: code style
This commit is contained in:
@@ -123,7 +123,7 @@ class DealerConnectionManager:
|
||||
raw_data = await dealer.read()
|
||||
response = msgpack.unpackb(raw_data[-1])
|
||||
request_id = response[-1]["request_id"]
|
||||
if "cmpl" == request_id[:4]:
|
||||
if request_id[:4] in ["cmpl", "embd"]:
|
||||
request_id = request_id.rsplit("_", 1)[0]
|
||||
elif "chatcmpl" == request_id[:8]:
|
||||
request_id = request_id.rsplit("_", 1)[0]
|
||||
|
||||
Reference in New Issue
Block a user