diff --git a/api/core/file/models.py b/api/core/file/models.py index 6e0b279ff1..3d6f2301eb 100644 --- a/api/core/file/models.py +++ b/api/core/file/models.py @@ -34,7 +34,7 @@ class FileExtraConfig(BaseModel): class File(BaseModel): - model_identity: str = FILE_MODEL_IDENTITY + dify_model_identity: str = FILE_MODEL_IDENTITY id: Optional[str] = None # message file id tenant_id: str diff --git a/api/core/helper/ssrf_proxy.py b/api/core/helper/ssrf_proxy.py index fd0d4dec6d..6793e41978 100644 --- a/api/core/helper/ssrf_proxy.py +++ b/api/core/helper/ssrf_proxy.py @@ -15,8 +15,8 @@ SSRF_DEFAULT_MAX_RETRIES = int(os.getenv("SSRF_DEFAULT_MAX_RETRIES", "3")) proxy_mounts = ( { - "http://": httpx.HTTPTransport(SSRF_PROXY_HTTP_URL), - "https://": httpx.HTTPTransport(SSRF_PROXY_HTTPS_URL), + "http://": httpx.HTTPTransport(proxy=SSRF_PROXY_HTTP_URL), + "https://": httpx.HTTPTransport(proxy=SSRF_PROXY_HTTPS_URL), } if SSRF_PROXY_HTTP_URL and SSRF_PROXY_HTTPS_URL else None