"vscode:/vscode.git/clone" did not exist on "8516999495114926c9838c2d6e0feb580d4d983f"
Commit 1a16f8fb authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

Merge remote-tracking branch 'origin/dev' into feat/model-config

parents 197af126 009e85d5
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "დაამატე მოკლე აღწერა იმის შესახებ, თუ რას აკეთებს ეს მოდელური ფაილი",
"Add a short title for this prompt": "დაამატე მოკლე სათაური ამ მოთხოვნისთვის",
"Add a tag": "დაამატე ტეგი",
"Add custom prompt": "",
"Add custom prompt": "პირველადი მოთხოვნის დამატება",
"Add Docs": "დოკუმენტის დამატება",
"Add Files": "ფაილების დამატება",
"Add Memory": "",
......@@ -51,9 +51,8 @@
"Archived Chats": "ჩატის ისტორიის არქივი",
"are allowed - Activate this command by typing": "დაშვებულია - ბრძანების გასააქტიურებლად აკრიფეთ:",
"Are you sure?": "დარწმუნებული ხარ?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attention to detail": "",
"Attach file": "ფაილის ჩაწერა",
"Attention to detail": "დეტალური მიმართვა",
"Audio": "ხმოვანი",
"August": "",
"Auto-playback response": "ავტომატური დაკვრის პასუხი",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "მოდელური ფაილების იმპორტი",
"Import Prompts": "მოთხოვნების იმპორტი",
"Include `--api` flag when running stable-diffusion-webui": "ჩართეთ `--api` დროშა stable-diffusion-webui-ის გაშვებისას",
"Input commands": "",
"Input commands": "შეყვანით ბრძანებებს",
"Interface": "ინტერფეისი",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "მაქსიმალური ტოკენები",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "მაქსიმუმ 3 მოდელის ჩამოტვირთვა შესაძლებელია ერთდროულად. Გთხოვთ სცადოთ მოგვიანებით.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "რეჟიმის არჩევა",
"Select a model": "მოდელის არჩევა",
"Select an Ollama instance": "",
"Select model": "",
"Select model": "მოდელის არჩევა",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "შეტყობინების გაგზავნა",
......@@ -491,7 +491,6 @@
"variable": "ცვლადი",
"variable to have them replaced with clipboard content.": "ცვლადი, რომ შეცვალოს ისინი ბუფერში შიგთავსით.",
"Version": "ვერსია",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "ვები",
"Web Loader Settings": "",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "이 모델파일이 하는 일에 대한 간단한 설명 추가",
"Add a short title for this prompt": "이 프롬프트에 대한 간단한 제목 추가",
"Add a tag": "태그 추가",
"Add custom prompt": "",
"Add custom prompt": "프롬프트 추가",
"Add Docs": "문서 추가",
"Add Files": "파일 추가",
"Add Memory": "",
......@@ -51,9 +51,8 @@
"Archived Chats": "채팅 기록 아카이브",
"are allowed - Activate this command by typing": "허용됩니다 - 이 명령을 활성화하려면 입력하세요.",
"Are you sure?": "확실합니까?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attention to detail": "",
"Attach file": "파일 첨부",
"Attention to detail": "상세한 주의",
"Audio": "오디오",
"August": "",
"Auto-playback response": "응답 자동 재생",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "모델파일 가져오기",
"Import Prompts": "프롬프트 가져오기",
"Include `--api` flag when running stable-diffusion-webui": "",
"Input commands": "",
"Input commands": "입력 명령",
"Interface": "인터페이스",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "최대 토큰 수",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "최대 3개의 모델을 동시에 다운로드할 수 있습니다. 나중에 다시 시도하세요.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "모드 선택",
"Select a model": "모델 선택",
"Select an Ollama instance": "Ollama 인스턴스 선택",
"Select model": "",
"Select model": "모델 선택",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "메시지 보내기",
......@@ -491,7 +491,6 @@
"variable": "변수",
"variable to have them replaced with clipboard content.": "변수를 사용하여 클립보드 내용으로 바꾸세요.",
"Version": "버전",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "웹",
"Web Loader Settings": "",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Voeg een korte beschrijving toe over wat dit modelfile doet",
"Add a short title for this prompt": "Voeg een korte titel toe voor deze prompt",
"Add a tag": "Voeg een tag toe",
"Add custom prompt": "",
"Add custom prompt": "Voeg een aangepaste prompt toe",
"Add Docs": "Voeg Docs toe",
"Add Files": "Voege Bestanden toe",
"Add Memory": "",
......@@ -51,8 +51,7 @@
"Archived Chats": "chatrecord",
"are allowed - Activate this command by typing": "zijn toegestaan - Activeer deze commando door te typen",
"Are you sure?": "Zeker weten?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attach file": "Voeg een bestand toe",
"Attention to detail": "",
"Audio": "Audio",
"August": "",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "Importeer Modelfiles",
"Import Prompts": "Importeer Prompts",
"Include `--api` flag when running stable-diffusion-webui": "Voeg `--api` vlag toe bij het uitvoeren van stable-diffusion-webui",
"Input commands": "",
"Input commands": "Voer commando's in",
"Interface": "Interface",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "Max Tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maximaal 3 modellen kunnen tegelijkertijd worden gedownload. Probeer het later opnieuw.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "Selecteer een modus",
"Select a model": "Selecteer een model",
"Select an Ollama instance": "Selecteer een Ollama instantie",
"Select model": "",
"Select model": "Selecteer een model",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "Stuur een Bericht",
......@@ -491,7 +491,6 @@
"variable": "variabele",
"variable to have them replaced with clipboard content.": "variabele om ze te laten vervangen door klembord inhoud.",
"Version": "Versie",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "Web",
"Web Loader Settings": "",
......
......@@ -51,7 +51,6 @@
"Archived Chats": "ਆਰਕਾਈਵ ਕੀਤੀਆਂ ਗੱਲਾਂ",
"are allowed - Activate this command by typing": "ਅਨੁਮਤ ਹਨ - ਇਸ ਕਮਾਂਡ ਨੂੰ ਟਾਈਪ ਕਰਕੇ ਸਰਗਰਮ ਕਰੋ",
"Are you sure?": "ਕੀ ਤੁਸੀਂ ਯਕੀਨਨ ਹੋ?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "ਫਾਈਲ ਜੋੜੋ",
"Attention to detail": "ਵੇਰਵੇ 'ਤੇ ਧਿਆਨ",
"Audio": "ਆਡੀਓ",
......@@ -266,6 +265,7 @@
"Max Tokens": "ਅਧਿਕਤਮ ਟੋਕਨ",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "ਇੱਕ ਸਮੇਂ ਵਿੱਚ ਵੱਧ ਤੋਂ ਵੱਧ 3 ਮਾਡਲ ਡਾਊਨਲੋਡ ਕੀਤੇ ਜਾ ਸਕਦੇ ਹਨ। ਕਿਰਪਾ ਕਰਕੇ ਬਾਅਦ ਵਿੱਚ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।",
"May": "ਮਈ",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "ਘੱਟੋ-ਘੱਟ ਸਕੋਰ",
......@@ -491,7 +491,6 @@
"variable": "ਵੈਰੀਏਬਲ",
"variable to have them replaced with clipboard content.": "ਕਲਿੱਪਬੋਰਡ ਸਮੱਗਰੀ ਨਾਲ ਬਦਲਣ ਲਈ ਵੈਰੀਏਬਲ।",
"Version": "ਵਰਜਨ",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "ਚੇਤਾਵਨੀ: ਜੇ ਤੁਸੀਂ ਆਪਣਾ ਐਮਬੈੱਡਿੰਗ ਮਾਡਲ ਅੱਪਡੇਟ ਜਾਂ ਬਦਲਦੇ ਹੋ, ਤਾਂ ਤੁਹਾਨੂੰ ਸਾਰੇ ਡਾਕੂਮੈਂਟ ਮੁੜ ਆਯਾਤ ਕਰਨ ਦੀ ਲੋੜ ਹੋਵੇਗੀ।",
"Web": "ਵੈਬ",
"Web Loader Settings": "ਵੈਬ ਲੋਡਰ ਸੈਟਿੰਗਾਂ",
......
......@@ -51,7 +51,6 @@
"Archived Chats": "Zarchiwizowane czaty",
"are allowed - Activate this command by typing": "są dozwolone - Aktywuj to polecenie, wpisując",
"Are you sure?": "Jesteś pewien?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "Dołącz plik",
"Attention to detail": "Dbałość o szczegóły",
"Audio": "Dźwięk",
......@@ -266,6 +265,7 @@
"Max Tokens": "Maksymalna liczba tokenów",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maksymalnie 3 modele można pobierać jednocześnie. Spróbuj ponownie później.",
"May": "Maj",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "Minimalny wynik",
......@@ -491,7 +491,6 @@
"variable": "zmienna",
"variable to have them replaced with clipboard content.": "zmienna która zostanie zastąpiona zawartością schowka.",
"Version": "Wersja",
"View": "",
"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",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Adicione uma breve descrição sobre o que este arquivo de modelo faz",
"Add a short title for this prompt": "Adicione um título curto para este prompt",
"Add a tag": "Adicionar uma tag",
"Add custom prompt": "",
"Add custom prompt": "Adicionar prompt personalizado",
"Add Docs": "Adicionar Documentos",
"Add Files": "Adicionar Arquivos",
"Add Memory": "",
......@@ -51,8 +51,7 @@
"Archived Chats": "Bate-papos arquivados",
"are allowed - Activate this command by typing": "são permitidos - Ative este comando digitando",
"Are you sure?": "Tem certeza?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attach file": "Anexar arquivo",
"Attention to detail": "",
"Audio": "Áudio",
"August": "",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "Importar Arquivos de Modelo",
"Import Prompts": "Importar Prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inclua a flag `--api` ao executar stable-diffusion-webui",
"Input commands": "",
"Input commands": "Comandos de entrada",
"Interface": "Interface",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "Máximo de Tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Máximo de 3 modelos podem ser baixados simultaneamente. Tente novamente mais tarde.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "Selecione um modo",
"Select a model": "Selecione um modelo",
"Select an Ollama instance": "Selecione uma instância Ollama",
"Select model": "",
"Select model": "Selecione um modelo",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "Enviar uma Mensagem",
......@@ -491,7 +491,6 @@
"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",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "Web",
"Web Loader Settings": "",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Adicione uma breve descrição sobre o que este arquivo de modelo faz",
"Add a short title for this prompt": "Adicione um título curto para este prompt",
"Add a tag": "Adicionar uma tag",
"Add custom prompt": "",
"Add custom prompt": "Adicionar um prompt curto",
"Add Docs": "Adicionar Documentos",
"Add Files": "Adicionar Arquivos",
"Add Memory": "",
......@@ -51,8 +51,7 @@
"Archived Chats": "Bate-papos arquivados",
"are allowed - Activate this command by typing": "são permitidos - Ative este comando digitando",
"Are you sure?": "Tem certeza?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attach file": "Anexar arquivo",
"Attention to detail": "",
"Audio": "Áudio",
"August": "",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "Importar Arquivos de Modelo",
"Import Prompts": "Importar Prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inclua a flag `--api` ao executar stable-diffusion-webui",
"Input commands": "",
"Input commands": "Comandos de entrada",
"Interface": "Interface",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "Máximo de Tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Máximo de 3 modelos podem ser baixados simultaneamente. Tente novamente mais tarde.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "Selecione um modo",
"Select a model": "Selecione um modelo",
"Select an Ollama instance": "Selecione uma instância Ollama",
"Select model": "",
"Select model": "Selecione um modelo",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "Enviar uma Mensagem",
......@@ -491,7 +491,6 @@
"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",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "Web",
"Web Loader Settings": "",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Добавьте краткое описание, что делает этот моделфайл",
"Add a short title for this prompt": "Добавьте краткий заголовок для этого ввода",
"Add a tag": "Добавьте тэг",
"Add custom prompt": "",
"Add custom prompt": "Добавьте пользовательский ввод",
"Add Docs": "Добавьте документы",
"Add Files": "Добавьте файлы",
"Add Memory": "",
......@@ -51,9 +51,8 @@
"Archived Chats": "запис на чат",
"are allowed - Activate this command by typing": "разрешено - активируйте эту команду вводом",
"Are you sure?": "Вы уверены?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attention to detail": "",
"Attach file": "Прикрепить файл",
"Attention to detail": "детализированный",
"Audio": "Аудио",
"August": "",
"Auto-playback response": "Автоматическое воспроизведение ответа",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "Импорт файлов модели",
"Import Prompts": "Импорт подсказок",
"Include `--api` flag when running stable-diffusion-webui": "Добавьте флаг `--api` при запуске stable-diffusion-webui",
"Input commands": "",
"Input commands": "Введите команды",
"Interface": "Интерфейс",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "Максимальное количество токенов",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Максимальное количество моделей для загрузки одновременно - 3. Пожалуйста, попробуйте позже.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "Выберите режим",
"Select a model": "Выберите модель",
"Select an Ollama instance": "Выберите экземпляр Ollama",
"Select model": "",
"Select model": "Выберите модель",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "Отправить сообщение",
......@@ -491,7 +491,6 @@
"variable": "переменная",
"variable to have them replaced with clipboard content.": "переменная, чтобы их заменить содержимым буфера обмена.",
"Version": "Версия",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "Веб",
"Web Loader Settings": "",
......
......@@ -51,7 +51,6 @@
"Archived Chats": "Архивирана ћаскања",
"are allowed - Activate this command by typing": "су дозвољени - Покрените ову наредбу уношењем",
"Are you sure?": "Да ли сте сигурни?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "Приложи датотеку",
"Attention to detail": "Пажња на детаље",
"Audio": "Звук",
......@@ -266,6 +265,7 @@
"Max Tokens": "Највише жетона",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Највише 3 модела могу бити преузета истовремено. Покушајте поново касније.",
"May": "Мај",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "Памћење",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "Поруке које пошаљете након стварања ваше везе неће бити подељене. Корисници са URL-ом ће моћи да виде дељено ћаскање.",
"Minimum Score": "Најмањи резултат",
......@@ -491,7 +491,6 @@
"variable": "променљива",
"variable to have them replaced with clipboard content.": "променљива за замену са садржајем оставе.",
"Version": "Издање",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Упозорење: ако ажурирате или промените ваш модел уградње, мораћете поново да увезете све документе.",
"Web": "Веб",
"Web Loader Settings": "Подешавања веб учитавача",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Lägg till en kort beskrivning av vad den här modelfilen gör",
"Add a short title for this prompt": "Lägg till en kort titel för denna prompt",
"Add a tag": "Lägg till en tagg",
"Add custom prompt": "",
"Add custom prompt": "Lägg till en anpassad prompt",
"Add Docs": "Lägg till dokument",
"Add Files": "Lägg till filer",
"Add Memory": "",
......@@ -51,9 +51,8 @@
"Archived Chats": "",
"are allowed - Activate this command by typing": "är tillåtna - Aktivera detta kommando genom att skriva",
"Are you sure?": "Är du säker?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attention to detail": "",
"Attach file": "Bifoga fil",
"Attention to detail": "Detaljerad uppmärksamhet",
"Audio": "Ljud",
"August": "",
"Auto-playback response": "Automatisk uppspelning",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "Importera modelfiler",
"Import Prompts": "Importera prompts",
"Include `--api` flag when running stable-diffusion-webui": "Inkludera `--api`-flagga när du kör stabil-diffusion-webui",
"Input commands": "",
"Input commands": "Indatakommandon",
"Interface": "Gränssnitt",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "Max antal tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Högst 3 modeller kan laddas ner samtidigt. Vänligen försök igen senare.",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "Välj ett läge",
"Select a model": "Välj en modell",
"Select an Ollama instance": "Välj en Ollama-instans",
"Select model": "",
"Select model": "Välj en modell",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "Skicka ett meddelande",
......@@ -491,7 +491,6 @@
"variable": "variabel",
"variable to have them replaced with clipboard content.": "variabel för att få dem ersatta med urklippsinnehåll.",
"Version": "Version",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "Webb",
"Web Loader Settings": "",
......
......@@ -51,7 +51,6 @@
"Archived Chats": "Arşivlenmiş Sohbetler",
"are allowed - Activate this command by typing": "izin verilir - Bu komutu yazarak etkinleştirin",
"Are you sure?": "Emin misiniz?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "Dosya ekle",
"Attention to detail": "Ayrıntılara dikkat",
"Audio": "Ses",
......@@ -266,6 +265,7 @@
"Max Tokens": "Maksimum Token",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Aynı anda en fazla 3 model indirilebilir. Lütfen daha sonra tekrar deneyin.",
"May": "Mayıs",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "Minimum Skor",
......@@ -491,7 +491,6 @@
"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",
"View": "",
"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ı",
......
......@@ -51,7 +51,6 @@
"Archived Chats": "Архівовані чати",
"are allowed - Activate this command by typing": "дозволено - активізуйте цю команду набором",
"Are you sure?": "Ви впевнені?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "Прикріпити файл",
"Attention to detail": "Увага до деталей",
"Audio": "Аудіо",
......@@ -266,6 +265,7 @@
"Max Tokens": "Максимальна кількість токенів",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Максимум 3 моделі можна завантажити одночасно. Будь ласка, спробуйте пізніше.",
"May": "Травень",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "Мінімальний бал",
......@@ -491,7 +491,6 @@
"variable": "змінна",
"variable to have them replaced with clipboard content.": "змінна, щоб замінити їх вмістом буфера обміну.",
"Version": "Версія",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "Попередження: Якщо ви оновлюєте або змінюєте модель вбудовування, вам потрібно буде повторно імпортувати всі документи.",
"Web": "Веб",
"Web Loader Settings": "Налаштування веб-завантажувача",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "Thêm mô tả ngắn về việc tệp mô tả mô hình (modelfile) này làm gì",
"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": "",
"Add custom prompt": "Thêm prompt tùy chỉnh",
"Add Docs": "Thêm tài liệu",
"Add Files": "Thêm tệp",
"Add Memory": "",
......@@ -51,7 +51,6 @@
"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?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "Đính kèm file",
"Attention to detail": "Có sự chú ý đến chi tiết của vấn đề",
"Audio": "Âm thanh",
......@@ -266,6 +265,7 @@
"Max Tokens": "Max Tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Tối đa 3 mô hình có thể được tải xuống cùng lúc. Vui lòng thử lại sau.",
"May": "Tháng 5",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "Score tối thiểu",
......@@ -491,7 +491,6 @@
"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",
"View": "",
"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",
......
......@@ -51,8 +51,7 @@
"Archived Chats": "聊天记录存档",
"are allowed - Activate this command by typing": "允许 - 通过输入来激活这个命令",
"Are you sure?": "你确定吗?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "附件",
"Attach file": "添加文件",
"Attention to detail": "注重细节",
"Audio": "音频",
"August": "八月",
......@@ -266,6 +265,7 @@
"Max Tokens": "最大令牌数",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可以同时下载 3 个模型,请稍后重试。",
"May": "五月",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "最低分",
......@@ -491,7 +491,6 @@
"variable": "变量",
"variable to have them replaced with clipboard content.": "变量将被剪贴板内容替换。",
"Version": "版本",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "警告: 如果更新或更改 embedding 模型,则需要重新导入所有文档。",
"Web": "网页",
"Web Loader Settings": "Web 加载器设置",
......
......@@ -17,7 +17,7 @@
"Add a short description about what this modelfile does": "為這個 Modelfile 添加一段簡短的描述",
"Add a short title for this prompt": "為這個提示詞添加一個簡短的標題",
"Add a tag": "新增標籤",
"Add custom prompt": "",
"Add custom prompt": "新增自定義提示詞",
"Add Docs": "新增文件",
"Add Files": "新增檔案",
"Add Memory": "",
......@@ -51,8 +51,7 @@
"Archived Chats": "聊天記錄存檔",
"are allowed - Activate this command by typing": "是允許的 - 透過輸入",
"Are you sure?": "你確定嗎?",
"As you chat with LLMs, the details and preferences it remembers will be shown here.": "",
"Attach file": "",
"Attach file": "附加檔案",
"Attention to detail": "",
"Audio": "音訊",
"August": "",
......@@ -237,7 +236,7 @@
"Import Modelfiles": "匯入 Modelfiles",
"Import Prompts": "匯入提示詞",
"Include `--api` flag when running stable-diffusion-webui": "在運行 stable-diffusion-webui 時加上 `--api` 標誌",
"Input commands": "",
"Input commands": "輸入命令",
"Interface": "介面",
"Invalid Tag": "",
"Is Model Vision Capable": "",
......@@ -266,6 +265,7 @@
"Max Tokens": "最大 Token 數",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "最多可以同時下載 3 個模型。請稍後再試。",
"May": "",
"Memories accessible by LLMs will be shown here.": "",
"Memory": "",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "",
"Minimum Score": "",
......@@ -396,7 +396,7 @@
"Select a mode": "選擇模式",
"Select a model": "選擇一個模型",
"Select an Ollama instance": "選擇 Ollama 實例",
"Select model": "",
"Select model": "選擇模型",
"Selected models do not support image inputs": "",
"Send": "",
"Send a Message": "傳送訊息",
......@@ -491,7 +491,6 @@
"variable": "變數",
"variable to have them replaced with clipboard content.": "變數將替換為剪貼簿內容。",
"Version": "版本",
"View": "",
"Warning: If you update or change your embedding model, you will need to re-import all documents.": "",
"Web": "網頁",
"Web Loader Settings": "",
......
......@@ -42,6 +42,7 @@
import { LITELLM_API_BASE_URL, OLLAMA_API_BASE_URL, OPENAI_API_BASE_URL } from '$lib/constants';
import { WEBUI_BASE_URL } from '$lib/constants';
import { createOpenAITextStream } from '$lib/apis/streaming';
import { queryMemory } from '$lib/apis/memories';
const i18n = getContext('i18n');
......@@ -255,6 +256,28 @@
const sendPrompt = async (prompt, parentId, modelId = null) => {
const _chatId = JSON.parse(JSON.stringify($chatId));
let userContext = null;
if ($settings?.memory ?? false) {
const res = await queryMemory(localStorage.token, prompt).catch((error) => {
toast.error(error);
return null;
});
if (res) {
if (res.documents[0].length > 0) {
userContext = res.documents.reduce((acc, doc, index) => {
const createdAtTimestamp = res.metadatas[index][0].created_at;
const createdAtDate = new Date(createdAtTimestamp * 1000).toISOString().split('T')[0];
acc.push(`${index + 1}. [${createdAtDate}]. ${doc[0]}`);
return acc;
}, []);
}
console.log(userContext);
}
}
await Promise.all(
(modelId
? [modelId]
......@@ -276,6 +299,38 @@
modelName: model.custom_info?.name ?? model.name ?? model.id
})
);
// Create response message
let responseMessageId = uuidv4();
let responseMessage = {
parentId: parentId,
id: responseMessageId,
childrenIds: [],
role: 'assistant',
content: '',
model: model.id,
userContext: userContext,
timestamp: Math.floor(Date.now() / 1000) // Unix epoch
};
// Add message to history and Set currentId to messageId
history.messages[responseMessageId] = responseMessage;
history.currentId = responseMessageId;
// Append messageId to childrenIds of parent message
if (parentId !== null) {
history.messages[parentId].childrenIds = [
...history.messages[parentId].childrenIds,
responseMessageId
];
}
if (model?.external) {
await sendPromptOpenAI(model, prompt, responseMessageId, _chatId);
} else if (model) {
await sendPromptOllama(model, prompt, responseMessageId, _chatId);
}
} else {
toast.error($i18n.t(`Model {{modelId}} not found`, { modelId }));
}
// Create response message
......@@ -329,10 +384,13 @@
scrollToBottom();
const messagesBody = [
$settings.system
$settings.system || (responseMessage?.userContext ?? null)
? {
role: 'system',
content: $settings.system
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
: ''
}
: undefined,
...messages
......@@ -585,10 +643,13 @@
model: model.id,
stream: true,
messages: [
$settings.system
$settings.system || (responseMessage?.userContext ?? null)
? {
role: 'system',
content: $settings.system
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
: ''
}
: undefined,
...messages
......
......@@ -44,6 +44,7 @@
WEBUI_BASE_URL
} from '$lib/constants';
import { createOpenAITextStream } from '$lib/apis/streaming';
import { queryMemory } from '$lib/apis/memories';
const i18n = getContext('i18n');
......@@ -261,6 +262,28 @@
const sendPrompt = async (prompt, parentId, modelId = null) => {
const _chatId = JSON.parse(JSON.stringify($chatId));
let userContext = null;
if ($settings?.memory ?? false) {
const res = await queryMemory(localStorage.token, prompt).catch((error) => {
toast.error(error);
return null;
});
if (res) {
if (res.documents[0].length > 0) {
userContext = res.documents.reduce((acc, doc, index) => {
const createdAtTimestamp = res.metadatas[index][0].created_at;
const createdAtDate = new Date(createdAtTimestamp * 1000).toISOString().split('T')[0];
acc.push(`${index + 1}. [${createdAtDate}]. ${doc[0]}`);
return acc;
}, []);
}
console.log(userContext);
}
}
await Promise.all(
(modelId
? [modelId]
......@@ -282,6 +305,38 @@
modelName: model.custom_info?.name ?? model.name ?? model.id
})
);
// Create response message
let responseMessageId = uuidv4();
let responseMessage = {
parentId: parentId,
id: responseMessageId,
childrenIds: [],
role: 'assistant',
content: '',
model: model.id,
userContext: userContext,
timestamp: Math.floor(Date.now() / 1000) // Unix epoch
};
// Add message to history and Set currentId to messageId
history.messages[responseMessageId] = responseMessage;
history.currentId = responseMessageId;
// Append messageId to childrenIds of parent message
if (parentId !== null) {
history.messages[parentId].childrenIds = [
...history.messages[parentId].childrenIds,
responseMessageId
];
}
if (model?.external) {
await sendPromptOpenAI(model, prompt, responseMessageId, _chatId);
} else if (model) {
await sendPromptOllama(model, prompt, responseMessageId, _chatId);
}
} else {
toast.error($i18n.t(`Model {{modelId}} not found`, { modelId }));
}
// Create response message
......@@ -334,10 +389,13 @@
scrollToBottom();
const messagesBody = [
$settings.system
$settings.system || (responseMessage?.userContext ?? null)
? {
role: 'system',
content: $settings.system
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
: ''
}
: undefined,
...messages
......@@ -590,10 +648,13 @@
model: model.id,
stream: true,
messages: [
$settings.system
$settings.system || (responseMessage?.userContext ?? null)
? {
role: 'system',
content: $settings.system
content:
$settings.system + (responseMessage?.userContext ?? null)
? `\n\nUser Context:\n${responseMessage.userContext.join('\n')}`
: ''
}
: undefined,
...messages
......@@ -722,6 +783,7 @@
} catch (error) {
await handleOpenAIError(error, null, model, responseMessage);
}
messages = messages;
stopResponseFlag = false;
await tick();
......
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