📝 (base.py): update comments for cache_type and variable_store attributes for clarity

📝 (base.py): add new attributes backend_only and do_not_track with their respective descriptions
📝 (base.py): add telemetry_base_url attribute with default value
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-23 00:34:59 -03:00
commit 597d1334b8

View file

@ -73,9 +73,9 @@ class Settings(BaseSettings):
max_overflow: int = 20
"""The number of connections to allow that can be opened beyond the pool size. If not provided, the default is 10."""
cache_type: str = "async"
"""The store can be 'db' or 'kubernetes'."""
"""The cache type can be 'async' or 'redis'."""
variable_store: str = "db"
"""The store can be 'db' or 'kubernetes'."""
remove_api_keys: bool = False
components_path: List[str] = []
@ -125,6 +125,13 @@ class Settings(BaseSettings):
"""Timeout for the frontend API calls in seconds."""
user_agent: str = "langflow"
"""User agent for the API calls."""
backend_only: bool = False
"""If set to True, Langflow will not serve the frontend."""
# Telemetry
do_not_track: bool = False
"""If set to True, Langflow will not track telemetry."""
telemetry_base_url: str = "https://langflow.gateway.scarf.sh"
@field_validator("user_agent", mode="after")
@classmethod