From 552edf072b2c7ae0ec5fc8070bca93e339be43ef Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 5 Jul 2023 11:50:32 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(settings.py):=20make=20dat?= =?UTF-8?q?abase=5Furl=20optional=20to=20handle=20cases=20where=20it=20is?= =?UTF-8?q?=20not=20provided=20The=20`database=5Furl`=20setting=20is=20now?= =?UTF-8?q?=20declared=20as=20an=20optional=20string=20(`Optional[str]`)?= =?UTF-8?q?=20instead=20of=20a=20required=20string.=20This=20change=20allo?= =?UTF-8?q?ws=20the=20application=20to=20handle=20cases=20where=20the=20`d?= =?UTF-8?q?atabase=5Furl`=20is=20not=20provided,=20providing=20more=20flex?= =?UTF-8?q?ibility=20in=20the=20configuration.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/settings.py b/src/backend/langflow/settings.py index a149dae82..ed4830ceb 100644 --- a/src/backend/langflow/settings.py +++ b/src/backend/langflow/settings.py @@ -1,4 +1,5 @@ import os +from typing import Optional import yaml from pydantic import BaseSettings, root_validator @@ -21,7 +22,7 @@ class Settings(BaseSettings): textsplitters: dict = {} utilities: dict = {} dev: bool = False - database_url: str + database_url: Optional[str] = None cache: str = "InMemoryCache" remove_api_keys: bool = False