mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 00:45:12 -05:00
refac
This commit is contained in:
1 parent
1712f4fa6c
commit
c82ceaf1fc
21 files changed
+285
-154
No files matched your search
@@ -107,6 +107,9 @@ async def run(transport, output, prompt, images, options):
|
||||
streamed_thinking = True
|
||||
await output.text(delta.get('thinking', ''), reasoning=True)
|
||||
elif kind == 'assistant':
|
||||
if message.get('uuid') and not message.get('parent_tool_use_id'):
|
||||
# Later regenerations and edits fork the conversation at this turn's last reply.
|
||||
output.state['turn'] = message['uuid']
|
||||
for block in message.get('message', {}).get('content', []):
|
||||
if block['type'] == 'text' and not streamed_text:
|
||||
await output.text(block['text'])
|
||||
|
||||
Reference in new issue
Block a user