From a843e81aafa7daaddf1697269e82d12a19cc196a Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 9 Jul 2024 18:23:52 -0700 Subject: [PATCH 1/4] chore: requirements --- backend/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/requirements.txt b/backend/requirements.txt index 1a04cfcb2..34a2f0ec0 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -31,6 +31,7 @@ APScheduler==3.10.4 openai anthropic google-generativeai==0.5.4 +tiktoken langchain==0.2.6 langchain-community==0.2.6 From da8ee43481d612e26d421fa8794af7aab50ffc77 Mon Sep 17 00:00:00 2001 From: Jonathan Rohde Date: Wed, 10 Jul 2024 08:43:28 +0200 Subject: [PATCH 2/4] fix: use default model from config if available --- src/lib/components/chat/Settings/Interface.svelte | 5 ++++- src/lib/stores/index.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 5af33888a..e6eefaefc 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -144,7 +144,10 @@ chatDirection = $settings.chatDirection ?? 'LTR'; userLocation = $settings.userLocation ?? false; - defaultModelId = ($settings?.models ?? ['']).at(0); + defaultModelId = $settings?.models?.at(0) ?? ''; + if ($config?.default_models) { + defaultModelId = $config.default_models.split(',')[0]; + } backgroundImageUrl = $settings.backgroundImageUrl ?? null; }); diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index de83a8ef6..bf8fb20c7 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -139,7 +139,7 @@ type Config = { name: string; version: string; default_locale: string; - default_models: string[]; + default_models: string; default_prompt_suggestions: PromptSuggestion[]; features: { auth: boolean; From 3b39334baea081d09d3838d87d0c84c354f5982d Mon Sep 17 00:00:00 2001 From: Simonas Date: Wed, 10 Jul 2024 04:35:16 -0500 Subject: [PATCH 3/4] Update translation.json Word not necessary in Lithuanian so modified it to be an arrow which would look good design wise and would not be weird gramatically --- src/lib/i18n/locales/lt-LT/translation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json index 9909accb0..abf4508c4 100644 --- a/src/lib/i18n/locales/lt-LT/translation.json +++ b/src/lib/i18n/locales/lt-LT/translation.json @@ -589,7 +589,7 @@ "Title Auto-Generation": "Automatinis pavadinimų generavimas", "Title cannot be an empty string.": "Pavadinimas negali būti tuščias", "Title Generation Prompt": "Pavadinimo generavimo užklausa", - "to": "kam", + "to": "➡️", "To access the available model names for downloading,": "Tam, kad prieiti prie galimų parsisiųsti modelių", "To access the GGUF models available for downloading,": "Tam, kad prieiti prie galimų parsisiųsti GGUF,", "To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "", From fede1e9e3bb8632a9cb23f2bd0130f507ea4dedf Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 10 Jul 2024 13:06:27 -0700 Subject: [PATCH 4/4] chore: changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c81aed300..a7913785d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - **🗃️ Database Backend**: Switched from Peewee to SQLAlchemy for improved concurrency support, enhancing database performance. +- **⬆️ ChromaDB Update**: Upgraded to version 0.5.3. Ensure your remote ChromaDB instance matches this version. - **🔤 Primary Font Styling**: Updated primary font to Archivo for better visual consistency. - **🔄 Font Change for Windows**: Replaced Arimo with Inter font for Windows users, improving readability. - **🚀 Lazy Loading**: Implemented lazy loading for 'faster_whisper' and 'sentence_transformers' to reduce startup memory usage.