Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def respond(message, history: list[dict], system_message, max_tokens, temperatur
|
|
| 43 |
completion = client.chat_completion(
|
| 44 |
messages,
|
| 45 |
max_tokens=max_tokens,
|
| 46 |
-
stream=
|
| 47 |
temperature=temperature,
|
| 48 |
top_p=top_p,
|
| 49 |
)
|
|
|
|
| 43 |
completion = client.chat_completion(
|
| 44 |
messages,
|
| 45 |
max_tokens=max_tokens,
|
| 46 |
+
stream=true, # Non-streaming mode for simplicity.
|
| 47 |
temperature=temperature,
|
| 48 |
top_p=top_p,
|
| 49 |
)
|