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