mirror of
https://github.com/open-webui/open-webui
synced 2025-06-09 07:56:42 +00:00
enh: filter md image for task generations
This commit is contained in:
parent
aac25eac9e
commit
a68ec8822a
@ -967,7 +967,7 @@ async def process_chat_response(
|
||||
|
||||
if isinstance(content, str):
|
||||
content = re.sub(
|
||||
r"<details\b[^>]*>.*?<\/details>",
|
||||
r"<details\b[^>]*>.*?<\/details>|!\[.*?\]\(.*?\)",
|
||||
"",
|
||||
content,
|
||||
flags=re.S | re.I,
|
||||
|
Loading…
Reference in New Issue
Block a user