diff --git a/examples/server/api_like_OAI.py b/examples/server/api_like_OAI.py index 179a57416..4049e1f4a 100755 --- a/examples/server/api_like_OAI.py +++ b/examples/server/api_like_OAI.py @@ -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