in aidial_adapter_openai/dial_api/storage.py [0:0]
def _url_to_attachment_link(self, url: str) -> str:
if CORE_API_VERSION == "0.6":
return url.removeprefix(f"{self.dial_url}/v1/files/")
else:
return url.removeprefix(f"{self.dial_url}/v1/")