Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -578,7 +578,7 @@ class BotanistAssistant:
|
|
| 578 |
|
| 579 |
# Stream additional assistant responses if available
|
| 580 |
if "choices" in api_response:
|
| 581 |
-
for choice in api_response["choices"]:
|
| 582 |
if "message" in choice and "content" in choice["message"]:
|
| 583 |
yield choice["message"]["content"]
|
| 584 |
|
|
|
|
| 578 |
|
| 579 |
# Stream additional assistant responses if available
|
| 580 |
if "choices" in api_response:
|
| 581 |
+
for choice in api_response["choices"][0]:
|
| 582 |
if "message" in choice and "content" in choice["message"]:
|
| 583 |
yield choice["message"]["content"]
|
| 584 |
|