We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83709f2 commit 119a3beCopy full SHA for 119a3be
1 file changed
backend/open_webui/utils/middleware.py
@@ -3309,7 +3309,7 @@ def set_last_text(out, text):
3309
if start_tag.startswith('<') and start_tag.endswith('>'):
3310
start_tag_pattern = rf'<{re.escape(start_tag[1:-1])}(\s.*?)?>'
3311
3312
- match = re.search(start_tag_pattern, item_text)
+ match = re.search(rf'(?m)^[ \t]*{start_tag_pattern}', item_text)
3313
if match:
3314
try:
3315
attr_content = match.group(1) if match.group(1) else ''
0 commit comments