feat: add support for using postgres for the backend DB

This commit is contained in:
Jun Siang Cheah committed 2024-04-27 15:33:20 +01:00
1 parent f8f9f27ae8
commit e91a49c455
15 files changed
+329 -18

No files matched your search

+7
View File
@@ -534,3 +534,10 @@ LITELLM_PROXY_PORT = int(os.getenv("LITELLM_PROXY_PORT", "14365"))
if LITELLM_PROXY_PORT < 0 or LITELLM_PROXY_PORT > 65535:
raise ValueError("Invalid port number for LITELLM_PROXY_PORT")
LITELLM_PROXY_HOST = os.getenv("LITELLM_PROXY_HOST", "127.0.0.1")
####################################
# Database
####################################
DATABASE_URL = os.environ.get("DATABASE_URL", f"sqlite:///{DATA_DIR}/webui.db")