Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chtmp223 authored Nov 21, 2023
1 parent 650d8de commit e0df264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -332,4 +331,4 @@ def construct_sentences(p2_root, removed):
break
if not removed_branches:
sentences.append(branch_str)
return sentences
return sentences

0 comments on commit e0df264

Please sign in to comment.