Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +2 -2
chain_app.py
CHANGED
@@ -2616,8 +2616,8 @@ async def main(message: cl.Message):
|
|
2616 |
max_tokens=500,
|
2617 |
stream=True,
|
2618 |
):
|
2619 |
-
|
2620 |
-
|
2621 |
|
2622 |
|
2623 |
# elif chat_profile == 'Toka-353M':
|
|
|
2616 |
max_tokens=500,
|
2617 |
stream=True,
|
2618 |
):
|
2619 |
+
if message := part.choices[0].delta.content or "":
|
2620 |
+
await msg.stream_token(message)
|
2621 |
|
2622 |
|
2623 |
# elif chat_profile == 'Toka-353M':
|