diff --git a/python/thirdweb-ai/src/thirdweb_ai/__init__.py b/python/thirdweb-ai/src/thirdweb_ai/__init__.py index 0d4ad98..381573a 100644 --- a/python/thirdweb-ai/src/thirdweb_ai/__init__.py +++ b/python/thirdweb-ai/src/thirdweb_ai/__init__.py @@ -1,6 +1,7 @@ from .services.engine import Engine from .services.insight import Insight from .services.nebula import Nebula +from .services.storage import Storage from .tools.tool import Tool -__all__ = ["Engine", "Insight", "Nebula", "Tool"] +__all__ = ["Engine", "Insight", "Nebula", "Storage", "Tool"] diff --git a/python/thirdweb-ai/src/thirdweb_ai/services/storage.py b/python/thirdweb-ai/src/thirdweb_ai/services/storage.py index 9e965a1..c9fc015 100644 --- a/python/thirdweb-ai/src/thirdweb_ai/services/storage.py +++ b/python/thirdweb-ai/src/thirdweb_ai/services/storage.py @@ -45,7 +45,7 @@ def fetch_ipfs_content( return {"error": "Invalid IPFS hash"} ipfs_hash = ipfs_hash.removeprefix("ipfs://") - path = f"https://{self.gateway_url}.{self.gateway_hostname}.ipfscdn.io/ipfs/{ipfs_hash}" + path = f"https://{self.gateway_url}.{self.gateway_hostname}/ipfs/{ipfs_hash}" return self._get(path) async def _async_post_file(self, url: str, files: dict[str, Any]) -> dict[str, Any]: