diff --git a/api/core/hosting_configuration.py b/api/core/hosting_configuration.py index 22605c71f..6537ef81f 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()