enh: filter md image for task generations

This commit is contained in:
Timothy Jaeryang Baek 2025-05-23 01:33:08 +04:00
parent aac25eac9e
commit a68ec8822a

View File

@ -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,