mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac: reasoning detection
This commit is contained in:
parent
c258272709
commit
6d81eef425
1 changed files with 3 additions and 1 deletions
|
|
@ -1422,8 +1422,10 @@ async def process_chat_response(
|
|||
if after_tag:
|
||||
content_blocks[-1]["content"] = after_tag
|
||||
|
||||
content = after_tag
|
||||
break
|
||||
elif content_blocks[-1]["type"] == content_type:
|
||||
|
||||
if content and content_blocks[-1]["type"] == content_type:
|
||||
start_tag = content_blocks[-1]["start_tag"]
|
||||
end_tag = content_blocks[-1]["end_tag"]
|
||||
# Match end tag e.g., </tag>
|
||||
|
|
|
|||
Loading…
Reference in a new issue