Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,9 @@ def generate_response(prompt, history, model, temperature, max_tokens, top_p, se
|
|
| 10 |
|
| 11 |
if seed == 0:
|
| 12 |
seed = random.randint(1, 100000)
|
| 13 |
-
|
| 14 |
-
input_text = prompt + history
|
| 15 |
|
| 16 |
stream = client.chat.completions.create(
|
| 17 |
-
messages=
|
| 18 |
model=model,
|
| 19 |
temperature=temperature,
|
| 20 |
max_tokens=max_tokens,
|
|
|
|
| 10 |
|
| 11 |
if seed == 0:
|
| 12 |
seed = random.randint(1, 100000)
|
|
|
|
|
|
|
| 13 |
|
| 14 |
stream = client.chat.completions.create(
|
| 15 |
+
messages = history + [prompt],
|
| 16 |
model=model,
|
| 17 |
temperature=temperature,
|
| 18 |
max_tokens=max_tokens,
|