Fix when stop in request is null

This commit is contained in:
Elsa 2023-08-07 18:09:15 +08:00
parent 6ae3702f69
commit ea73dace98

View file

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