From e0df2642b71926bfaea31b7e0260a7257ecaf769 Mon Sep 17 00:00:00 2001 From: Chau Minh Pham <41503463+chtmp223@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:15:27 -0500 Subject: [PATCH] Update utils.py --- script/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/utils.py b/script/utils.py index fcc7eee..154fe95 100644 --- a/script/utils.py +++ b/script/utils.py @@ -28,7 +28,6 @@ def api_call(prompt, deployment_name, temperature, max_tokens, top_p): - top_p: top p parameter ''' time.sleep(5) # Change to avoid rate limit - SystemExit if deployment_name in ["gpt-35-turbo", "gpt-4", "gpt-3.5-turbo"]: response = client.chat.completions.create(model=deployment_name, temperature=float(temperature), @@ -332,4 +331,4 @@ def construct_sentences(p2_root, removed): break if not removed_branches: sentences.append(branch_str) - return sentences \ No newline at end of file + return sentences