From 7dcffd7a03305739823a5bbfa1f1c072cd9a39e9 Mon Sep 17 00:00:00 2001 From: jwj7140 Date: Sun, 2 Jul 2023 20:45:29 +0900 Subject: [PATCH] set n_keep to -1 --- examples/server/api_like_OAI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/server/api_like_OAI.py b/examples/server/api_like_OAI.py index 6eee550c6..453e1ec04 100755 --- a/examples/server/api_like_OAI.py +++ b/examples/server/api_like_OAI.py @@ -71,7 +71,7 @@ def make_postData(body, chat=False, stream=False): if(is_present(body, "logit_bias")): postData["logit_bias"] = [[int(token), body["logit_bias"][token]] for token in body["logit_bias"].keys()] postData["stop"] = [args.stop] if(is_present(body, "stop")): postData["stop"] += body["stop"] - + postData["n_keep"] = -1 postData["stream"] = stream return postData