diff --git a/apps/agent/agent/utils/multimodal.py b/apps/agent/agent/utils/multimodal.py index a7e83cd5..bc2b7ff6 100644 --- a/apps/agent/agent/utils/multimodal.py +++ b/apps/agent/agent/utils/multimodal.py @@ -80,5 +80,4 @@ async def fetch_image_block( def dedupe_urls(urls: list[str]) -> list[str]: - deduped: set[str] = set(urls) - return list(deduped) + return list(dict.fromkeys(urls))