Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: update inner api proxies (#9174)

Joe1e7ef46e9c87
diff --git a/api/services/enterprise/base.py b/api/services/enterprise/base.py
index ddee52164b7..7d4fdfd2d03 100644
--- a/api/services/enterprise/base.py
+++ b/api/services/enterprise/base.py
@@ -7,11 +7,16 @@ class EnterpriseRequest:
base_url = os.environ.get("ENTERPRISE_API_URL", "ENTERPRISE_API_URL")
secret_key = os.environ.get("ENTERPRISE_API_SECRET_KEY", "ENTERPRISE_API_SECRET_KEY")
+ proxies = {
+ "http": None,
+ "https": None,
+ }
+
@classmethod
def send_request(cls, method, endpoint, json=None, params=None):
headers = {"Content-Type": "application/json", "Enterprise-Api-Secret-Key": cls.secret_key}
url = f"{cls.base_url}{endpoint}"
- response = requests.request(method, url, json=json, params=params, headers=headers)
+ response = requests.request(method, url, json=json, params=params, headers=headers, proxies=cls.proxies)
return response.json()