Unverified Commit bced9073 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge branch 'websearch' into feat/backend-web-search

parents 276b7b90 b6b71c08
......@@ -63,6 +63,7 @@
"available!": "dostępny!",
"Back": "Wstecz",
"Bad Response": "Zła odpowiedź",
"Banners": "",
"Base Model (From)": "",
"before": "przed",
"Being lazy": "Jest leniwy",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Wprowadź swoje imię i nazwisko",
"Enter Your Password": "Wprowadź swoje hasło",
"Enter Your Role": "Wprowadź swoją rolę",
"Error": "",
"Experimental": "Eksperymentalne",
"Export All Chats (All Users)": "Eksportuj wszystkie czaty (wszyscy użytkownicy)",
"Export Chats": "Eksportuj czaty",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Importuj prompty",
"Include `--api` flag when running stable-diffusion-webui": "Dołącz flagę `--api` podczas uruchamiania stable-diffusion-webui",
"Info": "",
"Input commands": "Wprowadź komendy",
"Interface": "Interfejs",
"Invalid Tag": "Nieprawidłowy tag",
......@@ -450,6 +453,7 @@
"Top P": "Najlepsze P",
"Trouble accessing Ollama?": "Problemy z dostępem do Ollama?",
"TTS Settings": "Ustawienia TTS",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Wprowadź adres URL do pobrania z Hugging Face",
"Uh-oh! There was an issue connecting to {{provider}}.": "O nie! Wystąpił problem z połączeniem z {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Nieznany typ pliku '{{file_type}}', ale akceptowany i traktowany jako zwykły tekst",
......@@ -470,6 +474,7 @@
"variable": "zmienna",
"variable to have them replaced with clipboard content.": "zmienna która zostanie zastąpiona zawartością schowka.",
"Version": "Wersja",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Uwaga: Jeśli uaktualnisz lub zmienisz model osadzania, będziesz musiał ponownie zaimportować wszystkie dokumenty.",
"Web": "Sieć",
"Web Loader Settings": "Ustawienia pobierania z sieci",
......
......@@ -63,6 +63,7 @@
"available!": "disponível!",
"Back": "Voltar",
"Bad Response": "Resposta ruim",
"Banners": "",
"Base Model (From)": "",
"before": "antes",
"Being lazy": "Ser preguiçoso",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Digite seu Nome Completo",
"Enter Your Password": "Digite sua Senha",
"Enter Your Role": "Digite sua Função",
"Error": "",
"Experimental": "Experimental",
"Export All Chats (All Users)": "Exportar Todos os Bate-papos (Todos os Usuários)",
"Export Chats": "Exportar Bate-papos",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Importar Prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inclua a flag `--api` ao executar stable-diffusion-webui",
"Info": "",
"Input commands": "Comandos de entrada",
"Interface": "Interface",
"Invalid Tag": "Etiqueta Inválida",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Problemas para acessar o Ollama?",
"TTS Settings": "Configurações TTS",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Digite a URL do Hugging Face Resolve (Download)",
"Uh-oh! There was an issue connecting to {{provider}}.": "Opa! Houve um problema ao conectar-se a {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Tipo de arquivo desconhecido '{{file_type}}', mas aceitando e tratando como texto simples",
......@@ -470,6 +474,7 @@
"variable": "variável",
"variable to have them replaced with clipboard content.": "variável para que sejam substituídos pelo conteúdo da área de transferência.",
"Version": "Versão",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Aviso: Se você atualizar ou alterar seu modelo de incorporação, você precisará reimportar todos os documentos.",
"Web": "Web",
"Web Loader Settings": "Configurações do Carregador da Web",
......
......@@ -63,6 +63,7 @@
"available!": "disponível!",
"Back": "Voltar",
"Bad Response": "Resposta ruim",
"Banners": "",
"Base Model (From)": "",
"before": "antes",
"Being lazy": "Ser preguiçoso",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Digite seu Nome Completo",
"Enter Your Password": "Digite sua Senha",
"Enter Your Role": "Digite sua Função",
"Error": "",
"Experimental": "Experimental",
"Export All Chats (All Users)": "Exportar Todos os Bate-papos (Todos os Usuários)",
"Export Chats": "Exportar Bate-papos",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Importar Prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inclua a flag `--api` ao executar stable-diffusion-webui",
"Info": "",
"Input commands": "Comandos de entrada",
"Interface": "Interface",
"Invalid Tag": "Etiqueta Inválida",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Problemas para acessar o Ollama?",
"TTS Settings": "Configurações TTS",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Digite a URL do Hugging Face Resolve (Download)",
"Uh-oh! There was an issue connecting to {{provider}}.": "Opa! Houve um problema ao conectar-se a {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Tipo de arquivo desconhecido '{{file_type}}', mas aceitando e tratando como texto simples",
......@@ -470,6 +474,7 @@
"variable": "variável",
"variable to have them replaced with clipboard content.": "variável para que sejam substituídos pelo conteúdo da área de transferência.",
"Version": "Versão",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Aviso: Se você atualizar ou alterar seu modelo de vetorização, você precisará reimportar todos os documentos.",
"Web": "Web",
"Web Loader Settings": "Configurações do Carregador da Web",
......
......@@ -63,6 +63,7 @@
"available!": "доступный!",
"Back": "Назад",
"Bad Response": "Недопустимый ответ",
"Banners": "",
"Base Model (From)": "",
"before": "до",
"Being lazy": "ленивый",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Введите ваше полное имя",
"Enter Your Password": "Введите ваш пароль",
"Enter Your Role": "Введите вашу роль",
"Error": "",
"Experimental": "Экспериментальное",
"Export All Chats (All Users)": "Экспортировать все чаты (все пользователи)",
"Export Chats": "Экспортировать чаты",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Импорт подсказок",
"Include `--api` flag when running stable-diffusion-webui": "Добавьте флаг `--api` при запуске stable-diffusion-webui",
"Info": "",
"Input commands": "Введите команды",
"Interface": "Интерфейс",
"Invalid Tag": "Недопустимый тег",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Проблемы с доступом к Ollama?",
"TTS Settings": "Настройки TTS",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Введите URL-адрес Hugging Face Resolve (загрузки)",
"Uh-oh! There was an issue connecting to {{provider}}.": "Упс! Возникла проблема подключения к {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Неизвестный тип файла '{{file_type}}', но принимается и обрабатывается как обычный текст",
......@@ -470,6 +474,7 @@
"variable": "переменная",
"variable to have them replaced with clipboard content.": "переменная, чтобы их заменить содержимым буфера обмена.",
"Version": "Версия",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Предупреждение: Если вы обновите или измените модель эмбеддинга, вам нужно будет повторно импортировать все документы.",
"Web": "Веб",
"Web Loader Settings": "Настройки загрузчика Web",
......
......@@ -63,6 +63,7 @@
"available!": "доступно!",
"Back": "Назад",
"Bad Response": "Лош одговор",
"Banners": "",
"Base Model (From)": "",
"before": "пре",
"Being lazy": "Бити лењ",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Унесите ваше име и презиме",
"Enter Your Password": "Унесите вашу лозинку",
"Enter Your Role": "Унесите вашу улогу",
"Error": "",
"Experimental": "Експериментално",
"Export All Chats (All Users)": "Извези сва ћаскања (сви корисници)",
"Export Chats": "Извези ћаскања",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Увези упите",
"Include `--api` flag when running stable-diffusion-webui": "Укључи `--api` заставицу при покретању stable-diffusion-webui",
"Info": "",
"Input commands": "Унеси наредбе",
"Interface": "Изглед",
"Invalid Tag": "Неисправна ознака",
......@@ -450,6 +453,7 @@
"Top P": "Топ П",
"Trouble accessing Ollama?": "Проблеми са приступом Ollama-и?",
"TTS Settings": "TTS подешавања",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Унесите Hugging Face Resolve (Download) адресу",
"Uh-oh! There was an issue connecting to {{provider}}.": "Упс! Дошло је до проблема при повезивању са {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Непознат тип датотеке '{{file_type}}', али прихваћен и третиран као обичан текст",
......@@ -470,6 +474,7 @@
"variable": "променљива",
"variable to have them replaced with clipboard content.": "променљива за замену са садржајем оставе.",
"Version": "Издање",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Упозорење: ако ажурирате или промените ваш модел уградње, мораћете поново да увезете све документе.",
"Web": "Веб",
"Web Loader Settings": "Подешавања веб учитавача",
......
......@@ -63,6 +63,7 @@
"available!": "tillgänglig!",
"Back": "Tillbaka",
"Bad Response": "Felaktig respons",
"Banners": "",
"Base Model (From)": "",
"before": "før",
"Being lazy": "Lägg till",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Ange ditt fullständiga namn",
"Enter Your Password": "Ange ditt lösenord",
"Enter Your Role": "Ange din roll",
"Error": "",
"Experimental": "Experimentell",
"Export All Chats (All Users)": "Exportera alla chattar (alla användare)",
"Export Chats": "Exportera chattar",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Importera prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inkludera `--api`-flagga när du kör stabil-diffusion-webui",
"Info": "",
"Input commands": "Indatakommandon",
"Interface": "Gränssnitt",
"Invalid Tag": "Ogiltig tagg",
......@@ -450,6 +453,7 @@
"Top P": "Topp P",
"Trouble accessing Ollama?": "Problem med att komma åt Ollama?",
"TTS Settings": "TTS-inställningar",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Skriv Hugging Face Resolve (nedladdning) URL",
"Uh-oh! There was an issue connecting to {{provider}}.": "Oj då! Det uppstod ett problem med att ansluta till {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Okänd filtyp '{{file_type}}', men accepterar och behandlar som vanlig text",
......@@ -470,6 +474,7 @@
"variable": "variabel",
"variable to have them replaced with clipboard content.": "variabel för att få dem ersatta med urklippsinnehåll.",
"Version": "Version",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Varning: Om du uppdaterar eller ändrar din embedding modell måste du importera alla dokument igen.",
"Web": "Webb",
"Web Loader Settings": "Web Loader-inställningar",
......
......@@ -63,6 +63,7 @@
"available!": "mevcut!",
"Back": "Geri",
"Bad Response": "Kötü Yanıt",
"Banners": "",
"Base Model (From)": "",
"before": "önce",
"Being lazy": "Tembelleşiyor",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Tam Adınızı Girin",
"Enter Your Password": "Parolanızı Girin",
"Enter Your Role": "Rolünüzü Girin",
"Error": "",
"Experimental": "Deneysel",
"Export All Chats (All Users)": "Tüm Sohbetleri Dışa Aktar (Tüm Kullanıcılar)",
"Export Chats": "Sohbetleri Dışa Aktar",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Promptları İçe Aktar",
"Include `--api` flag when running stable-diffusion-webui": "stable-diffusion-webui çalıştırılırken `--api` bayrağını dahil edin",
"Info": "",
"Input commands": "Giriş komutları",
"Interface": "Arayüz",
"Invalid Tag": "Geçersiz etiket",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Ollama'ya erişmede sorun mu yaşıyorsunuz?",
"TTS Settings": "TTS Ayarları",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Hugging Face Resolve (Download) URL'sini Yazın",
"Uh-oh! There was an issue connecting to {{provider}}.": "Ah! {{provider}}'a bağlanırken bir sorun oluştu.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Bilinmeyen Dosya Türü '{{file_type}}', ancak düz metin olarak kabul ediliyor ve işleniyor",
......@@ -470,6 +474,7 @@
"variable": "değişken",
"variable to have them replaced with clipboard content.": "panodaki içerikle değiştirilmesi için değişken.",
"Version": "Sürüm",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Uyarı: Gömme modelinizi günceller veya değiştirirseniz, tüm belgeleri yeniden içe aktarmanız gerekecektir.",
"Web": "Web",
"Web Loader Settings": "Web Yükleyici Ayarları",
......
......@@ -63,6 +63,7 @@
"available!": "доступно!",
"Back": "Назад",
"Bad Response": "Неправильна відповідь",
"Banners": "",
"Base Model (From)": "",
"before": "до того, як",
"Being lazy": "Не поспішати",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Введіть ваше ім'я",
"Enter Your Password": "Введіть ваш пароль",
"Enter Your Role": "Введіть вашу роль",
"Error": "",
"Experimental": "Експериментальне",
"Export All Chats (All Users)": "Експортувати всі чати (всі користувачі)",
"Export Chats": "Експортувати чати",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "Імпортувати промти",
"Include `--api` flag when running stable-diffusion-webui": "Включіть прапор `--api` при запуску stable-diffusion-webui",
"Info": "",
"Input commands": "Команди вводу",
"Interface": "Інтерфейс",
"Invalid Tag": "Недійсний тег",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Проблеми з доступом до Ollama?",
"TTS Settings": "Налаштування TTS",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "Введіть URL ресурсу Hugging Face Resolve (завантаження)",
"Uh-oh! There was an issue connecting to {{provider}}.": "Ой! Виникла проблема при підключенні до {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Невідомий тип файлу '{{file_type}}', але приймається та обробляється як звичайний текст",
......@@ -470,6 +474,7 @@
"variable": "змінна",
"variable to have them replaced with clipboard content.": "змінна, щоб замінити їх вмістом буфера обміну.",
"Version": "Версія",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Попередження: Якщо ви оновлюєте або змінюєте модель вбудовування, вам потрібно буде повторно імпортувати всі документи.",
"Web": "Веб",
"Web Loader Settings": "Налаштування веб-завантажувача",
......
......@@ -4,7 +4,7 @@
"(e.g. `sh webui.sh --api`)": "(vd: `sh webui.sh --api`)",
"(latest)": "(mới nhất)",
"{{ models }}": "",
"{{ owner }}: You cannot delete a base model": "",
"{{ owner }}: You cannot delete a base model": "{{ owner }}: Bạn không thể xóa base model",
"{{modelName}} is thinking...": "{{modelName}} đang suy nghĩ...",
"{{user}}'s Chats": "{{user}}'s Chats",
"{{webUIName}} Backend Required": "{{webUIName}} Yêu cầu Backend",
......@@ -15,7 +15,7 @@
"Accurate information": "Thông tin chính xác",
"Add": "Thêm",
"Add a model id": "",
"Add a short description about what this model does": "",
"Add a short description about what this model does": "Thêm mô tả ngắn về những khả năng của model",
"Add a short title for this prompt": "Thêm tiêu đề ngắn cho prompt này",
"Add a tag": "Thêm thẻ (tag)",
"Add custom prompt": "Thêm prompt tùy chỉnh",
......@@ -48,7 +48,7 @@
"API keys": "API Keys",
"April": "Tháng 4",
"Archive": "Lưu trữ",
"Archive All Chats": "",
"Archive All Chats": "Lưu tất cả các cuộc Chat",
"Archived Chats": "bản ghi trò chuyện",
"are allowed - Activate this command by typing": "được phép - Kích hoạt lệnh này bằng cách gõ",
"Are you sure?": "Bạn có chắc chắn không?",
......@@ -63,12 +63,13 @@
"available!": "có sẵn!",
"Back": "Quay lại",
"Bad Response": "Trả lời KHÔNG tốt",
"Banners": "",
"Base Model (From)": "",
"before": "trước",
"Being lazy": "Lười biếng",
"Bypass SSL verification for Websites": "Bỏ qua xác thực SSL cho các trang web",
"Cancel": "Hủy bỏ",
"Capabilities": "",
"Capabilities": "Năng lực",
"Change Password": "Đổi Mật khẩu",
"Chat": "Trò chuyện",
"Chat Bubble UI": "Bảng chat",
......@@ -110,7 +111,7 @@
"Copy Link": "Sao chép link",
"Copying to clipboard was successful!": "Sao chép vào clipboard thành công!",
"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':": "Tạo một cụm từ súc tích, 3-5 từ làm tiêu đề cho truy vấn sau, tuân thủ nghiêm ngặt giới hạn 3-5 từ và tránh sử dụng từ 'tiêu đề':",
"Create a model": "",
"Create a model": "Tạo model",
"Create Account": "Tạo Tài khoản",
"Create new key": "Tạo key mới",
"Create new secret key": "Tạo key bí mật mới",
......@@ -119,7 +120,7 @@
"Current Model": "Mô hình hiện tại",
"Current Password": "Mật khẩu hiện tại",
"Custom": "Tùy chỉnh",
"Customize models for a specific purpose": "",
"Customize models for a specific purpose": "Tùy chỉnh model cho những mục đích riêng",
"Dark": "Tối",
"Database": "Cơ sở dữ liệu",
"December": "Tháng 12",
......@@ -133,17 +134,17 @@
"delete": "xóa",
"Delete": "Xóa",
"Delete a model": "Xóa mô hình",
"Delete All Chats": "",
"Delete All Chats": "Xóa mọi cuộc Chat",
"Delete chat": "Xóa nội dung chat",
"Delete Chat": "Xóa chat",
"delete this link": "Xóa link này",
"Delete User": "Xóa người dùng",
"Deleted {{deleteModelTag}}": "Đã xóa {{deleteModelTag}}",
"Deleted {{name}}": "",
"Deleted {{name}}": "Đã xóa {{name}}",
"Description": "Mô tả",
"Didn't fully follow instructions": "Không tuân theo chỉ dẫn một cách đầy đủ",
"Disabled": "Đã vô hiệu hóa",
"Discover a model": "",
"Discover a model": "Khám phá model",
"Discover a prompt": "Khám phá thêm prompt mới",
"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",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "Nhập Họ và Tên của bạn",
"Enter Your Password": "Nhập Mật khẩu của bạn",
"Enter Your Role": "Nhập vai trò của bạn",
"Error": "Lỗi",
"Experimental": "Thử nghiệm",
"Export All Chats (All Users)": "Tải về tất cả nội dung chat (tất cả mọi người)",
"Export Chats": "Tải nội dung chat về máy",
......@@ -214,7 +216,7 @@
"Good Response": "Trả lời tốt",
"h:mm a": "h:mm a",
"has no conversations.": "không có hội thoại",
"Hello, {{name}}": "Xin chào, {{name}}",
"Hello, {{name}}": "Xin chào {{name}}",
"Help": "Trợ giúp",
"Hide": "Ẩn",
"How can I help you today?": "Tôi có thể giúp gì cho bạn hôm nay?",
......@@ -225,9 +227,10 @@
"Images": "Hình ảnh",
"Import Chats": "Nạp lại nội dung chat",
"Import Documents Mapping": "Nạp cấu trúc tài liệu",
"Import Models": "",
"Import Models": "Nạp model",
"Import Prompts": "Nạp các prompt lên hệ thống",
"Include `--api` flag when running stable-diffusion-webui": "Bao gồm flag `--api` khi chạy stable-diffusion-webui",
"Info": "Thông tin",
"Input commands": "Nhập các câu lệnh",
"Interface": "Giao diện",
"Invalid Tag": "Tag không hợp lệ",
......@@ -279,8 +282,8 @@
"More": "Thêm",
"Name": "Tên",
"Name Tag": "Tên Thẻ",
"Name your model": "",
"New Chat": "Tạo cuộc trò chuyện mới",
"Name your model": "Tên model",
"New Chat": "Tạo chat mới",
"New Password": "Mật khẩu mới",
"No results found": "Không tìm thấy kết quả",
"No search query generated": "",
......@@ -364,16 +367,16 @@
"Scan for documents from {{path}}": "Quét tài liệu từ đường dẫn: {{path}}",
"Search": "Tìm kiếm",
"Search a model": "Tìm model",
"Search Chats": "",
"Search Chats": "Tìm kiếm các cuộc Chat",
"Search Documents": "Tìm tài liệu",
"Search Models": "",
"Search Models": "Tìm model",
"Search Prompts": "Tìm prompt",
"Search Results": "",
"Searching the web for '{{searchQuery}}'": "",
"See readme.md for instructions": "Xem readme.md để biết hướng dẫn",
"See what's new": "Xem những cập nhật mới",
"Seed": "Seed",
"Select a base model": "",
"Select a base model": "Chọn một base model",
"Select a mode": "Chọn một chế độ",
"Select a model": "Chọn mô hình",
"Select an Ollama instance": "Chọn một thực thể Ollama",
......@@ -422,7 +425,7 @@
"System Prompt": "Prompt Hệ thống (System Prompt)",
"Tags": "Thẻ",
"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": "Temperature",
"Temperature": "Mức độ sáng tạo",
"Template": "Mẫu",
"Text Completion": "Hoàn tất Văn bản",
"Text-to-Speech Engine": "Công cụ Chuyển Văn bản thành Giọng nói",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "Gặp vấn đề khi truy cập Ollama?",
"TTS Settings": "Cài đặt Chuyển văn bản thành Giọng nói",
"Type": "Kiểu",
"Type Hugging Face Resolve (Download) URL": "Nhập URL Hugging Face Resolve (Tải xuống)",
"Uh-oh! There was an issue connecting to {{provider}}.": "Ồ! Đã xảy ra sự cố khi kết nối với {{provider}}.",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Loại Tệp Không xác định '{{file_type}}', nhưng đang chấp nhận và xử lý như văn bản thô",
......@@ -470,6 +474,7 @@
"variable": "biến",
"variable to have them replaced with clipboard content.": "biến để có chúng được thay thế bằng nội dung clipboard.",
"Version": "Version",
"Warning": "Cảnh báo",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Cảnh báo: Nếu cập nhật hoặc thay đổi embedding model, bạn sẽ cần cập nhật lại tất cả tài liệu.",
"Web": "Web",
"Web Loader Settings": "Cài đặt Web Loader",
......@@ -488,7 +493,7 @@
"Write a summary in 50 words that summarizes [topic or keyword].": "Viết một tóm tắt trong vòng 50 từ cho [chủ đề hoặc từ khóa].",
"Yesterday": "Hôm qua",
"You": "Bạn",
"You cannot clone a base model": "",
"You cannot clone a base model": "Bạn không thể nhân bản base model",
"You have no archived conversations.": "Bạn chưa lưu trữ một nội dung chat nào",
"You have shared this chat": "Bạn vừa chia sẻ chat này",
"You're a helpful assistant.": "Bạn là một trợ lý hữu ích.",
......
......@@ -63,6 +63,7 @@
"available!": "可用!",
"Back": "返回",
"Bad Response": "不良响应",
"Banners": "",
"Base Model (From)": "",
"before": "之前",
"Being lazy": "懒惰",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "输入您的全名",
"Enter Your Password": "输入您的密码",
"Enter Your Role": "输入您的角色",
"Error": "",
"Experimental": "实验性",
"Export All Chats (All Users)": "导出所有聊天(所有用户)",
"Export Chats": "导出聊天",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "导入提示",
"Include `--api` flag when running stable-diffusion-webui": "运行 stable-diffusion-webui 时包含 `--api` 标志",
"Info": "",
"Input commands": "输入命令",
"Interface": "界面",
"Invalid Tag": "无效标签",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "访问 Ollama 时遇到问题?",
"TTS Settings": "文本转语音设置",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "输入 Hugging Face 解析(下载)URL",
"Uh-oh! There was an issue connecting to {{provider}}.": "哎呀!连接到{{provider}}时出现问题。",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "未知文件类型'{{file_type}}',将视为纯文本进行处理",
......@@ -470,6 +474,7 @@
"variable": "变量",
"variable to have them replaced with clipboard content.": "变量将被剪贴板内容替换。",
"Version": "版本",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "警告: 如果更新或更改 embedding 模型,则需要重新导入所有文档。",
"Web": "网页",
"Web Loader Settings": "Web 加载器设置",
......
......@@ -63,6 +63,7 @@
"available!": "可以使用!",
"Back": "返回",
"Bad Response": "錯誤回應",
"Banners": "",
"Base Model (From)": "",
"before": "前",
"Being lazy": "懶人模式",
......@@ -188,6 +189,7 @@
"Enter Your Full Name": "輸入你的全名",
"Enter Your Password": "輸入你的密碼",
"Enter Your Role": "輸入你的角色",
"Error": "",
"Experimental": "實驗功能",
"Export All Chats (All Users)": "匯出所有聊天紀錄(所有使用者)",
"Export Chats": "匯出聊天紀錄",
......@@ -228,6 +230,7 @@
"Import Models": "",
"Import Prompts": "匯入提示詞",
"Include `--api` flag when running stable-diffusion-webui": "在運行 stable-diffusion-webui 時加上 `--api` 標誌",
"Info": "",
"Input commands": "輸入命令",
"Interface": "介面",
"Invalid Tag": "無效標籤",
......@@ -450,6 +453,7 @@
"Top P": "Top P",
"Trouble accessing Ollama?": "存取 Ollama 時遇到問題?",
"TTS Settings": "文字轉語音設定",
"Type": "",
"Type Hugging Face Resolve (Download) URL": "輸入 Hugging Face 解析後的(下載)URL",
"Uh-oh! There was an issue connecting to {{provider}}.": "哎呀!連線到 {{provider}} 時出現問題。",
"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "未知的文件類型 '{{file_type}}',但接受並視為純文字",
......@@ -470,6 +474,7 @@
"variable": "變數",
"variable to have them replaced with clipboard content.": "變數將替換為剪貼簿內容",
"Version": "版本",
"Warning": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "警告:如果更新或更改你的嵌入模型,則需要重新導入所有文件",
"Web": "網頁",
"Web Loader Settings": "Web 載入器設定",
......
import { APP_NAME } from '$lib/constants';
import { type Writable, writable } from 'svelte/store';
import type { GlobalModelConfig, ModelConfig } from '$lib/apis';
import type { Banner } from '$lib/types';
// Backend
export const WEBUI_NAME = writable(APP_NAME);
......@@ -36,6 +37,8 @@ export const documents = writable([
}
]);
export const banners: Writable<Banner[]> = writable([]);
export const settings: Writable<Settings> = writable({});
export const showSidebar = writable(false);
......@@ -126,16 +129,21 @@ type Prompt = {
};
type Config = {
status?: boolean;
name?: string;
version?: string;
default_locale?: string;
images?: boolean;
default_models?: string[];
default_prompt_suggestions?: PromptSuggestion[];
auth_trusted_header?: boolean;
model_config?: GlobalModelConfig;
status: boolean;
name: string;
version: string;
default_locale: string;
default_models: string[];
default_prompt_suggestions: PromptSuggestion[];
features: {
auth: boolean;
auth_trusted_header: boolean;
enable_signup: boolean;
enable_websearch?: boolean;
enable_image_generation: boolean;
enable_admin_export: boolean;
enable_community_sharing: boolean;
};
};
type PromptSuggestion = {
......
export type Banner = {
id: string;
type: string;
title?: string;
content: string;
url?: string;
dismissible?: boolean;
timestamp: number;
};
......@@ -22,6 +22,7 @@
prompts,
documents,
tags,
banners,
showChangelog,
config
} from '$lib/stores';
......@@ -33,6 +34,8 @@
import ShortcutsModal from '$lib/components/chat/ShortcutsModal.svelte';
import ChangelogModal from '$lib/components/ChangelogModal.svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import { getBanners } from '$lib/apis/configs';
import { getUserSettings } from '$lib/apis/users';
const i18n = getContext('i18n');
......@@ -70,7 +73,13 @@
// IndexedDB Not Found
}
settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
const userSettings = await getUserSettings(localStorage.token);
if (userSettings) {
await settings.set(userSettings.ui);
} else {
await settings.set(JSON.parse(localStorage.getItem('settings') ?? '{}'));
}
await Promise.all([
(async () => {
......@@ -82,6 +91,9 @@
(async () => {
documents.set(await getDocs(localStorage.token));
})(),
(async () => {
banners.set(await getBanners(localStorage.token));
})(),
(async () => {
tags.set(await getAllChatTags(localStorage.token));
})()
......
......@@ -60,7 +60,7 @@
await goto('/');
}
loaded = true;
if (($config?.auth_trusted_header ?? false) || $config?.auth === false) {
if (($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false) {
await signInHandler();
}
});
......@@ -102,7 +102,7 @@
</div> -->
<div class="w-full sm:max-w-md px-10 min-h-screen flex flex-col text-center">
{#if ($config?.auth_trusted_header ?? false) || $config?.auth === false}
{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
<div class=" my-auto pb-10 w-full">
<div
class="flex items-center justify-center gap-3 text-xl sm:text-2xl text-center font-bold dark:text-gray-200"
......@@ -194,7 +194,7 @@
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}
</button>
{#if $config.enable_signup}
{#if $config?.features.enable_signup}
<div class=" mt-4 text-sm text-center">
{mode === 'signin'
? $i18n.t("Don't have an account?")
......
......@@ -98,12 +98,6 @@
: convertMessagesToHistory(chatContent.messages);
title = chatContent.title;
let _settings = JSON.parse(localStorage.getItem('settings') ?? '{}');
await settings.set({
..._settings,
system: chatContent.system ?? _settings.system,
options: chatContent.options ?? _settings.options
});
autoScroll = true;
await tick();
......
......@@ -18,7 +18,8 @@ import { defineConfig } from 'vite';
export default defineConfig({
plugins: [sveltekit()],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version)
APP_VERSION: JSON.stringify(process.env.npm_package_version),
APP_BUILD_HASH: JSON.stringify(process.env.APP_BUILD_HASH || 'dev-build')
},
build: {
sourcemap: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment