feat: update to persistent config

This commit is contained in:
Jun Siang Cheah committed 2024-05-17 13:51:17 +08:00
1 parent 0665703401
commit 5d3eddf7e9
7 files changed
+89 -8

No files matched your search

+3 -1
View File
@@ -541,7 +541,9 @@ WEBHOOK_URL = PersistentConfig(
ENABLE_ADMIN_EXPORT = os.environ.get("ENABLE_ADMIN_EXPORT", "True").lower() == "true"
MODEL_CONFIG = CONFIG_DATA.get("models", {"ollama": [], "litellm": [], "openai": []})
MODEL_CONFIG = PersistentConfig(
"CONFIG_DATA", "models", {"ollama": [], "litellm": [], "openai": []}
)
####################################
# WEBUI_SECRET_KEY