📝 (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:
parent
d7b1028a43
commit
597d1334b8
1 changed files with 9 additions and 2 deletions
|
|
@ -73,9 +73,9 @@ class Settings(BaseSettings):
|
||||||
max_overflow: int = 20
|
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."""
|
"""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"
|
cache_type: str = "async"
|
||||||
|
"""The cache type can be 'async' or 'redis'."""
|
||||||
"""The store can be 'db' or 'kubernetes'."""
|
|
||||||
variable_store: str = "db"
|
variable_store: str = "db"
|
||||||
|
"""The store can be 'db' or 'kubernetes'."""
|
||||||
|
|
||||||
remove_api_keys: bool = False
|
remove_api_keys: bool = False
|
||||||
components_path: List[str] = []
|
components_path: List[str] = []
|
||||||
|
|
@ -125,6 +125,13 @@ class Settings(BaseSettings):
|
||||||
"""Timeout for the frontend API calls in seconds."""
|
"""Timeout for the frontend API calls in seconds."""
|
||||||
user_agent: str = "langflow"
|
user_agent: str = "langflow"
|
||||||
"""User agent for the API calls."""
|
"""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")
|
@field_validator("user_agent", mode="after")
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue