Spaces:
Sleeping
Sleeping
fix typo
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def callapi(p, msgs):
|
|
34 |
for m in msgs:
|
35 |
data = data + [
|
36 |
{"role":"user", "content":m[0]},
|
37 |
-
{"role":"
|
38 |
]
|
39 |
data = data + [{"role":"user", "content":p}]
|
40 |
response = openai.ChatCompletion.create(
|
|
|
34 |
for m in msgs:
|
35 |
data = data + [
|
36 |
{"role":"user", "content":m[0]},
|
37 |
+
{"role":"assistant", "content":m[1]}
|
38 |
]
|
39 |
data = data + [{"role":"user", "content":p}]
|
40 |
response = openai.ChatCompletion.create(
|