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