mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +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):
|
if isinstance(content, str):
|
||||||
content = re.sub(
|
content = re.sub(
|
||||||
r"<details\b[^>]*>.*?<\/details>",
|
r"<details\b[^>]*>.*?<\/details>|!\[.*?\]\(.*?\)",
|
||||||
"",
|
"",
|
||||||
content,
|
content,
|
||||||
flags=re.S | re.I,
|
flags=re.S | re.I,
|
||||||
|
Loading…
Reference in New Issue
Block a user