From 8214b22c098f78195156af45321e45d46c5eb436 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 5 Jul 2023 12:10:09 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(=5F=5Fmain=5F=5F.py):=20up?= =?UTF-8?q?date=20cache=20and=20database=20environment=20variable=20names?= =?UTF-8?q?=20for=20clarity=20and=20consistency=20The=20`cache`=20option?= =?UTF-8?q?=20has=20been=20changed=20to=20use=20the=20`LANGFLOW=5FLANGCHAI?= =?UTF-8?q?N=5FCACHE`=20environment=20variable=20instead=20of=20`LANGCHAIN?= =?UTF-8?q?=5FCACHE`=20for=20clarity=20and=20consistency.=20Similarly,=20t?= =?UTF-8?q?he=20`database=5Furl`=20option=20now=20uses=20the=20`LANGFLOW?= =?UTF-8?q?=5FDATABASE=5FURL`=20environment=20variable=20instead=20of=20th?= =?UTF-8?q?e=20previous=20behavior=20of=20using=20a=20local=20SQLite=20dat?= =?UTF-8?q?abase=20by=20default.=20This=20change=20allows=20for=20more=20f?= =?UTF-8?q?lexibility=20in=20configuring=20the=20cache=20and=20database=20?= =?UTF-8?q?connections.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/__main__.py b/src/backend/langflow/__main__.py index a8dab586b..2780ff09e 100644 --- a/src/backend/langflow/__main__.py +++ b/src/backend/langflow/__main__.py @@ -107,8 +107,8 @@ def serve( ), log_level: str = typer.Option("critical", help="Logging level."), log_file: Path = typer.Option("logs/langflow.log", help="Path to the log file."), - cache: str = typer.Argument( - envvar="LANGCHAIN_CACHE", + cache: str = typer.Option( + envvar="LANGFLOW_LANGCHAIN_CACHE", help="Type of cache to use. (InMemoryCache, SQLiteCache)", default="SQLiteCache", ), @@ -117,6 +117,7 @@ def serve( database_url: str = typer.Option( None, help="Database URL to connect to. If not provided, a local SQLite database will be used.", + envvar="LANGFLOW_DATABASE_URL", ), path: str = typer.Option( None,