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 hosting cloud version limit (#1975)

Charlie.Wei7a221d08580f
diff --git a/api/core/hosting_configuration.py b/api/core/hosting_configuration.py
index 22605c71f93..6537ef81fe0 100644
--- a/api/core/hosting_configuration.py
+++ b/api/core/hosting_configuration.py
@@ -49,6 +49,8 @@ class HostingConfiguration:
moderation_config: HostedModerationConfig = None
def init_app(self, app: Flask) -> None:
+ if app.config.get('EDITION') != 'CLOUD':
+ return
self.provider_map["azure_openai"] = self.init_azure_openai()
self.provider_map["openai"] = self.init_openai()