diff --git a/backend/app/repositories/models/conversation.py b/backend/app/repositories/models/conversation.py index 5627f7df2..0ab1ed96a 100644 --- a/backend/app/repositories/models/conversation.py +++ b/backend/app/repositories/models/conversation.py @@ -648,7 +648,7 @@ def get_source_link_for_schema(self) -> str | None: if url.scheme == "s3": source_link = generate_presigned_url( bucket=url.netloc, - key=url.path, + key=url.path.removeprefix("/"), client_method="get_object", ) return source_link