🔧 chore(base.py): rename CACHE variable to CACHE_TYPE for better clarity and consistency

🔧 chore(base.py): add LANGCHAIN_CACHE variable to specify the cache type for langchain
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-01 17:21:18 -03:00
commit 7f2f8d1b0a

View file

@ -37,9 +37,10 @@ class Settings(BaseSettings):
DEV: bool = False
DATABASE_URL: Optional[str] = None
CACHE: str = "InMemoryCache"
CACHE_TYPE: str = "memory"
REMOVE_API_KEYS: bool = False
COMPONENTS_PATH: List[str] = []
LANGCHAIN_CACHE: str = "InMemoryCache"
@validator("CONFIG_DIR", pre=True, allow_reuse=True)
def set_langflow_dir(cls, value):