Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def function(Textbox,Textbox2,Textbox3):
|
|
58 |
# ]
|
59 |
if Textbox2:
|
60 |
chat = openai.ChatCompletion.create(
|
61 |
-
model="gpt-3.5-turbo", messages=Textbox2
|
62 |
)
|
63 |
reply = chat.choices[0].message.content
|
64 |
messages.append({"role": "assistant", "content": reply})
|
|
|
58 |
# ]
|
59 |
if Textbox2:
|
60 |
chat = openai.ChatCompletion.create(
|
61 |
+
model="gpt-3.5-turbo", messages=list(Textbox2.items()))
|
62 |
)
|
63 |
reply = chat.choices[0].message.content
|
64 |
messages.append({"role": "assistant", "content": reply})
|