Spaces:
Runtime error
Runtime error
indentation
Browse files
app.py
CHANGED
|
@@ -15,7 +15,11 @@ if history:
|
|
| 15 |
|
| 16 |
response = ""
|
| 17 |
|
| 18 |
-
for message in client.chat_completion(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
token = message.choices[0].delta.content
|
| 20 |
response += token
|
| 21 |
yield response
|
|
|
|
| 15 |
|
| 16 |
response = ""
|
| 17 |
|
| 18 |
+
for message in client.chat_completion(
|
| 19 |
+
messages,
|
| 20 |
+
max_tokens=50,
|
| 21 |
+
stream=True
|
| 22 |
+
):
|
| 23 |
token = message.choices[0].delta.content
|
| 24 |
response += token
|
| 25 |
yield response
|