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