Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
a02ba52d
Unverified
Commit
a02ba52d
authored
Jun 15, 2024
by
Que Nguyen
Committed by
GitHub
Jun 15, 2024
Browse files
Merge branch 'dev' into searxng
parents
7b5f434a
1275371e
Changes
72
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
227 additions
and
152 deletions
+227
-152
src/lib/i18n/locales/ru-RU/translation.json
src/lib/i18n/locales/ru-RU/translation.json
+5
-0
src/lib/i18n/locales/sr-RS/translation.json
src/lib/i18n/locales/sr-RS/translation.json
+5
-0
src/lib/i18n/locales/sv-SE/translation.json
src/lib/i18n/locales/sv-SE/translation.json
+150
-145
src/lib/i18n/locales/tk-TW/translation.json
src/lib/i18n/locales/tk-TW/translation.json
+5
-0
src/lib/i18n/locales/tr-TR/translation.json
src/lib/i18n/locales/tr-TR/translation.json
+5
-0
src/lib/i18n/locales/uk-UA/translation.json
src/lib/i18n/locales/uk-UA/translation.json
+5
-0
src/lib/i18n/locales/vi-VN/translation.json
src/lib/i18n/locales/vi-VN/translation.json
+5
-0
src/lib/i18n/locales/zh-CN/translation.json
src/lib/i18n/locales/zh-CN/translation.json
+10
-5
src/lib/i18n/locales/zh-TW/translation.json
src/lib/i18n/locales/zh-TW/translation.json
+5
-0
src/lib/stores/index.ts
src/lib/stores/index.ts
+2
-0
src/lib/utils/index.ts
src/lib/utils/index.ts
+19
-1
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+11
-1
No files found.
src/lib/i18n/locales/ru-RU/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"Недопустимый ответ"
,
"Bad Response"
:
"Недопустимый ответ"
,
"Banners"
:
"Баннеры"
,
"Banners"
:
"Баннеры"
,
"Base Model (From)"
:
"Базовая модель (от)"
,
"Base Model (From)"
:
"Базовая модель (от)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"до"
,
"before"
:
"до"
,
"Being lazy"
:
"ленивый"
,
"Being lazy"
:
"ленивый"
,
"Brave Search API Key"
:
"Ключ API поиска Brave"
,
"Brave Search API Key"
:
"Ключ API поиска Brave"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"Находите, загружайте и исследуйте настраиваемые промты"
,
"Discover, download, and explore custom prompts"
:
"Находите, загружайте и исследуйте настраиваемые промты"
,
"Discover, download, and explore model presets"
:
"Находите, загружайте и исследуйте предустановки модели"
,
"Discover, download, and explore model presets"
:
"Находите, загружайте и исследуйте предустановки модели"
,
"Dismissible"
:
""
,
"Dismissible"
:
""
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"Отображать имя пользователя вместо 'Вы' в чате"
,
"Display the username instead of You in the Chat"
:
"Отображать имя пользователя вместо 'Вы' в чате"
,
"Document"
:
"Документ"
,
"Document"
:
"Документ"
,
"Document Settings"
:
"Настройки документа"
,
"Document Settings"
:
"Настройки документа"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
"Введите ключ API Serpstack"
,
"Enter Serpstack API Key"
:
"Введите ключ API Serpstack"
,
"Enter stop sequence"
:
"Введите последовательность остановки"
,
"Enter stop sequence"
:
"Введите последовательность остановки"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"Введите Top K"
,
"Enter Top K"
:
"Введите Top K"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Введите URL-адрес (например, http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Введите URL-адрес (например, http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Введите URL-адрес (например, http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Введите URL-адрес (например, http://localhost:11434)"
,
...
@@ -490,6 +493,7 @@
...
@@ -490,6 +493,7 @@
"System"
:
"Система"
,
"System"
:
"Система"
,
"System Prompt"
:
"Системный промпт"
,
"System Prompt"
:
"Системный промпт"
,
"Tags"
:
"Теги"
,
"Tags"
:
"Теги"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"Пожалуйста, расскажите нам больше:"
,
"Tell us more:"
:
"Пожалуйста, расскажите нам больше:"
,
"Temperature"
:
"Температура"
,
"Temperature"
:
"Температура"
,
"Template"
:
"Шаблон"
,
"Template"
:
"Шаблон"
,
...
@@ -520,6 +524,7 @@
...
@@ -520,6 +524,7 @@
"Today"
:
"Сегодня"
,
"Today"
:
"Сегодня"
,
"Toggle settings"
:
"Переключить настройки"
,
"Toggle settings"
:
"Переключить настройки"
,
"Toggle sidebar"
:
"Переключить боковую панель"
,
"Toggle sidebar"
:
"Переключить боковую панель"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
...
src/lib/i18n/locales/sr-RS/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"Лош одговор"
,
"Bad Response"
:
"Лош одговор"
,
"Banners"
:
"Барјаке"
,
"Banners"
:
"Барјаке"
,
"Base Model (From)"
:
"Основни модел (од)"
,
"Base Model (From)"
:
"Основни модел (од)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"пре"
,
"before"
:
"пре"
,
"Being lazy"
:
"Бити лењ"
,
"Being lazy"
:
"Бити лењ"
,
"Brave Search API Key"
:
"Апи кључ за храбру претрагу"
,
"Brave Search API Key"
:
"Апи кључ за храбру претрагу"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"Откријте, преузмите и истражите прилагођене упите"
,
"Discover, download, and explore custom prompts"
:
"Откријте, преузмите и истражите прилагођене упите"
,
"Discover, download, and explore model presets"
:
"Откријте, преузмите и истражите образце модела"
,
"Discover, download, and explore model presets"
:
"Откријте, преузмите и истражите образце модела"
,
"Dismissible"
:
""
,
"Dismissible"
:
""
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"Прикажи корисничко име уместо Ти у чату"
,
"Display the username instead of You in the Chat"
:
"Прикажи корисничко име уместо Ти у чату"
,
"Document"
:
"Документ"
,
"Document"
:
"Документ"
,
"Document Settings"
:
"Подешавања документа"
,
"Document Settings"
:
"Подешавања документа"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
"Унесите Серпстацк АПИ кључ"
,
"Enter Serpstack API Key"
:
"Унесите Серпстацк АПИ кључ"
,
"Enter stop sequence"
:
"Унесите секвенцу заустављања"
,
"Enter stop sequence"
:
"Унесите секвенцу заустављања"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"Унесите Топ К"
,
"Enter Top K"
:
"Унесите Топ К"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Унесите адресу (нпр. http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Унесите адресу (нпр. http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Унесите адресу (нпр. http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Унесите адресу (нпр. http://localhost:11434)"
,
...
@@ -489,6 +492,7 @@
...
@@ -489,6 +492,7 @@
"System"
:
"Систем"
,
"System"
:
"Систем"
,
"System Prompt"
:
"Системски упит"
,
"System Prompt"
:
"Системски упит"
,
"Tags"
:
"Ознаке"
,
"Tags"
:
"Ознаке"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"Реците нам више:"
,
"Tell us more:"
:
"Реците нам више:"
,
"Temperature"
:
"Температура"
,
"Temperature"
:
"Температура"
,
"Template"
:
"Шаблон"
,
"Template"
:
"Шаблон"
,
...
@@ -519,6 +523,7 @@
...
@@ -519,6 +523,7 @@
"Today"
:
"Данас"
,
"Today"
:
"Данас"
,
"Toggle settings"
:
"Пребаци подешавања"
,
"Toggle settings"
:
"Пребаци подешавања"
,
"Toggle sidebar"
:
"Пребаци бочну траку"
,
"Toggle sidebar"
:
"Пребаци бочну траку"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Топ К"
,
"Top K"
:
"Топ К"
,
"Top P"
:
"Топ П"
,
"Top P"
:
"Топ П"
,
...
...
src/lib/i18n/locales/sv-SE/translation.json
View file @
a02ba52d
This diff is collapsed.
Click to expand it.
src/lib/i18n/locales/tk-TW/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
""
,
"Bad Response"
:
""
,
"Banners"
:
""
,
"Banners"
:
""
,
"Base Model (From)"
:
""
,
"Base Model (From)"
:
""
,
"Batch Size (num_batch)"
:
""
,
"before"
:
""
,
"before"
:
""
,
"Being lazy"
:
""
,
"Being lazy"
:
""
,
"Brave Search API Key"
:
""
,
"Brave Search API Key"
:
""
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
""
,
"Discover, download, and explore custom prompts"
:
""
,
"Discover, download, and explore model presets"
:
""
,
"Discover, download, and explore model presets"
:
""
,
"Dismissible"
:
""
,
"Dismissible"
:
""
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
""
,
"Display the username instead of You in the Chat"
:
""
,
"Document"
:
""
,
"Document"
:
""
,
"Document Settings"
:
""
,
"Document Settings"
:
""
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
""
,
"Enter Serpstack API Key"
:
""
,
"Enter stop sequence"
:
""
,
"Enter stop sequence"
:
""
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
""
,
"Enter Top K"
:
""
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
""
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
""
,
"Enter URL (e.g. http://localhost:11434)"
:
""
,
"Enter URL (e.g. http://localhost:11434)"
:
""
,
...
@@ -488,6 +491,7 @@
...
@@ -488,6 +491,7 @@
"System"
:
""
,
"System"
:
""
,
"System Prompt"
:
""
,
"System Prompt"
:
""
,
"Tags"
:
""
,
"Tags"
:
""
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
""
,
"Tell us more:"
:
""
,
"Temperature"
:
""
,
"Temperature"
:
""
,
"Template"
:
""
,
"Template"
:
""
,
...
@@ -518,6 +522,7 @@
...
@@ -518,6 +522,7 @@
"Today"
:
""
,
"Today"
:
""
,
"Toggle settings"
:
""
,
"Toggle settings"
:
""
,
"Toggle sidebar"
:
""
,
"Toggle sidebar"
:
""
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
""
,
"Top K"
:
""
,
"Top P"
:
""
,
"Top P"
:
""
,
...
...
src/lib/i18n/locales/tr-TR/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"Kötü Yanıt"
,
"Bad Response"
:
"Kötü Yanıt"
,
"Banners"
:
"Afişler"
,
"Banners"
:
"Afişler"
,
"Base Model (From)"
:
"Temel Model ('den)"
,
"Base Model (From)"
:
"Temel Model ('den)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"önce"
,
"before"
:
"önce"
,
"Being lazy"
:
"Tembelleşiyor"
,
"Being lazy"
:
"Tembelleşiyor"
,
"Brave Search API Key"
:
"Brave Search API Anahtarı"
,
"Brave Search API Key"
:
"Brave Search API Anahtarı"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"Özel promptları keşfedin, indirin ve inceleyin"
,
"Discover, download, and explore custom prompts"
:
"Özel promptları keşfedin, indirin ve inceleyin"
,
"Discover, download, and explore model presets"
:
"Model ön ayarlarını keşfedin, indirin ve inceleyin"
,
"Discover, download, and explore model presets"
:
"Model ön ayarlarını keşfedin, indirin ve inceleyin"
,
"Dismissible"
:
""
,
"Dismissible"
:
""
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"Sohbet'te Siz yerine kullanıcı adını göster"
,
"Display the username instead of You in the Chat"
:
"Sohbet'te Siz yerine kullanıcı adını göster"
,
"Document"
:
"Belge"
,
"Document"
:
"Belge"
,
"Document Settings"
:
"Belge Ayarları"
,
"Document Settings"
:
"Belge Ayarları"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
"Serpstack API Anahtarını Girin"
,
"Enter Serpstack API Key"
:
"Serpstack API Anahtarını Girin"
,
"Enter stop sequence"
:
"Durdurma dizisini girin"
,
"Enter stop sequence"
:
"Durdurma dizisini girin"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"Top K'yı girin"
,
"Enter Top K"
:
"Top K'yı girin"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"URL'yi Girin (örn. http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"URL'yi Girin (örn. http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"URL'yi Girin (e.g. http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"URL'yi Girin (e.g. http://localhost:11434)"
,
...
@@ -488,6 +491,7 @@
...
@@ -488,6 +491,7 @@
"System"
:
"Sistem"
,
"System"
:
"Sistem"
,
"System Prompt"
:
"Sistem Promptu"
,
"System Prompt"
:
"Sistem Promptu"
,
"Tags"
:
"Etiketler"
,
"Tags"
:
"Etiketler"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"Bize daha fazlasını anlat:"
,
"Tell us more:"
:
"Bize daha fazlasını anlat:"
,
"Temperature"
:
"Temperature"
,
"Temperature"
:
"Temperature"
,
"Template"
:
"Şablon"
,
"Template"
:
"Şablon"
,
...
@@ -518,6 +522,7 @@
...
@@ -518,6 +522,7 @@
"Today"
:
"Bugün"
,
"Today"
:
"Bugün"
,
"Toggle settings"
:
"Ayarları Aç/Kapat"
,
"Toggle settings"
:
"Ayarları Aç/Kapat"
,
"Toggle sidebar"
:
"Kenar Çubuğunu Aç/Kapat"
,
"Toggle sidebar"
:
"Kenar Çubuğunu Aç/Kapat"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
...
src/lib/i18n/locales/uk-UA/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"Неправильна відповідь"
,
"Bad Response"
:
"Неправильна відповідь"
,
"Banners"
:
"Прапори"
,
"Banners"
:
"Прапори"
,
"Base Model (From)"
:
"Базова модель (від)"
,
"Base Model (From)"
:
"Базова модель (від)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"до того, як"
,
"before"
:
"до того, як"
,
"Being lazy"
:
"Не поспішати"
,
"Being lazy"
:
"Не поспішати"
,
"Brave Search API Key"
:
"Ключ API пошуку Brave"
,
"Brave Search API Key"
:
"Ключ API пошуку Brave"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"Знайдіть, завантажте та досліджуйте налаштовані промти"
,
"Discover, download, and explore custom prompts"
:
"Знайдіть, завантажте та досліджуйте налаштовані промти"
,
"Discover, download, and explore model presets"
:
"Знайдіть, завантажте та досліджуйте налаштовані налаштування моделі"
,
"Discover, download, and explore model presets"
:
"Знайдіть, завантажте та досліджуйте налаштовані налаштування моделі"
,
"Dismissible"
:
"Неприйнятно"
,
"Dismissible"
:
"Неприйнятно"
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"Показувати ім'я користувача замість 'Ви' в чаті"
,
"Display the username instead of You in the Chat"
:
"Показувати ім'я користувача замість 'Ви' в чаті"
,
"Document"
:
"Документ"
,
"Document"
:
"Документ"
,
"Document Settings"
:
"Налаштування документа"
,
"Document Settings"
:
"Налаштування документа"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
"Введіть ключ API Serpstack"
,
"Enter Serpstack API Key"
:
"Введіть ключ API Serpstack"
,
"Enter stop sequence"
:
"Введіть символ зупинки"
,
"Enter stop sequence"
:
"Введіть символ зупинки"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"Введіть Top K"
,
"Enter Top K"
:
"Введіть Top K"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Введіть URL-адресу (напр., http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Введіть URL-адресу (напр., http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Введіть URL-адресу (напр., http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Введіть URL-адресу (напр., http://localhost:11434)"
,
...
@@ -490,6 +493,7 @@
...
@@ -490,6 +493,7 @@
"System"
:
"Система"
,
"System"
:
"Система"
,
"System Prompt"
:
"Системний промт"
,
"System Prompt"
:
"Системний промт"
,
"Tags"
:
"Теги"
,
"Tags"
:
"Теги"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"Розкажи нам більше:"
,
"Tell us more:"
:
"Розкажи нам більше:"
,
"Temperature"
:
"Температура"
,
"Temperature"
:
"Температура"
,
"Template"
:
"Шаблон"
,
"Template"
:
"Шаблон"
,
...
@@ -520,6 +524,7 @@
...
@@ -520,6 +524,7 @@
"Today"
:
"Сьогодні"
,
"Today"
:
"Сьогодні"
,
"Toggle settings"
:
"Переключити налаштування"
,
"Toggle settings"
:
"Переключити налаштування"
,
"Toggle sidebar"
:
"Переключити бокову панель"
,
"Toggle sidebar"
:
"Переключити бокову панель"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
...
src/lib/i18n/locales/vi-VN/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"Trả lời KHÔNG tốt"
,
"Bad Response"
:
"Trả lời KHÔNG tốt"
,
"Banners"
:
"Biểu ngữ"
,
"Banners"
:
"Biểu ngữ"
,
"Base Model (From)"
:
"Mô hình cơ sở (từ)"
,
"Base Model (From)"
:
"Mô hình cơ sở (từ)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"trước"
,
"before"
:
"trước"
,
"Being lazy"
:
"Lười biếng"
,
"Being lazy"
:
"Lười biếng"
,
"Brave Search API Key"
:
"Khóa API tìm kiếm dũng cảm"
,
"Brave Search API Key"
:
"Khóa API tìm kiếm dũng cảm"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"Tìm kiếm, tải về và khám phá thêm các prompt tùy chỉnh"
,
"Discover, download, and explore custom prompts"
:
"Tìm kiếm, tải về và khám phá thêm các prompt tùy chỉnh"
,
"Discover, download, and explore model presets"
:
"Tìm kiếm, tải về và khám phá thêm các thiết lập mô hình sẵn"
,
"Discover, download, and explore model presets"
:
"Tìm kiếm, tải về và khám phá thêm các thiết lập mô hình sẵn"
,
"Dismissible"
:
"Có thể loại bỏ"
,
"Dismissible"
:
"Có thể loại bỏ"
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"Hiển thị tên người sử dụng thay vì 'Bạn' trong nội dung chat"
,
"Display the username instead of You in the Chat"
:
"Hiển thị tên người sử dụng thay vì 'Bạn' trong nội dung chat"
,
"Document"
:
"Tài liệu"
,
"Document"
:
"Tài liệu"
,
"Document Settings"
:
"Cấu hình kho tài liệu"
,
"Document Settings"
:
"Cấu hình kho tài liệu"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
"Nhập Serply API Key"
,
"Enter Serply API Key"
:
"Nhập Serply API Key"
,
"Enter Serpstack API Key"
:
"Nhập Serpstack API Key"
,
"Enter Serpstack API Key"
:
"Nhập Serpstack API Key"
,
"Enter stop sequence"
:
"Nhập stop sequence"
,
"Enter stop sequence"
:
"Nhập stop sequence"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"Nhập Top K"
,
"Enter Top K"
:
"Nhập Top K"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Nhập URL (vd: http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"Nhập URL (vd: http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Nhập URL (vd: http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"Nhập URL (vd: http://localhost:11434)"
,
...
@@ -487,6 +490,7 @@
...
@@ -487,6 +490,7 @@
"System"
:
"Hệ thống"
,
"System"
:
"Hệ thống"
,
"System Prompt"
:
"Prompt Hệ thống (System Prompt)"
,
"System Prompt"
:
"Prompt Hệ thống (System Prompt)"
,
"Tags"
:
"Thẻ"
,
"Tags"
:
"Thẻ"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"Hãy cho chúng tôi hiểu thêm về chất lượng của câu trả lời:"
,
"Tell us more:"
:
"Hãy cho chúng tôi hiểu thêm về chất lượng của câu trả lời:"
,
"Temperature"
:
"Mức độ sáng tạo"
,
"Temperature"
:
"Mức độ sáng tạo"
,
"Template"
:
"Mẫu"
,
"Template"
:
"Mẫu"
,
...
@@ -517,6 +521,7 @@
...
@@ -517,6 +521,7 @@
"Today"
:
"Hôm nay"
,
"Today"
:
"Hôm nay"
,
"Toggle settings"
:
"Bật/tắt cài đặt"
,
"Toggle settings"
:
"Bật/tắt cài đặt"
,
"Toggle sidebar"
:
"Bật/tắt thanh bên"
,
"Toggle sidebar"
:
"Bật/tắt thanh bên"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
...
src/lib/i18n/locales/zh-CN/translation.json
View file @
a02ba52d
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"Admin"
:
"管理员联系方式"
,
"Admin"
:
"管理员联系方式"
,
"Admin Panel"
:
"管理员面板"
,
"Admin Panel"
:
"管理员面板"
,
"Admin Settings"
:
"管理员设置"
,
"Admin Settings"
:
"管理员设置"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
"
管理员拥有所有工具的访问权限;用户则需在工作空间中为每个模型单独分配工具。
"
,
"Advanced Parameters"
:
"高级参数"
,
"Advanced Parameters"
:
"高级参数"
,
"Advanced Params"
:
"高级参数"
,
"Advanced Params"
:
"高级参数"
,
"all"
:
"所有"
,
"all"
:
"所有"
,
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"点踩回复"
,
"Bad Response"
:
"点踩回复"
,
"Banners"
:
"公告横幅"
,
"Banners"
:
"公告横幅"
,
"Base Model (From)"
:
"基础模型 (来自)"
,
"Base Model (From)"
:
"基础模型 (来自)"
,
"Batch Size (num_batch)"
:
"批大小 (num_batch)"
,
"before"
:
"对话"
,
"before"
:
"对话"
,
"Being lazy"
:
"懒惰"
,
"Being lazy"
:
"懒惰"
,
"Brave Search API Key"
:
"Brave Search API 密钥"
,
"Brave Search API Key"
:
"Brave Search API 密钥"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"发现、下载并探索更多自定义提示词"
,
"Discover, download, and explore custom prompts"
:
"发现、下载并探索更多自定义提示词"
,
"Discover, download, and explore model presets"
:
"发现、下载并探索更多模型预设"
,
"Discover, download, and explore model presets"
:
"发现、下载并探索更多模型预设"
,
"Dismissible"
:
"是否可关闭"
,
"Dismissible"
:
"是否可关闭"
,
"Display Emoji in Call"
:
"在通话中显示 Emoji 表情符号"
,
"Display the username instead of You in the Chat"
:
"在对话中显示用户名而不是“你”"
,
"Display the username instead of You in the Chat"
:
"在对话中显示用户名而不是“你”"
,
"Document"
:
"文档"
,
"Document"
:
"文档"
,
"Document Settings"
:
"文档设置"
,
"Document Settings"
:
"文档设置"
,
...
@@ -202,9 +204,10 @@
...
@@ -202,9 +204,10 @@
"Enter Score"
:
"输入评分"
,
"Enter Score"
:
"输入评分"
,
"Enter Searxng Query URL"
:
"输入 Searxng 查询地址"
,
"Enter Searxng Query URL"
:
"输入 Searxng 查询地址"
,
"Enter Serper API Key"
:
"输入 Serper API 密钥"
,
"Enter Serper API Key"
:
"输入 Serper API 密钥"
,
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
"
输入 Serply API 密钥
"
,
"Enter Serpstack API Key"
:
"输入 Serpstack API 密钥"
,
"Enter Serpstack API Key"
:
"输入 Serpstack API 密钥"
,
"Enter stop sequence"
:
"输入停止序列 (Stop Sequence)"
,
"Enter stop sequence"
:
"输入停止序列 (Stop Sequence)"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"输入 Top K"
,
"Enter Top K"
:
"输入 Top K"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"输入地址 (例如:http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"输入地址 (例如:http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"输入地址 (例如:http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"输入地址 (例如:http://localhost:11434)"
,
...
@@ -424,7 +427,7 @@
...
@@ -424,7 +427,7 @@
"Search Query Generation Prompt Length Threshold"
:
"搜索查询生成提示长度阈值"
,
"Search Query Generation Prompt Length Threshold"
:
"搜索查询生成提示长度阈值"
,
"Search Result Count"
:
"搜索结果数量"
,
"Search Result Count"
:
"搜索结果数量"
,
"Search Tools"
:
"搜索工具"
,
"Search Tools"
:
"搜索工具"
,
"Searched {{count}} sites_other"
:
"
检
索到 {{count}} 个
网站
"
,
"Searched {{count}} sites_other"
:
"
搜
索到 {{count}} 个
结果
"
,
"Searching \"{{searchQuery}}\""
:
"搜索
\"
{{searchQuery}}
\"
中"
,
"Searching \"{{searchQuery}}\""
:
"搜索
\"
{{searchQuery}}
\"
中"
,
"Searxng Query URL"
:
"Searxng 查询 URL"
,
"Searxng Query URL"
:
"Searxng 查询 URL"
,
"See readme.md for instructions"
:
"查看 readme.md 以获取说明"
,
"See readme.md for instructions"
:
"查看 readme.md 以获取说明"
,
...
@@ -487,6 +490,7 @@
...
@@ -487,6 +490,7 @@
"System"
:
"系统"
,
"System"
:
"系统"
,
"System Prompt"
:
"系统提示词"
,
"System Prompt"
:
"系统提示词"
,
"Tags"
:
"标签"
,
"Tags"
:
"标签"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"请告诉我们更多细节"
,
"Tell us more:"
:
"请告诉我们更多细节"
,
"Temperature"
:
"温度 (Temperature)"
,
"Temperature"
:
"温度 (Temperature)"
,
"Template"
:
"模板"
,
"Template"
:
"模板"
,
...
@@ -513,10 +517,11 @@
...
@@ -513,10 +517,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
"请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。"
,
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
"请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。"
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
"要在此处添加文档,请先将它们上传到工作空间中的“文档”内。"
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
"要在此处添加文档,请先将它们上传到工作空间中的“文档”内。"
,
"to chat input."
:
"到对话输入。"
,
"to chat input."
:
"到对话输入。"
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
"
要在这里选择工具包,请先将它们添加到工作空间中的“工具”。
"
,
"Today"
:
"今天"
,
"Today"
:
"今天"
,
"Toggle settings"
:
"切换设置"
,
"Toggle settings"
:
"切换设置"
,
"Toggle sidebar"
:
"切换侧边栏"
,
"Toggle sidebar"
:
"切换侧边栏"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
"在语境刷新时需保留的 Tokens"
,
"Tools"
:
"工具"
,
"Tools"
:
"工具"
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
@@ -555,7 +560,7 @@
...
@@ -555,7 +560,7 @@
"Web Loader Settings"
:
"网页爬取设置"
,
"Web Loader Settings"
:
"网页爬取设置"
,
"Web Params"
:
"网络爬取设置"
,
"Web Params"
:
"网络爬取设置"
,
"Web Search"
:
"网络搜索"
,
"Web Search"
:
"网络搜索"
,
"Web Search Engine"
:
"
Web
搜索引擎"
,
"Web Search Engine"
:
"
网络
搜索引擎"
,
"Webhook URL"
:
"Webhook URL"
,
"Webhook URL"
:
"Webhook URL"
,
"WebUI Add-ons"
:
"WebUI 附加组件"
,
"WebUI Add-ons"
:
"WebUI 附加组件"
,
"WebUI Settings"
:
"WebUI 设置"
,
"WebUI Settings"
:
"WebUI 设置"
,
...
...
src/lib/i18n/locales/zh-TW/translation.json
View file @
a02ba52d
...
@@ -69,6 +69,7 @@
...
@@ -69,6 +69,7 @@
"Bad Response"
:
"錯誤回應"
,
"Bad Response"
:
"錯誤回應"
,
"Banners"
:
"橫幅"
,
"Banners"
:
"橫幅"
,
"Base Model (From)"
:
"基本模型(來自)"
,
"Base Model (From)"
:
"基本模型(來自)"
,
"Batch Size (num_batch)"
:
""
,
"before"
:
"前"
,
"before"
:
"前"
,
"Being lazy"
:
"懶人模式"
,
"Being lazy"
:
"懶人模式"
,
"Brave Search API Key"
:
"搜尋 API Key"
,
"Brave Search API Key"
:
"搜尋 API Key"
,
...
@@ -160,6 +161,7 @@
...
@@ -160,6 +161,7 @@
"Discover, download, and explore custom prompts"
:
"發現、下載並探索他人設置的提示詞"
,
"Discover, download, and explore custom prompts"
:
"發現、下載並探索他人設置的提示詞"
,
"Discover, download, and explore model presets"
:
"發現、下載並探索他人設置的模型"
,
"Discover, download, and explore model presets"
:
"發現、下載並探索他人設置的模型"
,
"Dismissible"
:
""
,
"Dismissible"
:
""
,
"Display Emoji in Call"
:
""
,
"Display the username instead of You in the Chat"
:
"在聊天中顯示使用者名稱而不是「你」"
,
"Display the username instead of You in the Chat"
:
"在聊天中顯示使用者名稱而不是「你」"
,
"Document"
:
"文件"
,
"Document"
:
"文件"
,
"Document Settings"
:
"文件設定"
,
"Document Settings"
:
"文件設定"
,
...
@@ -205,6 +207,7 @@
...
@@ -205,6 +207,7 @@
"Enter Serply API Key"
:
""
,
"Enter Serply API Key"
:
""
,
"Enter Serpstack API Key"
:
"輸入 Serpstack API Key"
,
"Enter Serpstack API Key"
:
"輸入 Serpstack API Key"
,
"Enter stop sequence"
:
"輸入停止序列"
,
"Enter stop sequence"
:
"輸入停止序列"
,
"Enter Tavily API Key"
:
""
,
"Enter Top K"
:
"輸入 Top K"
,
"Enter Top K"
:
"輸入 Top K"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"輸入 URL(例如 http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://127.0.0.1:7860/)"
:
"輸入 URL(例如 http://127.0.0.1:7860/)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"輸入 URL(例如 http://localhost:11434)"
,
"Enter URL (e.g. http://localhost:11434)"
:
"輸入 URL(例如 http://localhost:11434)"
,
...
@@ -487,6 +490,7 @@
...
@@ -487,6 +490,7 @@
"System"
:
"系統"
,
"System"
:
"系統"
,
"System Prompt"
:
"系統提示詞"
,
"System Prompt"
:
"系統提示詞"
,
"Tags"
:
"標籤"
,
"Tags"
:
"標籤"
,
"Tavily API Key"
:
""
,
"Tell us more:"
:
"告訴我們更多:"
,
"Tell us more:"
:
"告訴我們更多:"
,
"Temperature"
:
"溫度"
,
"Temperature"
:
"溫度"
,
"Template"
:
"模板"
,
"Template"
:
"模板"
,
...
@@ -517,6 +521,7 @@
...
@@ -517,6 +521,7 @@
"Today"
:
"今天"
,
"Today"
:
"今天"
,
"Toggle settings"
:
"切換設定"
,
"Toggle settings"
:
"切換設定"
,
"Toggle sidebar"
:
"切換側邊欄"
,
"Toggle sidebar"
:
"切換側邊欄"
,
"Tokens To Keep On Context Refresh (num_keep)"
:
""
,
"Tools"
:
""
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Top P"
:
"Top P"
,
...
...
src/lib/stores/index.ts
View file @
a02ba52d
...
@@ -92,6 +92,8 @@ type Settings = {
...
@@ -92,6 +92,8 @@ type Settings = {
top_k
?:
string
;
top_k
?:
string
;
top_p
?:
string
;
top_p
?:
string
;
num_ctx
?:
string
;
num_ctx
?:
string
;
num_batch
?:
string
;
num_keep
?:
string
;
options
?:
ModelOptions
;
options
?:
ModelOptions
;
};
};
...
...
src/lib/utils/index.ts
View file @
a02ba52d
...
@@ -436,13 +436,31 @@ export const removeEmojis = (str) => {
...
@@ -436,13 +436,31 @@ export const removeEmojis = (str) => {
export
const
extractSentences
=
(
text
)
=>
{
export
const
extractSentences
=
(
text
)
=>
{
// Split the paragraph into sentences based on common punctuation marks
// Split the paragraph into sentences based on common punctuation marks
const
sentences
=
text
.
split
(
/
(?<
=
[
.!?
])
/
);
const
sentences
=
text
.
split
(
/
(?<
=
[
.!?
])
\s
+
/
);
return
sentences
return
sentences
.
map
((
sentence
)
=>
removeEmojis
(
sentence
.
trim
()))
.
map
((
sentence
)
=>
removeEmojis
(
sentence
.
trim
()))
.
filter
((
sentence
)
=>
sentence
!==
''
);
.
filter
((
sentence
)
=>
sentence
!==
''
);
};
};
export
const
extractSentencesForAudio
=
(
text
)
=>
{
return
extractSentences
(
text
).
reduce
((
mergedTexts
,
currentText
)
=>
{
const
lastIndex
=
mergedTexts
.
length
-
1
;
if
(
lastIndex
>=
0
)
{
const
previousText
=
mergedTexts
[
lastIndex
];
const
wordCount
=
previousText
.
split
(
/
\s
+/
).
length
;
if
(
wordCount
<
2
)
{
mergedTexts
[
lastIndex
]
=
previousText
+
'
'
+
currentText
;
}
else
{
mergedTexts
.
push
(
currentText
);
}
}
else
{
mergedTexts
.
push
(
currentText
);
}
return
mergedTexts
;
},
[]);
};
export
const
blobToFile
=
(
blob
,
fileName
)
=>
{
export
const
blobToFile
=
(
blob
,
fileName
)
=>
{
// Create a new File object from the Blob
// Create a new File object from the Blob
const
file
=
new
File
([
blob
],
fileName
,
{
type
:
blob
.
type
});
const
file
=
new
File
([
blob
],
fileName
,
{
type
:
blob
.
type
});
...
...
src/routes/(app)/admin/+page.svelte
View file @
a02ba52d
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
import Tooltip from '$lib/components/common/Tooltip.svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import UserChatsModal from '$lib/components/admin/UserChatsModal.svelte';
import UserChatsModal from '$lib/components/admin/UserChatsModal.svelte';
import AddUserModal from '$lib/components/admin/AddUserModal.svelte';
import AddUserModal from '$lib/components/admin/AddUserModal.svelte';
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
const i18n = getContext('i18n');
const i18n = getContext('i18n');
...
@@ -30,6 +31,7 @@
...
@@ -30,6 +31,7 @@
let page = 1;
let page = 1;
let showDeleteConfirmDialog = false;
let showAddUserModal = false;
let showAddUserModal = false;
let showUserChatsModal = false;
let showUserChatsModal = false;
...
@@ -77,6 +79,13 @@
...
@@ -77,6 +79,13 @@
});
});
</script>
</script>
<ConfirmDialog
bind:show={showDeleteConfirmDialog}
on:confirm={() => {
deleteUserHandler(selectedUser.id);
}}
/>
{#key selectedUser}
{#key selectedUser}
<EditUserModal
<EditUserModal
bind:show={showEditUserModal}
bind:show={showEditUserModal}
...
@@ -256,7 +265,8 @@
...
@@ -256,7 +265,8 @@
<button
<button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
on:click={async () => {
on:click={async () => {
deleteUserHandler(user.id);
showDeleteConfirmDialog = true;
selectedUser = user;
}}
}}
>
>
<svg
<svg
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment