Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def generate_response(prompt, history, model, temperature, max_tokens, top_p, se
|
|
14 |
stream = client.chat.completions.create(
|
15 |
messages=[
|
16 |
{"role": "system", "content": "you are a helpful assistant."},
|
17 |
-
{"role": "user", "content": prompt}
|
18 |
],
|
19 |
model=model,
|
20 |
temperature=temperature,
|
|
|
14 |
stream = client.chat.completions.create(
|
15 |
messages=[
|
16 |
{"role": "system", "content": "you are a helpful assistant."},
|
17 |
+
{"role": "user", "content": prompt + history}
|
18 |
],
|
19 |
model=model,
|
20 |
temperature=temperature,
|