Skip to content

Commit 8aae768

Browse files
committed
fix: skip reasoning tag preceded by text
1 parent af9c103 commit 8aae768

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/utils/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3539,7 +3539,7 @@ def set_last_text(out, text):
35393539
before_tag = item_text[: match.start()]
35403540
after_tag = item_text[match.end() :]
35413541

3542-
# Start tag follows prose text, treat as a literal mention.
3542+
# Tag in prose text, skip it.
35433543
if before_tag.strip():
35443544
continue
35453545

0 commit comments

Comments
 (0)