From e44230d8fe0889d35e1b43c4f700b769f8401b72 Mon Sep 17 00:00:00 2001 From: Garfield Dai Date: Wed, 25 Dec 2024 18:38:45 +0800 Subject: [PATCH] fix: check tenant_id --- api/services/feature_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/feature_service.py b/api/services/feature_service.py index 0386c6aceaa2e7..b9261d19d7930e 100644 --- a/api/services/feature_service.py +++ b/api/services/feature_service.py @@ -74,7 +74,7 @@ def get_features(cls, tenant_id: str) -> FeatureModel: cls._fulfill_params_from_env(features) - if dify_config.BILLING_ENABLED: + if dify_config.BILLING_ENABLED and tenant_id: cls._fulfill_params_from_billing_api(features, tenant_id) return features