Update app.py
Browse files
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.
|
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
|