Fix when stop
in request is null
This commit is contained in:
parent
6ae3702f69
commit
ea73dace98
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def make_postData(body, chat=False, stream=False):
|
|||
postData["stop"] = [stop_token]
|
||||
else:
|
||||
postData["stop"] = []
|
||||
if(is_present(body, "stop")): postData["stop"] += body["stop"]
|
||||
if(is_present(body, "stop")): postData["stop"] += body["stop"] or []
|
||||
postData["n_keep"] = -1
|
||||
postData["stream"] = stream
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue