From 95295061d0dbe09d0258516cdd780d0d64edb951 Mon Sep 17 00:00:00 2001 From: Danny Liu Date: Wed, 24 Apr 2024 14:31:03 -0700 Subject: [PATCH 1/2] fix: config var not defined --- src/lib/components/chat/Settings/Chats.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Chats.svelte b/src/lib/components/chat/Settings/Chats.svelte index 26d263625..b9cbd5447 100644 --- a/src/lib/components/chat/Settings/Chats.svelte +++ b/src/lib/components/chat/Settings/Chats.svelte @@ -2,7 +2,7 @@ import fileSaver from 'file-saver'; const { saveAs } = fileSaver; - import { chats, user } from '$lib/stores'; + import { chats, user, config } from '$lib/stores'; import { createNewChat, From 7075837849b9e0d9f4aa2fe7e4d4bade44a74aa8 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 24 Apr 2024 21:24:17 -0400 Subject: [PATCH 2/2] fix: missing import --- backend/apps/web/routers/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/web/routers/utils.py b/backend/apps/web/routers/utils.py index 284f350a0..953f5ce5c 100644 --- a/backend/apps/web/routers/utils.py +++ b/backend/apps/web/routers/utils.py @@ -11,7 +11,7 @@ import markdown from utils.utils import get_admin_user from utils.misc import calculate_sha256, get_gravatar_url -from config import OLLAMA_BASE_URLS, DATA_DIR, UPLOAD_DIR +from config import OLLAMA_BASE_URLS, DATA_DIR, UPLOAD_DIR, ENABLE_ADMIN_EXPORT from constants import ERROR_MESSAGES from typing import List