Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,9 @@ def fn(
|
|
14 |
temperature,
|
15 |
top_p,
|
16 |
):
|
17 |
-
history = [{"role": "system", "content": system_prompt}]
|
18 |
-
history.append({"role": "user", "content": prompt})
|
19 |
|
20 |
-
|
21 |
-
|
22 |
|
23 |
stream = client.chat.completions.create(
|
24 |
model = model,
|
|
|
14 |
temperature,
|
15 |
top_p,
|
16 |
):
|
|
|
|
|
17 |
|
18 |
+
messages = [{"role": "user", "content": prompt}]
|
19 |
+
history.append(messages[0])
|
20 |
|
21 |
stream = client.chat.completions.create(
|
22 |
model = model,
|