feat(model): Proxy multimodal supports (#2641)

This commit is contained in:
Fangyin Cheng
2025-04-21 19:36:29 +08:00
committed by GitHub
parent a6680610b9
commit 3d7d52250f
13 changed files with 491 additions and 17 deletions

View File

@@ -140,6 +140,10 @@ class Serve(BaseServe):
def replace_uri(self, uri: str) -> str:
"""Replace the uri with the new uri"""
try:
new_uri = self.file_storage_client.get_public_url(uri)
if new_uri != uri:
return new_uri
# If the uri is not changed, replace it with the new uri
parsed_uri = FileStorageURI.parse(uri)
bucket, file_id = parsed_uri.bucket, parsed_uri.file_id
node_address = self._serve_config.get_node_address()