mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-14 13:45:57 +08: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…
x
Reference in New Issue
Block a user