research14 commited on
Commit
ba15c08
·
1 Parent(s): 4dd4bcf
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ openai.api_key = os.environ['OPENAI_API_TOKEN']
17
 
18
  def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
19
  ''' Normal call of OpenAI API '''
20
- response = openai.ChatCompletion.create(
21
  temperature = temperature,
22
  model=model,
23
  messages=[
 
17
 
18
  def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
19
  ''' Normal call of OpenAI API '''
20
+ response = openai.Completion.create(
21
  temperature = temperature,
22
  model=model,
23
  messages=[