enh: filter md image for task generations
This commit is contained in:
1 parent
aac25eac9e
commit
a68ec8822a
1 file changed
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user