souljoy commited on
Commit
65cafa9
1 Parent(s): 78b0539

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def chat_gpt_ep(content: Text = None):
131
  def chat_gpt_stream_ep(content: Text = None):
132
  start_time = time.time()
133
  obj = json.loads(content.content)
134
- response = openai.Completion.create(
135
  model='gpt-3.5-turbo',
136
  messages=obj['messages'],
137
  stream=True, # this time, we set stream=True
 
131
  def chat_gpt_stream_ep(content: Text = None):
132
  start_time = time.time()
133
  obj = json.loads(content.content)
134
+ response = openai.ChatCompletion.create(
135
  model='gpt-3.5-turbo',
136
  messages=obj['messages'],
137
  stream=True, # this time, we set stream=True