From 44c8b0bb838a9336b2b07f63d13da8c9a51388ac Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sun, 12 May 2024 17:47:23 +0800 Subject: [PATCH] feat: rename title generation model to task model --- .../components/chat/Settings/Interface.svelte | 22 ++++++++++++++++++- src/lib/i18n/locales/ar-BH/translation.json | 3 ++- src/lib/i18n/locales/bg-BG/translation.json | 3 ++- src/lib/i18n/locales/bn-BD/translation.json | 3 ++- src/lib/i18n/locales/ca-ES/translation.json | 3 ++- src/lib/i18n/locales/de-DE/translation.json | 3 ++- src/lib/i18n/locales/dg-DG/translation.json | 3 ++- src/lib/i18n/locales/en-GB/translation.json | 3 ++- src/lib/i18n/locales/en-US/translation.json | 3 ++- src/lib/i18n/locales/es-ES/translation.json | 3 ++- src/lib/i18n/locales/fa-IR/translation.json | 3 ++- src/lib/i18n/locales/fi-FI/translation.json | 3 ++- src/lib/i18n/locales/fr-CA/translation.json | 3 ++- src/lib/i18n/locales/fr-FR/translation.json | 3 ++- src/lib/i18n/locales/hi-IN/translation.json | 3 ++- src/lib/i18n/locales/it-IT/translation.json | 3 ++- src/lib/i18n/locales/ja-JP/translation.json | 3 ++- src/lib/i18n/locales/ka-GE/translation.json | 3 ++- src/lib/i18n/locales/ko-KR/translation.json | 3 ++- src/lib/i18n/locales/nl-NL/translation.json | 3 ++- src/lib/i18n/locales/pl-PL/translation.json | 3 ++- src/lib/i18n/locales/pt-BR/translation.json | 3 ++- src/lib/i18n/locales/pt-PT/translation.json | 3 ++- src/lib/i18n/locales/ru-RU/translation.json | 3 ++- src/lib/i18n/locales/sv-SE/translation.json | 3 ++- src/lib/i18n/locales/tr-TR/translation.json | 3 ++- src/lib/i18n/locales/uk-UA/translation.json | 3 ++- src/lib/i18n/locales/vi-VN/translation.json | 3 ++- src/lib/i18n/locales/zh-CN/translation.json | 3 ++- src/lib/i18n/locales/zh-TW/translation.json | 3 ++- src/routes/(app)/+page.svelte | 13 +++++------ src/routes/(app)/c/[id]/+page.svelte | 13 +++++------ 32 files changed, 89 insertions(+), 46 deletions(-) diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 87a8d7ec5..1eb1999d5 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -4,6 +4,7 @@ import { config, models, settings, user } from '$lib/stores'; import { createEventDispatcher, onMount, getContext } from 'svelte'; import { toast } from 'svelte-sonner'; + import Tooltip from '$lib/components/common/Tooltip.svelte'; const dispatch = createEventDispatcher(); const i18n = getContext('i18n'); @@ -231,7 +232,26 @@
-
{$i18n.t('Set Title Auto-Generation Model')}
+
+
{$i18n.t('Set Task Model')}
+ + + + + +
Local Models
diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json index 4a152aee5..d8fa4c3b7 100644 --- a/src/lib/i18n/locales/ar-BH/translation.json +++ b/src/lib/i18n/locales/ar-BH/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} ...يفكر", "{{user}}'s Chats": "{{user}}' الدردشات", "{{webUIName}} Backend Required": "", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "المستخدم", "About": "عن", "Account": "الحساب", @@ -395,7 +396,7 @@ "Set Model": "ضبط النموذج", "Set reranking model (e.g. {{model}})": "", "Set Steps": "ضبط الخطوات", - "Set Title Auto-Generation Model": "قم بتعيين نموذج إنشاء العنوان تلقائيًا", + "Set Task Model": "", "Set Voice": "ضبط الصوت", "Settings": "الاعدادات", "Settings saved successfully!": "تم حفظ الاعدادات بنجاح", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index a8ee5452e..4d58f356d 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} мисли ...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Изисква се Бекенд", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "потребител", "About": "Относно", "Account": "Акаунт", @@ -395,7 +396,7 @@ "Set Model": "Задай Модел", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Задай Стъпки", - "Set Title Auto-Generation Model": "Задай Модел за Автоматично Генериране на Заглавие", + "Set Task Model": "", "Set Voice": "Задай Глас", "Settings": "Настройки", "Settings saved successfully!": "Настройките са запазени успешно!", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index cfd8873c9..4f93cceeb 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} চিন্তা করছে...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} ব্যাকএন্ড আবশ্যক", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "একজন ব্যাবহারকারী", "About": "সম্পর্কে", "Account": "একাউন্ট", @@ -395,7 +396,7 @@ "Set Model": "মডেল নির্ধারণ করুন", "Set reranking model (e.g. {{model}})": "", "Set Steps": "পরবর্তী ধাপসমূহ", - "Set Title Auto-Generation Model": "শিরোনাম অটোজেনারেশন মডেন নির্ধারণ করুন", + "Set Task Model": "", "Set Voice": "কন্ঠস্বর নির্ধারণ করুন", "Settings": "সেটিংসমূহ", "Settings saved successfully!": "সেটিংগুলো সফলভাবে সংরক্ষিত হয়েছে", diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json index 772f1cc2b..2cbc3e908 100644 --- a/src/lib/i18n/locales/ca-ES/translation.json +++ b/src/lib/i18n/locales/ca-ES/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} està pensant...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "Es requereix Backend de {{webUIName}}", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "un usuari", "About": "Sobre", "Account": "Compte", @@ -395,7 +396,7 @@ "Set Model": "Estableix Model", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Estableix Passos", - "Set Title Auto-Generation Model": "Estableix Model d'Auto-Generació de Títol", + "Set Task Model": "", "Set Voice": "Estableix Veu", "Settings": "Configuracions", "Settings saved successfully!": "Configuracions guardades amb èxit!", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index b6e07a7e3..4a4101163 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} denkt nach...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}}-Backend erforderlich", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "ein Benutzer", "About": "Über", "Account": "Account", @@ -395,7 +396,7 @@ "Set Model": "Modell festlegen", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Schritte festlegen", - "Set Title Auto-Generation Model": "Modell für automatische Titelgenerierung festlegen", + "Set Task Model": "", "Set Voice": "Stimme festlegen", "Settings": "Einstellungen", "Settings saved successfully!": "Einstellungen erfolgreich gespeichert!", diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json index 58eada565..518757e91 100644 --- a/src/lib/i18n/locales/dg-DG/translation.json +++ b/src/lib/i18n/locales/dg-DG/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} is thinkin'...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend Much Required", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "such user", "About": "Much About", "Account": "Account", @@ -395,7 +396,7 @@ "Set Model": "Set Model so speak", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Set Steps so many steps", - "Set Title Auto-Generation Model": "Set Title Auto-Generation Model very auto-generate", + "Set Task Model": "", "Set Voice": "Set Voice so speak", "Settings": "Settings much settings", "Settings saved successfully!": "Settings saved successfully! Very success!", diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json index 203999d0b..302716ce4 100644 --- a/src/lib/i18n/locales/en-GB/translation.json +++ b/src/lib/i18n/locales/en-GB/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "", "About": "", "Account": "", @@ -395,7 +396,7 @@ "Set Model": "", "Set reranking model (e.g. {{model}})": "", "Set Steps": "", - "Set Title Auto-Generation Model": "", + "Set Task Model": "", "Set Voice": "", "Settings": "", "Settings saved successfully!": "", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 203999d0b..302716ce4 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "", "About": "", "Account": "", @@ -395,7 +396,7 @@ "Set Model": "", "Set reranking model (e.g. {{model}})": "", "Set Steps": "", - "Set Title Auto-Generation Model": "", + "Set Task Model": "", "Set Voice": "", "Settings": "", "Settings saved successfully!": "", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 365d9b00b..0cfa4ded9 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} está pensando...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Servidor Requerido", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "un usuario", "About": "Sobre nosotros", "Account": "Cuenta", @@ -395,7 +396,7 @@ "Set Model": "Establecer el modelo", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Establecer Pasos", - "Set Title Auto-Generation Model": "Establecer modelo de generación automática de títulos", + "Set Task Model": "", "Set Voice": "Establecer la voz", "Settings": "Configuración", "Settings saved successfully!": "¡Configuración guardada exitosamente!", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 87bcd3a7d..f01158c34 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} در حال فکر کردن است...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "بکند {{webUIName}} نیاز است.", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "یک کاربر", "About": "درباره", "Account": "حساب کاربری", @@ -395,7 +396,7 @@ "Set Model": "تنظیم مدل", "Set reranking model (e.g. {{model}})": "", "Set Steps": "تنظیم گام\u200cها", - "Set Title Auto-Generation Model": "تنظیم مدل تولید خودکار عنوان", + "Set Task Model": "", "Set Voice": "تنظیم صدا", "Settings": "تنظیمات", "Settings saved successfully!": "تنظیمات با موفقیت ذخیره شد!", diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json index e1c74a4b1..8ebff30cc 100644 --- a/src/lib/i18n/locales/fi-FI/translation.json +++ b/src/lib/i18n/locales/fi-FI/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} miettii...", "{{user}}'s Chats": "{{user}}:n keskustelut", "{{webUIName}} Backend Required": "{{webUIName}} backend vaaditaan", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "käyttäjä", "About": "Tietoja", "Account": "Tili", @@ -395,7 +396,7 @@ "Set Model": "", "Set reranking model (e.g. {{model}})": "Aseta uudelleenpisteytysmalli (esim. {{model}})", "Set Steps": "Aseta askelmäärä", - "Set Title Auto-Generation Model": "Aseta otsikon automaattisen luonnin malli", + "Set Task Model": "", "Set Voice": "Aseta puheääni", "Settings": "Asetukset", "Settings saved successfully!": "Asetukset tallennettu onnistuneesti!", diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json index 4d9423e71..bb0ce4457 100644 --- a/src/lib/i18n/locales/fr-CA/translation.json +++ b/src/lib/i18n/locales/fr-CA/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} réfléchit...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "Backend {{webUIName}} requis", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "un utilisateur", "About": "À propos", "Account": "Compte", @@ -395,7 +396,7 @@ "Set Model": "Configurer le modèle", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Définir les étapes", - "Set Title Auto-Generation Model": "Définir le modèle de génération automatique de titre", + "Set Task Model": "", "Set Voice": "Définir la voix", "Settings": "Paramètres", "Settings saved successfully!": "Paramètres enregistrés avec succès !", diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json index 70ad04782..eb856b463 100644 --- a/src/lib/i18n/locales/fr-FR/translation.json +++ b/src/lib/i18n/locales/fr-FR/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} réfléchit...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "Backend {{webUIName}} requis", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "un utilisateur", "About": "À propos", "Account": "Compte", @@ -395,7 +396,7 @@ "Set Model": "Définir le modèle", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Définir les étapes", - "Set Title Auto-Generation Model": "Définir le modèle de génération automatique de titre", + "Set Task Model": "", "Set Voice": "Définir la voix", "Settings": "Paramètres", "Settings saved successfully!": "Paramètres enregistrés avec succès !", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index cdb2186be..538835c07 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} सोच रहा है...", "{{user}}'s Chats": "{{user}} की चैट", "{{webUIName}} Backend Required": "{{webUIName}} बैकएंड आवश्यक", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "एक उपयोगकर्ता", "About": "हमारे बारे में", "Account": "खाता", @@ -395,7 +396,7 @@ "Set Model": "", "Set reranking model (e.g. {{model}})": "", "Set Steps": "चरण निर्धारित करें", - "Set Title Auto-Generation Model": "शीर्षक ऑटो-जेनरेशन मॉडल सेट करें", + "Set Task Model": "", "Set Voice": "आवाज सेट करें", "Settings": "सेटिंग्स", "Settings saved successfully!": "सेटिंग्स सफलतापूर्वक सहेजी गईं!", diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json index bf6e456b8..2e6fc8c85 100644 --- a/src/lib/i18n/locales/it-IT/translation.json +++ b/src/lib/i18n/locales/it-IT/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} sta pensando...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend richiesto", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "un utente", "About": "Informazioni", "Account": "Account", @@ -395,7 +396,7 @@ "Set Model": "Imposta modello", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Imposta passaggi", - "Set Title Auto-Generation Model": "Imposta modello di generazione automatica del titolo", + "Set Task Model": "", "Set Voice": "Imposta voce", "Settings": "Impostazioni", "Settings saved successfully!": "Impostazioni salvate con successo!", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index a11032286..632b3dab8 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} は思考中です...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} バックエンドが必要です", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "ユーザー", "About": "概要", "Account": "アカウント", @@ -395,7 +396,7 @@ "Set Model": "モデルを設定", "Set reranking model (e.g. {{model}})": "", "Set Steps": "ステップを設定", - "Set Title Auto-Generation Model": "タイトル自動生成モデルを設定", + "Set Task Model": "", "Set Voice": "音声を設定", "Settings": "設定", "Settings saved successfully!": "設定が正常に保存されました!", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index d059783c9..d9b555115 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} ფიქრობს...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} საჭიროა ბექენდი", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "მომხმარებელი", "About": "შესახებ", "Account": "ანგარიში", @@ -395,7 +396,7 @@ "Set Model": "მოდელის დაყენება", "Set reranking model (e.g. {{model}})": "", "Set Steps": "ნაბიჯების დაყენება", - "Set Title Auto-Generation Model": "სათაურის ავტომატური გენერაციის მოდელის დაყენება", + "Set Task Model": "", "Set Voice": "ხმის დაყენება", "Settings": "ხელსაწყოები", "Settings saved successfully!": "პარამეტრები წარმატებით განახლდა!", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index bc902df0a..3071da8dc 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} 이(가) 생각중입니다....", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} 백엔드가 필요합니다.", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "사용자", "About": "소개", "Account": "계정", @@ -395,7 +396,7 @@ "Set Model": "모델 설정", "Set reranking model (e.g. {{model}})": "", "Set Steps": "단계 설정", - "Set Title Auto-Generation Model": "제목 자동 생성 모델 설정", + "Set Task Model": "", "Set Voice": "음성 설정", "Settings": "설정", "Settings saved successfully!": "설정이 성공적으로 저장되었습니다!", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index 71efa11fa..88916130f 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} is aan het denken...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend Verlpicht", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "een gebruiker", "About": "Over", "Account": "Account", @@ -395,7 +396,7 @@ "Set Model": "Stel die model op", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Stel Stappen in", - "Set Title Auto-Generation Model": "Stel Titel Auto-Generatie Model in", + "Set Task Model": "", "Set Voice": "Stel Stem in", "Settings": "Instellingen", "Settings saved successfully!": "Instellingen succesvol opgeslagen!", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index c378ebc33..1183457a9 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} myśli...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "Backend {{webUIName}} wymagane", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "użytkownik", "About": "O nas", "Account": "Konto", @@ -395,7 +396,7 @@ "Set Model": "Ustaw model", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Ustaw kroki", - "Set Title Auto-Generation Model": "Ustaw model automatycznego generowania tytułów", + "Set Task Model": "", "Set Voice": "Ustaw głos", "Settings": "Ustawienia", "Settings saved successfully!": "Ustawienia zapisane pomyślnie!", diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json index 27f5a380a..24f655e81 100644 --- a/src/lib/i18n/locales/pt-BR/translation.json +++ b/src/lib/i18n/locales/pt-BR/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} está pensando...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend Necessário", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "um usuário", "About": "Sobre", "Account": "Conta", @@ -395,7 +396,7 @@ "Set Model": "Definir Modelo", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Definir Etapas", - "Set Title Auto-Generation Model": "Definir Modelo de Geração Automática de Título", + "Set Task Model": "", "Set Voice": "Definir Voz", "Settings": "Configurações", "Settings saved successfully!": "Configurações salvas com sucesso!", diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json index b665de049..d54d613ac 100644 --- a/src/lib/i18n/locales/pt-PT/translation.json +++ b/src/lib/i18n/locales/pt-PT/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} está pensando...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend Necessário", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "um usuário", "About": "Sobre", "Account": "Conta", @@ -395,7 +396,7 @@ "Set Model": "Definir Modelo", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Definir Etapas", - "Set Title Auto-Generation Model": "Definir Modelo de Geração Automática de Título", + "Set Task Model": "", "Set Voice": "Definir Voz", "Settings": "Configurações", "Settings saved successfully!": "Configurações salvas com sucesso!", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 2aa340fea..4892a7bcc 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} думает...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} бэкенд требуемый", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "пользователь", "About": "Об", "Account": "Аккаунт", @@ -395,7 +396,7 @@ "Set Model": "Установить модель", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Установить шаги", - "Set Title Auto-Generation Model": "Установить модель автогенерации заголовков", + "Set Task Model": "", "Set Voice": "Установить голос", "Settings": "Настройки", "Settings saved successfully!": "Настройки успешно сохранены!", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index b45afbe75..4072e97e4 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} tänker...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Backend krävs", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "en användare", "About": "Om", "Account": "Konto", @@ -395,7 +396,7 @@ "Set Model": "Ställ in modell", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Ange steg", - "Set Title Auto-Generation Model": "Ange modell för automatisk generering av titel", + "Set Task Model": "", "Set Voice": "Ange röst", "Settings": "Inställningar", "Settings saved successfully!": "Inställningar sparades framgångsrikt!", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index 3a7d1a7ef..d2dae7f13 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} düşünüyor...", "{{user}}'s Chats": "{{user}} Sohbetleri", "{{webUIName}} Backend Required": "{{webUIName}} Arkayüz Gerekli", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "bir kullanıcı", "About": "Hakkında", "Account": "Hesap", @@ -395,7 +396,7 @@ "Set Model": "Model Ayarla", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Adımları Ayarla", - "Set Title Auto-Generation Model": "Otomatik Başlık Oluşturma Modelini Ayarla", + "Set Task Model": "", "Set Voice": "Ses Ayarla", "Settings": "Ayarlar", "Settings saved successfully!": "Ayarlar başarıyla kaydedildi!", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index a1cfcaf9c..35848985a 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} думає...", "{{user}}'s Chats": "Чати {{user}}а", "{{webUIName}} Backend Required": "Необхідно підключення бекенду {{webUIName}}", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "користувача", "About": "Про програму", "Account": "Обліковий запис", @@ -395,7 +396,7 @@ "Set Model": "Встановити модель", "Set reranking model (e.g. {{model}})": "Встановити модель переранжування (напр., {{model}})", "Set Steps": "Встановити кроки", - "Set Title Auto-Generation Model": "Встановити модель автогенерації заголовків", + "Set Task Model": "", "Set Voice": "Встановити голос", "Settings": "Налаштування", "Settings saved successfully!": "Налаштування успішно збережено!", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index ddce9963b..2cd835844 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} đang suy nghĩ...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "{{webUIName}} Yêu cầu Backend", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "người sử dụng", "About": "Giới thiệu", "Account": "Tài khoản", @@ -395,7 +396,7 @@ "Set Model": "Thiết lập mô hình", "Set reranking model (e.g. {{model}})": "", "Set Steps": "Đặt Số Bước", - "Set Title Auto-Generation Model": "Đặt tiêu đề tự động", + "Set Task Model": "", "Set Voice": "Đặt Giọng nói", "Settings": "Cài đặt", "Settings saved successfully!": "Cài đặt đã được lưu thành công!", diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index a6d18b6f2..c4286bcf0 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} 正在思考...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "需要 {{webUIName}} 后端", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "用户", "About": "关于", "Account": "账户", @@ -395,7 +396,7 @@ "Set Model": "设置模型", "Set reranking model (e.g. {{model}})": "", "Set Steps": "设置步骤", - "Set Title Auto-Generation Model": "设置标题自动生成模型", + "Set Task Model": "", "Set Voice": "设置声音", "Settings": "设置", "Settings saved successfully!": "设置已保存", diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index 6e74bd70e..051aceb75 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -6,6 +6,7 @@ "{{modelName}} is thinking...": "{{modelName}} 正在思考...", "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "需要 {{webUIName}} 後台", + "A task model is used when performing tasks such as generating titles for chats and web search queries": "", "a user": "使用者", "About": "關於", "Account": "帳號", @@ -395,7 +396,7 @@ "Set Model": "設定模型", "Set reranking model (e.g. {{model}})": "", "Set Steps": "設定步數", - "Set Title Auto-Generation Model": "設定自動生成標題用模型", + "Set Task Model": "", "Set Voice": "設定語音", "Settings": "設定", "Settings saved successfully!": "成功儲存設定", diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index fcf3d580b..022ba81f5 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -860,30 +860,27 @@ } }; - // TODO: Add support for adding all the user's messages as context, and not just the last message const generateChatSearchQuery = async (messageId: string) => { const model = $models.find((model) => model.id === selectedModels[0]); - // TODO: rename titleModel to taskModel - this is the model used for non-chat tasks (e.g. title generation, search query generation) - const titleModelId = + const taskModelId = model?.external ?? false ? $settings?.title?.modelExternal ?? selectedModels[0] : $settings?.title?.model ?? selectedModels[0]; - const titleModel = $models.find((model) => model.id === titleModelId); + const taskModel = $models.find((model) => model.id === taskModelId); const userMessage = history.messages[messageId]; const userPrompt = userMessage.content; const previousMessages = messages.filter((message) => message.role === 'user').map((message) => message.content); - console.log(titleModel); return await generateSearchQuery( localStorage.token, - titleModelId, + taskModelId, previousMessages, userPrompt, - titleModel?.external ?? false - ? titleModel?.source?.toLowerCase() === 'litellm' + taskModel?.external ?? false + ? taskModel?.source?.toLowerCase() === 'litellm' ? `${LITELLM_API_BASE_URL}/v1` : `${OPENAI_API_BASE_URL}` : `${OLLAMA_API_BASE_URL}/v1` diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index a89cda55c..b2cca1653 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -865,30 +865,27 @@ } }; - // TODO: Add support for adding all the user's messages as context, and not just the last message const generateChatSearchQuery = async (messageId: string) => { const model = $models.find((model) => model.id === selectedModels[0]); - // TODO: rename titleModel to taskModel - this is the model used for non-chat tasks (e.g. title generation, search query generation) - const titleModelId = + const taskModelId = model?.external ?? false ? $settings?.title?.modelExternal ?? selectedModels[0] : $settings?.title?.model ?? selectedModels[0]; - const titleModel = $models.find((model) => model.id === titleModelId); + const taskModel = $models.find((model) => model.id === taskModelId); const userMessage = history.messages[messageId]; const userPrompt = userMessage.content; const previousMessages = messages.filter((message) => message.role === 'user').map((message) => message.content); - console.log(titleModel); return await generateSearchQuery( localStorage.token, - titleModelId, + taskModelId, previousMessages, userPrompt, - titleModel?.external ?? false - ? titleModel?.source?.toLowerCase() === 'litellm' + taskModel?.external ?? false + ? taskModel?.source?.toLowerCase() === 'litellm' ? `${LITELLM_API_BASE_URL}/v1` : `${OPENAI_API_BASE_URL}` : `${OLLAMA_API_BASE_URL}/v1`