mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-03 04:24:36 +00:00
fix:webchat stream judge bug and frontend bug
This commit is contained in:
@@ -15,7 +15,7 @@ class WebChatDebugRouterGroup(group.RouterGroup):
|
||||
async def stream_generator(generator):
|
||||
async for message in generator:
|
||||
yield rf"data:{json.dumps({'message': message})}\n\n"
|
||||
yield "data:{'type': 'end'}\n\n''"
|
||||
yield "data:{type: end}\n\n''"
|
||||
try:
|
||||
data = await quart.request.get_json()
|
||||
session_type = data.get('session_type', 'person')
|
||||
|
||||
Reference in New Issue
Block a user