mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
573535a4b2
commit
236965c7e9
1 changed files with 9 additions and 5 deletions
|
|
@ -5623,11 +5623,15 @@ async def streaming_chat_response_handler(response, ctx):
|
|||
tag_output = None
|
||||
|
||||
if DETECT_REASONING_TAGS:
|
||||
tag_output, _ = tag_output_handler(
|
||||
'reasoning',
|
||||
reasoning_tags,
|
||||
output,
|
||||
)
|
||||
if not any(
|
||||
item.get('attributes', {}).get('type') == 'reasoning_content'
|
||||
for item in output
|
||||
):
|
||||
tag_output, _ = tag_output_handler(
|
||||
'reasoning',
|
||||
reasoning_tags,
|
||||
output,
|
||||
)
|
||||
|
||||
solution_output, _ = tag_output_handler(
|
||||
'solution',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue