Skip to content

Commit

Permalink
Update: Evaluate with GPT-4 too
Browse files Browse the repository at this point in the history
  • Loading branch information
PtrMan committed Aug 15, 2023
1 parent b438ddb commit ffe7fa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Evaluation/2_EvaluateTestOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
print(send_prompt)
while True:
try:
response = openai.ChatCompletion.create(model='gpt-3.5-turbo', messages=[ {"role": "user", "content": send_prompt}], max_tokens=200, temperature=0)
response = openai.ChatCompletion.create(model='gpt-4', messages=[ {"role": "user", "content": send_prompt}], max_tokens=200, temperature=0)
ret = response['choices'][0]['message']['content']
except:
print("Error: API call failed, will try repeating it in 10 seconds!")
Expand Down
2 changes: 1 addition & 1 deletion Evaluation_babI_qa16/2_EvaluateTestOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
print(send_prompt)
while True:
try:
response = openai.ChatCompletion.create(model='gpt-3.5-turbo', messages=[ {"role": "user", "content": send_prompt}], max_tokens=200, temperature=0)
response = openai.ChatCompletion.create(model='gpt-4', messages=[ {"role": "user", "content": send_prompt}], max_tokens=200, temperature=0)
ret = response['choices'][0]['message']['content']
except:
print("Error: API call failed, will try repeating it in 10 seconds!")
Expand Down

0 comments on commit ffe7fa3

Please sign in to comment.