@devries-cameron20 / composio Mirror · read-only / commits / 61abe64b3
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 13:15 UTC

fix: remove unreachable filename == '/' check

jkomyno committed Jan 27, 2026 at 04:50 UTC 61abe64b3da9d6b82598991a73da150e2b107a9d
1 file changed +1 -1
python/composio/core/models/_files.py
+1 -1
@@ -156,7 +156,7 @@ def _fetch_file_from_url(url: str) -> t.Tuple[str, bytes, str]:
156 filename = os.path.basename(pathname) if pathname else ""
157
158 # If no filename from URL or no extension, generate one
159 - if not filename or filename == "/":
159 + if not filename:
160 extension = _get_extension_from_mimetype(mimetype)
161 filename = _generate_timestamped_filename(extension)
162 else: