Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
natolambert committed Sep 17, 2024
1 parent 0362d99 commit c8607cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rewardbench/generative.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,7 @@ def chat_completion_openai(model, conv, temperature, max_tokens, api_dict=None):
# remove system prompt for o1 models
if "o1-" in model:
messages = messages[1:]
response = client.chat.completions.create(
model=model, messages=messages, n=1, temperature=1
)
response = client.chat.completions.create(model=model, messages=messages, n=1, temperature=1)
else:
response = client.chat.completions.create(
model=model, messages=messages, n=1, temperature=temperature, max_tokens=max_tokens
Expand Down

0 comments on commit c8607cf

Please sign in to comment.