mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
assert prompt len > 0 (#2773)
This commit is contained in:
@@ -166,6 +166,7 @@ class GPUModelRunner(ModelRunnerBase):
|
||||
request = req_dicts[i]
|
||||
idx = request.idx
|
||||
length = len(request.prompt_token_ids)
|
||||
assert length > 0, "The prompt requested must not be empty."
|
||||
|
||||
prefill_tokens = []
|
||||
if (request.guided_json is not None
|
||||
|
Reference in New Issue
Block a user