Jan Štihec commited on
Commit
901aa88
1 Parent(s): 6e3d323

Change GPT model

Browse files
Files changed (1) hide show
  1. GPTHelper.py +3 -3
GPTHelper.py CHANGED
@@ -14,7 +14,7 @@ def gpt_rephrase(fact):
14
  PUBMED QUERY:"
15
  try:
16
  response = openai.Completion.create(
17
- model="text-ada-001",
18
  prompt=prompt,
19
  max_tokens=250,
20
  temperature=0
@@ -44,9 +44,9 @@ def check_fact(evidence, fact):
44
  ANSWER:"
45
  try:
46
  response = openai.Completion.create(
47
- model="text-ada-001",
48
  prompt=prompt,
49
- max_tokens=2,
50
  temperature=0
51
  )
52
  response = response['choices'][0]['text'].strip()
 
14
  PUBMED QUERY:"
15
  try:
16
  response = openai.Completion.create(
17
+ model="text-davinci-003",
18
  prompt=prompt,
19
  max_tokens=250,
20
  temperature=0
 
44
  ANSWER:"
45
  try:
46
  response = openai.Completion.create(
47
+ model="text-davinci-003",
48
  prompt=prompt,
49
+ max_tokens=2, # Don't need more for true/false/undetermined
50
  temperature=0
51
  )
52
  response = response['choices'][0]['text'].strip()