From 597d1334b8f791e9d3059071daa0bdca302bb735 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 00:34:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(base.py):=20update=20comments?= =?UTF-8?q?=20for=20cache=5Ftype=20and=20variable=5Fstore=20attributes=20f?= =?UTF-8?q?or=20clarity=20=F0=9F=93=9D=20(base.py):=20add=20new=20attribut?= =?UTF-8?q?es=20backend=5Fonly=20and=20do=5Fnot=5Ftrack=20with=20their=20r?= =?UTF-8?q?espective=20descriptions=20=F0=9F=93=9D=20(base.py):=20add=20te?= =?UTF-8?q?lemetry=5Fbase=5Furl=20attribute=20with=20default=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/services/settings/base.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/services/settings/base.py b/src/backend/base/langflow/services/settings/base.py index c61bb11bc..5f1c3c648 100644 --- a/src/backend/base/langflow/services/settings/base.py +++ b/src/backend/base/langflow/services/settings/base.py @@ -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