Skip to content

Commit

Permalink
feat: rename title generation model to task model
Browse files Browse the repository at this point in the history
  • Loading branch information
cheahjs committed May 12, 2024
1 parent b0b61b4 commit fc00b32
Show file tree
Hide file tree
Showing 32 changed files with 89 additions and 46 deletions.
22 changes: 21 additions & 1 deletion src/lib/components/chat/Settings/Interface.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -231,7 +232,26 @@
<hr class=" dark:border-gray-700" />

<div>
<div class=" mb-2.5 text-sm font-medium">{$i18n.t('Set Title Auto-Generation Model')}</div>
<div class=" mb-2.5 text-sm font-medium flex">
<div class=" mr-1">{$i18n.t('Set Task Model')}</div>
<Tooltip
content={$i18n.t('A task model is used when performing tasks such as generating titles for chats and web search queries')}>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-5 h-5"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"
/>
</svg>
</Tooltip>
</div>
<div class="flex w-full gap-2 pr-2">
<div class="flex-1">
<div class=" text-xs mb-1">Local Models</div>
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/ar-BH/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "الحساب",
Expand Down Expand Up @@ -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!": "تم حفظ الاعدادات بنجاح",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/bg-BG/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Акаунт",
Expand Down Expand Up @@ -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!": "Настройките са запазени успешно!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/bn-BD/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "একাউন্ট",
Expand Down Expand Up @@ -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!": "সেটিংগুলো সফলভাবে সংরক্ষিত হয়েছে",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/ca-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/de-DE/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/dg-DG/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/en-GB/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down Expand Up @@ -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!": "",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down Expand Up @@ -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!": "",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/es-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/fa-IR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "حساب کاربری",
Expand Down Expand Up @@ -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!": "تنظیمات با موفقیت ذخیره شد!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/fi-FI/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/fr-CA/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 !",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/fr-FR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 !",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/hi-IN/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "खाता",
Expand Down Expand Up @@ -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!": "सेटिंग्स सफलतापूर्वक सहेजी गईं!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/it-IT/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/ja-JP/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "アカウント",
Expand Down Expand Up @@ -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!": "設定が正常に保存されました!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/ka-GE/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "ანგარიში",
Expand Down Expand Up @@ -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!": "პარამეტრები წარმატებით განახლდა!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/ko-KR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "계정",
Expand Down Expand Up @@ -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!": "설정이 성공적으로 저장되었습니다!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/nl-NL/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/pl-PL/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/i18n/locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
Loading

0 comments on commit fc00b32

Please sign in to comment.