2024-07-07 12:18:15 +08:00
|
|
|
from pydantic import Field
|
|
|
|
from pydantic_settings import BaseSettings
|
2024-06-19 13:41:12 +08:00
|
|
|
|
|
|
|
|
2024-07-07 12:18:15 +08:00
|
|
|
class EnterpriseFeatureConfig(BaseSettings):
|
2024-06-19 13:41:12 +08:00
|
|
|
"""
|
2024-09-22 12:38:41 +07:00
|
|
|
Configuration for enterprise-level features.
|
2024-06-19 13:41:12 +08:00
|
|
|
**Before using, please contact business@dify.ai by email to inquire about licensing matters.**
|
|
|
|
"""
|
2024-08-23 23:46:01 +08:00
|
|
|
|
2024-06-19 13:41:12 +08:00
|
|
|
ENTERPRISE_ENABLED: bool = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Enable or disable enterprise-level features."
|
2024-08-23 23:46:01 +08:00
|
|
|
"Before using, please contact business@dify.ai by email to inquire about licensing matters.",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=False,
|
|
|
|
)
|
|
|
|
|
|
|
|
CAN_REPLACE_LOGO: bool = Field(
|
2024-09-22 12:38:41 +07:00
|
|
|
description="Allow customization of the enterprise logo.",
|
2024-06-19 13:41:12 +08:00
|
|
|
default=False,
|
|
|
|
)
|