Spaces:
Sleeping
Sleeping
Commit
·
53c3f28
1
Parent(s):
97ef844
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ if prompt := st.chat_input("Start talking with your tutor!"):
|
|
103 |
for response in openai.ChatCompletion.create(
|
104 |
model=st.session_state["openai_model"],
|
105 |
messages=[
|
106 |
-
{"role": m["role"], "content": m["content"]}
|
107 |
for m in st.session_state.messages
|
108 |
],
|
109 |
stream=True,
|
|
|
103 |
for response in openai.ChatCompletion.create(
|
104 |
model=st.session_state["openai_model"],
|
105 |
messages=[
|
106 |
+
{"role": reverse_name_to_role(m["role"]), "content": m["content"]}
|
107 |
for m in st.session_state.messages
|
108 |
],
|
109 |
stream=True,
|