Skip to content

Commit

Permalink
Merge pull request microsoft#13 from Django-Jiang/main
Browse files Browse the repository at this point in the history
Update inference.py
  • Loading branch information
jindongwang committed Nov 6, 2023
2 parents 23676ee + 57ec124 commit 809eea1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ def call_openai_api(self, model, prompt):
result = response['choices'][0]['text']
else:
response = openai.ChatCompletion.create(
model='gpt-4-0613',
messages=[
{"role": "user", "content": prompt},
]
)
result = response['choices'][0]['message']['content']
model='gpt-4-0613',
messages=[
{"role": "user", "content": prompt},
]
)
result = response['choices'][0]['message']['content']
return result

def pred_by_generation(self, input_text, model):
Expand Down

0 comments on commit 809eea1

Please sign in to comment.