BtB-ExpC commited on
Commit
d619451
·
verified ·
1 Parent(s): 333e113

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ manual = "uitleg"
8
 
9
  # Function to make API call
10
  def api_call(messages, temperature=0.5, model="gpt-3.5-turbo"):
11
- return openai.ChatCompletion.create(
12
  messages=messages,
13
  temperature=temperature,
14
  model=model
 
8
 
9
  # Function to make API call
10
  def api_call(messages, temperature=0.5, model="gpt-3.5-turbo"):
11
+ return openai.chat.completions.create(
12
  messages=messages,
13
  temperature=temperature,
14
  model=model