From 1409c2d9d548ee2728caaf3a94447de8e9caa270 Mon Sep 17 00:00:00 2001 From: phebing Date: Tue, 27 Feb 2024 11:42:53 +0100 Subject: [PATCH 1/6] Focus languages on en+de for now --- public/locales/ar/chat.json | 37 -------------------------------- public/locales/ar/common.json | 1 - public/locales/ar/markdown.json | 5 ----- public/locales/ar/promptbar.json | 12 ----------- public/locales/ar/sidebar.json | 13 ----------- public/locales/bn/chat.json | 28 ------------------------ public/locales/bn/common.json | 1 - public/locales/bn/markdown.json | 5 ----- public/locales/bn/promptbar.json | 12 ----------- public/locales/bn/sidebar.json | 13 ----------- public/locales/es/chat.json | 28 ------------------------ public/locales/es/common.json | 1 - public/locales/es/markdown.json | 5 ----- public/locales/es/promptbar.json | 12 ----------- public/locales/es/sidebar.json | 13 ----------- public/locales/fr/chat.json | 28 ------------------------ public/locales/fr/common.json | 1 - public/locales/fr/markdown.json | 5 ----- public/locales/fr/promptbar.json | 12 ----------- public/locales/fr/sidebar.json | 13 ----------- public/locales/he/chat.json | 28 ------------------------ public/locales/he/common.json | 1 - public/locales/he/markdown.json | 5 ----- public/locales/he/promptbar.json | 12 ----------- public/locales/he/sidebar.json | 13 ----------- public/locales/id/chat.json | 28 ------------------------ public/locales/id/common.json | 1 - public/locales/id/markdown.json | 5 ----- public/locales/id/promptbar.json | 12 ----------- public/locales/id/sidebar.json | 13 ----------- public/locales/it/chat.json | 28 ------------------------ public/locales/it/common.json | 1 - public/locales/it/markdown.json | 5 ----- public/locales/it/promptbar.json | 12 ----------- public/locales/it/sidebar.json | 13 ----------- public/locales/ja/chat.json | 28 ------------------------ public/locales/ja/common.json | 1 - public/locales/ja/markdown.json | 5 ----- public/locales/ja/promptbar.json | 12 ----------- public/locales/ja/sidebar.json | 13 ----------- public/locales/ko/chat.json | 28 ------------------------ public/locales/ko/common.json | 1 - public/locales/ko/markdown.json | 5 ----- public/locales/ko/promptbar.json | 12 ----------- public/locales/ko/sidebar.json | 13 ----------- public/locales/pt/chat.json | 28 ------------------------ public/locales/pt/common.json | 1 - public/locales/pt/markdown.json | 5 ----- public/locales/pt/promptbar.json | 12 ----------- public/locales/pt/sidebar.json | 13 ----------- public/locales/ru/chat.json | 28 ------------------------ public/locales/ru/common.json | 1 - public/locales/ru/markdown.json | 5 ----- public/locales/ru/promptbar.json | 12 ----------- public/locales/ru/sidebar.json | 13 ----------- public/locales/si/chat.json | 28 ------------------------ public/locales/si/common.json | 1 - public/locales/si/markdown.json | 5 ----- public/locales/si/promptbar.json | 12 ----------- public/locales/si/sidebar.json | 13 ----------- public/locales/sv/chat.json | 28 ------------------------ public/locales/sv/common.json | 1 - public/locales/sv/markdown.json | 5 ----- public/locales/sv/promptbar.json | 12 ----------- public/locales/sv/sidebar.json | 13 ----------- public/locales/te/chat.json | 28 ------------------------ public/locales/te/common.json | 1 - public/locales/te/markdown.json | 5 ----- public/locales/te/promptbar.json | 12 ----------- public/locales/te/sidebar.json | 13 ----------- public/locales/vi/chat.json | 28 ------------------------ public/locales/vi/common.json | 1 - public/locales/vi/markdown.json | 5 ----- public/locales/vi/promptbar.json | 12 ----------- public/locales/vi/sidebar.json | 13 ----------- public/locales/zh/chat.json | 29 ------------------------- public/locales/zh/common.json | 1 - public/locales/zh/markdown.json | 5 ----- public/locales/zh/promptbar.json | 13 ----------- public/locales/zh/sidebar.json | 13 ----------- 80 files changed, 955 deletions(-) delete mode 100644 public/locales/ar/chat.json delete mode 100644 public/locales/ar/common.json delete mode 100644 public/locales/ar/markdown.json delete mode 100644 public/locales/ar/promptbar.json delete mode 100644 public/locales/ar/sidebar.json delete mode 100644 public/locales/bn/chat.json delete mode 100644 public/locales/bn/common.json delete mode 100644 public/locales/bn/markdown.json delete mode 100644 public/locales/bn/promptbar.json delete mode 100644 public/locales/bn/sidebar.json delete mode 100644 public/locales/es/chat.json delete mode 100644 public/locales/es/common.json delete mode 100644 public/locales/es/markdown.json delete mode 100644 public/locales/es/promptbar.json delete mode 100644 public/locales/es/sidebar.json delete mode 100644 public/locales/fr/chat.json delete mode 100644 public/locales/fr/common.json delete mode 100644 public/locales/fr/markdown.json delete mode 100644 public/locales/fr/promptbar.json delete mode 100644 public/locales/fr/sidebar.json delete mode 100644 public/locales/he/chat.json delete mode 100644 public/locales/he/common.json delete mode 100644 public/locales/he/markdown.json delete mode 100644 public/locales/he/promptbar.json delete mode 100644 public/locales/he/sidebar.json delete mode 100644 public/locales/id/chat.json delete mode 100644 public/locales/id/common.json delete mode 100644 public/locales/id/markdown.json delete mode 100644 public/locales/id/promptbar.json delete mode 100644 public/locales/id/sidebar.json delete mode 100644 public/locales/it/chat.json delete mode 100644 public/locales/it/common.json delete mode 100644 public/locales/it/markdown.json delete mode 100644 public/locales/it/promptbar.json delete mode 100644 public/locales/it/sidebar.json delete mode 100644 public/locales/ja/chat.json delete mode 100644 public/locales/ja/common.json delete mode 100644 public/locales/ja/markdown.json delete mode 100644 public/locales/ja/promptbar.json delete mode 100644 public/locales/ja/sidebar.json delete mode 100644 public/locales/ko/chat.json delete mode 100644 public/locales/ko/common.json delete mode 100644 public/locales/ko/markdown.json delete mode 100644 public/locales/ko/promptbar.json delete mode 100644 public/locales/ko/sidebar.json delete mode 100644 public/locales/pt/chat.json delete mode 100644 public/locales/pt/common.json delete mode 100644 public/locales/pt/markdown.json delete mode 100644 public/locales/pt/promptbar.json delete mode 100644 public/locales/pt/sidebar.json delete mode 100644 public/locales/ru/chat.json delete mode 100644 public/locales/ru/common.json delete mode 100644 public/locales/ru/markdown.json delete mode 100644 public/locales/ru/promptbar.json delete mode 100644 public/locales/ru/sidebar.json delete mode 100644 public/locales/si/chat.json delete mode 100644 public/locales/si/common.json delete mode 100644 public/locales/si/markdown.json delete mode 100644 public/locales/si/promptbar.json delete mode 100644 public/locales/si/sidebar.json delete mode 100644 public/locales/sv/chat.json delete mode 100644 public/locales/sv/common.json delete mode 100644 public/locales/sv/markdown.json delete mode 100644 public/locales/sv/promptbar.json delete mode 100644 public/locales/sv/sidebar.json delete mode 100644 public/locales/te/chat.json delete mode 100644 public/locales/te/common.json delete mode 100644 public/locales/te/markdown.json delete mode 100644 public/locales/te/promptbar.json delete mode 100644 public/locales/te/sidebar.json delete mode 100644 public/locales/vi/chat.json delete mode 100644 public/locales/vi/common.json delete mode 100644 public/locales/vi/markdown.json delete mode 100644 public/locales/vi/promptbar.json delete mode 100644 public/locales/vi/sidebar.json delete mode 100644 public/locales/zh/chat.json delete mode 100644 public/locales/zh/common.json delete mode 100644 public/locales/zh/markdown.json delete mode 100644 public/locales/zh/promptbar.json delete mode 100644 public/locales/zh/sidebar.json diff --git a/public/locales/ar/chat.json b/public/locales/ar/chat.json deleted file mode 100644 index fec7ec3476..0000000000 --- a/public/locales/ar/chat.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "OpenAI API Key Required": " (أوبن أيه أي) OpenAI API Key (مطلوب (مفتاح واجهة برمجة تطبيقات ", - "Please set your OpenAI API key in the bottom left of the sidebar.": "يرجى تعيين مفتاح واجهة برمجة تطبيقات أوبن أيه أي الخاص بك في الجزء السفلي الأيسر من الشريط الجانبي", - "Stop Generating": "إيقاف التوليد", - "Prompt limit is {{maxLength}} characters": "حرفًا {{maxLength}} حد المطالبة هو", - "System Prompt": "مطالبة النظام", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "أنت شات جبت نموذج لغة كبير تم تدريبه بواسطة أوبن أيه أي. اتبع تعليمات المستخدم بعناية. الرد باستخدام الماركداون", - "Enter a prompt": "أدخل المطالبة", - "Regenerate response": "إعادة توليد الرد", - "Sorry, there was an error.": "عذرًا، حدث خطأ", - "Model": "النموذج", - "Conversation": "المحادثة", - "OR": "أو", - "Loading...": "...جاري التحميل", - "Type a message...": "...اكتب رسالة", - "Error fetching models.": "خطأ في جلب النماذج", - "AI": "الذكاء الاصطناعي", - "You": "أنت", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "تأكد من تعيين مفتاح واجهة برمجة تطبيقات الخاص بك في الجزء السفلي الأيسر من الشريط", - "If you completed this step, OpenAI may be experiencing issues.": "من مشاكل OpenAI إذا اكتملت هذه الخطوة، فقد يعاني", - - "click if using a .env.local file": ".env.local انقر إذا كنت تستخدم ملف", - - - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "حرفًا {{maxLength}} حد الرسالة هو {{valueLength}} لقد أدخلت ", - - - - - - - "Please enter a message": "يرجى إدخال رسالة", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI هي مجموعة متقدمة للدردشة تستخدم", - "Are you sure you want to clear all messages?": "هل أنت متأكد أنك تريد مسح كافة الرسائل؟" -} diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/ar/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/ar/markdown.json b/public/locales/ar/markdown.json deleted file mode 100644 index 0b5df23eb2..0000000000 --- a/public/locales/ar/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ -"Copy code": "نسخ الكود", -"Copied!": "تم النسخ!", -"Enter file name": "أدخل اسم الملف" -} \ No newline at end of file diff --git a/public/locales/ar/promptbar.json b/public/locales/ar/promptbar.json deleted file mode 100644 index 80ca426f95..0000000000 --- a/public/locales/ar/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "مطلب جديد", - "New folder": "مجلد جديد", - "No prompts.": "لا يوجد مطالبات.", - "Search prompts...": "...البحث عن مطالبات", - "Name": "الاسم", - "Description": "الوصف", - "A description for your prompt.": "وصف لمطلبك", - "Prompt": "مطلب", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "محتوى المطلب. استخدم {{}} للإشارة إلى متغير. مثال: {{الاسم}} هي {{صفة}} {{اسم}}", - "Save": "حفظ" - } diff --git a/public/locales/ar/sidebar.json b/public/locales/ar/sidebar.json deleted file mode 100644 index 3966ec3ca9..0000000000 --- a/public/locales/ar/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "مجلد جديد", - "New chat": "محادثة جديدة", - "No conversations.": "لا يوجد محادثات", - "Search conversations...": "...البحث عن المحادثات", - "OpenAI API Key": " (أوبن أيه أي) OpenAI API Key (مفتاح واجهة برمجة تطبيقات)", - "Import data": "استيراد المحادثات", - "Are you sure?": "هل أنت متأكد؟", - "Clear conversations": "مسح المحادثات", - "Export data": "تصدير المحادثات", - "Dark mode": "الوضع الداكن", - "Light mode": "الوضع الفاتح" -} \ No newline at end of file diff --git a/public/locales/bn/chat.json b/public/locales/bn/chat.json deleted file mode 100644 index 4a990a3c7a..0000000000 --- a/public/locales/bn/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "OpenAI API key বাধ্যতামূলক", - "Please set your OpenAI API key in the bottom left of the sidebar.": "দয়া করে আপনার OpenAI API key বামে সাইডবারের নিচের দিকে সেট করুন।", - "Stop Generating": "বার্তা জেনারেট করা বন্ধ করুন", - "Prompt limit is {{maxLength}} characters": "নির্দেশনা (বার্তা) সীমা সর্বোচ্চ {{maxLength}} অক্ষর", - "System Prompt": "সিস্টেম নির্দেশনা (বার্তা)", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "তুমি ChatGPT, OpenAI দ্বারা প্রশিক্ষিত একটি বড় ভাষা মডেল। সাবধানে ব্যবহারকারীর নির্দেশাবলী অনুসরণ করুন. মার্কডাউন ব্যবহার করে উত্তর দিন।", - "Enter a prompt": "একটি নির্দেশনা (বার্তা) দিন", - "Regenerate response": "বার্তা আবার জেনারেট করুন", - "Sorry, there was an error.": "দুঃখিত, কোনো একটি সমস্যা হয়েছে।", - "Model": "মডেল", - "Conversation": "আলাপচারিতা", - "OR": "অথবা", - "Loading...": "লোড হচ্ছে...", - "Type a message...": "কোনো মেসেজ লিখুন...", - "Error fetching models.": "মডেল পেতে সমস্যা হচ্ছে।", - "AI": "AI", - "You": "তুমি", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "নিশ্চিত করুন যে আপনার OpenAI API key সাইডবারের নীচে বাম দিকে সেট করা আছে।", - "If you completed this step, OpenAI may be experiencing issues.": "আপনি এই ধাপটি সম্পন্ন করে থাকলে, হতে পারে যে OpenAI কোনো সমস্যার সম্মুখীন হয়েছে।", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "বার্তার সর্বোচ্চ সীমা হল {{maxLength}} অক্ষর৷ আপনি {{valueLength}} অক্ষর লিখেছেন।", - "Please enter a message": "দয়া করে একটি মেসেজ লিখুন", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI হল OpenAI-এর চ্যাট মডেলগুলির জন্য একটি উন্নত চ্যাটবট কিট যার লক্ষ্য হল ChatGPT-এর ইন্টারফেস এবং কার্যকারিতা অনুকরণ করা।", - "Are you sure you want to clear all messages?": "সমস্ত বার্তা মুছে ফেলতে আপনি কি নিশ্চিত?" -} diff --git a/public/locales/bn/common.json b/public/locales/bn/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/bn/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/bn/markdown.json b/public/locales/bn/markdown.json deleted file mode 100644 index 97da3ca1df..0000000000 --- a/public/locales/bn/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "কোড কপি করুন", - "Copied!": "কপি করা হয়েছে!", - "Enter file name": "ফাইল নাম লিখুন" -} diff --git a/public/locales/bn/promptbar.json b/public/locales/bn/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/bn/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/bn/sidebar.json b/public/locales/bn/sidebar.json deleted file mode 100644 index 09ab8c085f..0000000000 --- a/public/locales/bn/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "নতুন ফোল্ডার", - "New chat": "নতুন আড্ডা", - "No conversations.": "কোনো আলাপচারিতা নেই।", - "Search conversations...": "আলাপচারিতা খুঁজুন...", - "OpenAI API Key": "OpenAI API Key", - "Import data": "আলাপচারিতা ইমপোর্ট", - "Are you sure?": "আপনি কি নিশ্চিত?", - "Clear conversations": "আলাপচারিতা ক্লিয়ার", - "Export data": "আলাপচারিতা এক্সপোর্ট", - "Dark mode": "ডার্ক মোড", - "Light mode": "লাইট মোড" -} \ No newline at end of file diff --git a/public/locales/es/chat.json b/public/locales/es/chat.json deleted file mode 100644 index 9b9438c73b..0000000000 --- a/public/locales/es/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "Se requiere la clave de API de OpenAI", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Por favor, ingrese su clave de API de OpenAI en la esquina inferior izquierda de la barra lateral.", - "Stop Generating": "Dejar de generar", - "Prompt limit is {{maxLength}} characters": "El límite del mensaje es de {{maxLength}} caracteres", - "System Prompt": "Mensaje del sistema", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Eres ChatGPT, un modelo de lenguaje grande entrenado por OpenAI. Sigue las instrucciones del usuario cuidadosamente. Responde usando markdown.", - "Enter a prompt": "Ingrese un mensaje", - "Regenerate response": "Regenerar respuesta", - "Sorry, there was an error.": "Lo sentimos, ha ocurrido un error.", - "Model": "Modelo", - "Conversation": "Conversación", - "OR": "O", - "Loading...": "Cargando...", - "Type a message...": "Escriba un mensaje...", - "Error fetching models.": "Error al obtener los modelos.", - "AI": "IA", - "You": "Tú", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Asegúrate de que hayas ingresado la clave de API de OpenAI en la esquina inferior izquierda de la barra lateral.", - "If you completed this step, OpenAI may be experiencing issues.": "Si completaste este paso, OpenAI podría estar experimentando problemas.", - "click if using a .env.local file": "haz clic si estás utilizando un archivo .env.local", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "El límite del mensaje es de {{maxLength}} caracteres. Has ingresado {{valueLength}} caracteres.", - "Please enter a message": "Por favor, ingrese un mensaje", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI es un kit avanzado de chatbot para los modelos de chat de OpenAI que busca imitar la interfaz y funcionalidad de ChatGPT.", - "Are you sure you want to clear all messages?": "¿Está seguro de que desea borrar todos los mensajes?" -} diff --git a/public/locales/es/common.json b/public/locales/es/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/es/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/es/markdown.json b/public/locales/es/markdown.json deleted file mode 100644 index da98a7d709..0000000000 --- a/public/locales/es/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Copiar código", - "Copied!": "¡Copiado!", - "Enter file name": "Ingrese el nombre del archivo" -} diff --git a/public/locales/es/promptbar.json b/public/locales/es/promptbar.json deleted file mode 100644 index bcf7dd1c51..0000000000 --- a/public/locales/es/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "Nuevo prompt", - "New folder": "Nueva carpeta", - "No prompts.": "No hay prompts.", - "Search prompts...": "Buscar prompts...", - "Name": "Nombre", - "Description": "Descripción", - "A description for your prompt.": "Descripción de su prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Contenido del prompt. Utilice {{}} para indicar una variable. Ej: {{nombre}} es un {{adjetivo}} {{nombre}}", - "Save": "Guardar" -} diff --git a/public/locales/es/sidebar.json b/public/locales/es/sidebar.json deleted file mode 100644 index 277711b37e..0000000000 --- a/public/locales/es/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Nueva carpeta", - "New chat": "Nueva conversación", - "No conversations.": "No hay conversaciones.", - "Search conversations...": "Buscar conversaciones...", - "OpenAI API Key": "Llave de API de OpenAI", - "Import data": "Importar conversaciones", - "Are you sure?": "¿Estás seguro?", - "Clear conversations": "Borrar conversaciones", - "Export data": "Exportar conversaciones", - "Dark mode": "Modo oscuro", - "Light mode": "Modo claro" -} \ No newline at end of file diff --git a/public/locales/fr/chat.json b/public/locales/fr/chat.json deleted file mode 100644 index 046995da95..0000000000 --- a/public/locales/fr/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "Clé API OpenAI requise", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Veuillez saisir votre clé API OpenAI dans le coin inférieur gauche de la barre latérale.", - "Stop Generating": "Interrompre la génération", - "Prompt limit is {{maxLength}} characters": "La limite du prompt est de {{maxLength}} caractères", - "System Prompt": "Prompt du système", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Vous êtes ChatGPT, un grand modèle linguistique entraîné par OpenAI. Suivez attentivement les instructions de l'utilisateur. Répondez en utilisant Markdown.", - "Enter a prompt": "Entrez un prompt", - "Regenerate response": "Régénérer la réponse", - "Sorry, there was an error.": "Désolé, une erreur est survenue.", - "Model": "Modèle", - "Conversation": "Conversation", - "OR": "OU", - "Loading...": "Chargement...", - "Type a message...": "Tapez un message...", - "Error fetching models.": "Erreur lors de la récupération des modèles.", - "AI": "IA", - "You": "Vous", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Assurez-vous que votre clé API OpenAI est définie dans le coin inférieur gauche de la barre latérale.", - "If you completed this step, OpenAI may be experiencing issues.": "Si vous avez effectué cette étape, OpenAI peut rencontrer des problèmes.", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "La limite de message est de {{maxLength}} caractères. Vous avez saisi {{valueLength}} caractères.", - "Please enter a message": "Veuillez entrer un message", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI est un kit de chatbot avancé pour les modèles de chat d'OpenAI visant à imiter l'interface et les fonctionnalités de ChatGPT.", - "Are you sure you want to clear all messages?": "Êtes-vous sûr de vouloir effacer tous les messages ?" -} diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/fr/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/fr/markdown.json b/public/locales/fr/markdown.json deleted file mode 100644 index fef09b3440..0000000000 --- a/public/locales/fr/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Copier le code", - "Copied!": "Copié !", - "Enter file name": "Entrez le nom du fichier" -} diff --git a/public/locales/fr/promptbar.json b/public/locales/fr/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/fr/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/fr/sidebar.json b/public/locales/fr/sidebar.json deleted file mode 100644 index b6c0fbb9f4..0000000000 --- a/public/locales/fr/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Nouveau dossier", - "New chat": "Nouvelle discussion", - "No conversations.": "Aucune conversation.", - "Search conversations...": "Rechercher des conversations...", - "OpenAI API Key": "Clé API OpenAI", - "Import data": "Importer des conversations", - "Are you sure?": "Êtes-vous sûr ?", - "Clear conversations": "Effacer les conversations", - "Export data": "Exporter les conversations", - "Dark mode": "Mode sombre", - "Light mode": "Mode clair" -} \ No newline at end of file diff --git a/public/locales/he/chat.json b/public/locales/he/chat.json deleted file mode 100644 index 41e890abe3..0000000000 --- a/public/locales/he/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "מפתח openAI API", - "Please set your OpenAI API key in the bottom left of the sidebar.": "עליך להזין את המפתח האישי שלך בצידו השמאלי התחתון של תפריט הניווט.", - "Stop Generating": "עצור תהליך הפקת התשובה", - "Prompt limit is {{maxLength}} characters": "אורך התשובה מוגבל ל {{maxLength}} תווים", - "System Prompt": "הגדרת בסיס לכל תשובה של המערכת", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "You are Hebrew speaking ChatGPT, a large language model trained by OpenAI which responds in Hebrew to any question or User comment. Follow the user's instructions carefully. Respond in Hebrew using markdown.", - "Enter a prompt": "הקלד הודעה", - "Regenerate response": "הפק תשובה מחדש", - "Sorry, there was an error.": "התנצלותנו הכנה, המערכת מדווחת על תקלה", - "Model": "מודל", - "Conversation": "שיחה", - "OR": "או", - "Loading...": "טוען...", - "Type a message...": "הקלד הודעתך...", - "Error fetching models.": "תקלה באיחזור רשימת המודלים", - "AI": "המערכת", - "You": "אתה", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "עליך לוודא שמפתח האישי שלך מוזן בתפריט מצד שמאל", - "If you completed this step, OpenAI may be experiencing issues.": "אם טרם השלמת חלק זה יש סבירות גבוהה להתרחשות תקלה", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "מגבלת תווים היא {{maxLength}}. אתה הקלדת עד עכשיו {{valueLength}} תווים.", - "Please enter a message": "הקלד את הודעתך", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "מערכת הצאטבוט היא ערכה מתקדמת לניהול שיחה המכוונת לחקות את המראה והפונקציונאלית של ChatGPT", - "Are you sure you want to clear all messages?": "האם אתה בטוח שברצונך למחוק את כל ההודעות?" -} \ No newline at end of file diff --git a/public/locales/he/common.json b/public/locales/he/common.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/public/locales/he/common.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/public/locales/he/markdown.json b/public/locales/he/markdown.json deleted file mode 100644 index eabb75233d..0000000000 --- a/public/locales/he/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "העתק קוד", - "Copied!": "נשמר בזכרון", - "Enter file name": "הקלד שם לקובץ" -} \ No newline at end of file diff --git a/public/locales/he/promptbar.json b/public/locales/he/promptbar.json deleted file mode 100644 index 3de6d5dd7b..0000000000 --- a/public/locales/he/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "פקודת מכונה חדשה", - "New folder": "תיקיה חדשה", - "No prompts.": "לא נמצאו פקודות מכונות", - "Search prompts...": "חיפוש פקודות...", - "Name": "שם", - "Description": "תיאור", - "A description for your prompt.": "תיאור שורת הפקודה למכונה", - "Prompt": "פקודה", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "תיאור הפקודה. השתמש {{}} להגדרת משתנים. לדוגמא {{שם משתנה}} הוא {{תואר}} {{שם עצם}}", - "Save": "Save" -} diff --git a/public/locales/he/sidebar.json b/public/locales/he/sidebar.json deleted file mode 100644 index d7914a2665..0000000000 --- a/public/locales/he/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "תיקיה חדשה", - "New chat": "שיחה חדשה", - "No conversations.": "אין שיחות חדשות", - "Search conversations...": "חיפוש שיחות...", - "OpenAI API Key": "מפתח אישי ל openAI", - "Import data": "ייבוא שיחות", - "Are you sure?": "אתה בטוח?", - "Clear conversations": "ניקוי שיחות", - "Export data": "ייצוא שיחות", - "Dark mode": "מצב כהה", - "Light mode": "מצב בהיר" -} \ No newline at end of file diff --git a/public/locales/id/chat.json b/public/locales/id/chat.json deleted file mode 100644 index 0366fdf817..0000000000 --- a/public/locales/id/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "Memerlukan Kunci API OpenAI", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Silakan atur kunci API OpenAI Anda di bagian kiri bawah bilah sisi.", - "Stop Generating": "Berhenti Menghasilkan", - "Prompt limit is {{maxLength}} characters": "Batas karakter untuk prompt adalah {{maxLength}} karakter", - "System Prompt": "Prompt Sistem", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Anda adalah ChatGPT, model bahasa besar yang dilatih oleh OpenAI. Ikuti instruksi pengguna dengan hati-hati. Balas menggunakan markdown.", - "Enter a prompt": "Masukkan sebuah prompt", - "Regenerate response": "Hasilkan kembali respons", - "Sorry, there was an error.": "Maaf, terjadi kesalahan.", - "Model": "Model", - "Conversation": "Percakapan", - "OR": "ATAU", - "Loading...": "Memuat...", - "Type a message...": "Ketik sebuah pesan...", - "Error fetching models.": "Kesalahan dalam mengambil model.", - "AI": "AI", - "You": "Anda", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Pastikan kunci API OpenAI Anda diatur di bagian kiri bawah bilah sisi.", - "If you completed this step, OpenAI may be experiencing issues.": "Jika Anda telah menyelesaikan langkah ini, OpenAI mungkin mengalami masalah.", - "click if using a .env.local file": "klik jika menggunakan file .env.local", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Batas karakter untuk pesan adalah {{maxLength}} karakter. Anda telah memasukkan {{valueLength}} karakter.", - "Please enter a message": "Silakan masukkan sebuah pesan", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI adalah kit chatbot canggih untuk model obrolan OpenAI yang bertujuan meniru antarmuka dan fungsionalitas ChatGPT.", - "Are you sure you want to clear all messages?": "Apakah Anda yakin ingin menghapus semua pesan?" -} \ No newline at end of file diff --git a/public/locales/id/common.json b/public/locales/id/common.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/public/locales/id/common.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/public/locales/id/markdown.json b/public/locales/id/markdown.json deleted file mode 100644 index 92ce28a8d4..0000000000 --- a/public/locales/id/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Salin kode", - "Copied!": "Kode disalin!", - "Enter file name": "Masukkan nama file" -} \ No newline at end of file diff --git a/public/locales/id/promptbar.json b/public/locales/id/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/id/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/id/sidebar.json b/public/locales/id/sidebar.json deleted file mode 100644 index 7bc6ee3bd3..0000000000 --- a/public/locales/id/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Folder baru", - "New chat": "Percakapan baru", - "No conversations.": "Tidak ada percakapan.", - "Search conversations...": "Cari percakapan...", - "OpenAI API Key": "Kunci API OpenAI", - "Import data": "Impor percakapan", - "Are you sure?": "Apakah Anda yakin?", - "Clear conversations": "Hapus percakapan", - "Export data": "Ekspor percakapan", - "Dark mode": "Mode gelap", - "Light mode": "Mode terang" -} \ No newline at end of file diff --git a/public/locales/it/chat.json b/public/locales/it/chat.json deleted file mode 100644 index ec128cacee..0000000000 --- a/public/locales/it/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "E' richiesta la chiave API OpenAI", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Per favore, inserisci la tua Chiave API OpenAI in basso a sinistra nella barra laterale", - "Stop Generating": "Interrompi la generazione", - "Prompt limit is {{maxLength}} characters": "Il limite del messaggio è di {{maxLength}} caratteri", - "System Prompt": "Prompt del sistema", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Sei ChatGPT, un grande modello di linguaggio addestrato da OpenAI. Segui attentamente le istruzioni dell'utente. Rispondi usando il markdown.", - "Enter a prompt": "Inserisci un prompt", - "Regenerate response": "Rigenera risposta", - "Sorry, there was an error.": "Scusa, si è verificato un errore.", - "Model": "Modello", - "Conversation": "Conversazione", - "OR": "O", - "Loading...": "Caricamento...", - "Type a message...": "Digita un messaggio...", - "Error fetching models.": "Si è verificato un errore nel recupero dei modelli.", - "AI": "IA", - "You": "Tu", - "Cancel": "Annulla", - "Save & Submit": "Salva e invia", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Assicurati che la tua chiave API OpenAI sia inserita in basso a sinistra nella barra laterale", - "If you completed this step, OpenAI may be experiencing issues.": "Se hai completato questo passaggio, OpenAI potrebbe avere problemi.", - "click if using a .env.local file": "Fai click se stai utilizzando un file .env.local", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Il limite del messaggio è di {{maxLength}} caratteri. Hai inserito {{valueLength}} caratteri.", - "Please enter a message": "Per favore, scrivi un messaggio", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI è un kit avanzato di chatbot per i modelli di chat di OpenAI che mira a imitare l'interfaccia e le funzionalità di ChatGPT.", - "Are you sure you want to clear all messages?": "Sei sicuro di voler cancellare tutti i messaggi?" -} diff --git a/public/locales/it/common.json b/public/locales/it/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/it/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/it/markdown.json b/public/locales/it/markdown.json deleted file mode 100644 index b488447137..0000000000 --- a/public/locales/it/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Copia codice", - "Copied!": "Copiato!", - "Enter file name": "Inserisci il nome del file" -} diff --git a/public/locales/it/promptbar.json b/public/locales/it/promptbar.json deleted file mode 100644 index 9edf6c8db2..0000000000 --- a/public/locales/it/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "Nuovo prompt", - "New folder": "Nuova cartella", - "No prompts.": "Nessun prompt.", - "Search prompts...": "Cerca prompts...", - "Name": "Nome", - "Description": "Descrizione", - "A description for your prompt.": "Descrizione del tuo prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Contenuto del prompt. Utilizza {{}} per indicare una variabile. Per esempio: {{nome}} è un {{aggettivo}} {{sostantivo}}", - "Save": "Salva" -} diff --git a/public/locales/it/sidebar.json b/public/locales/it/sidebar.json deleted file mode 100644 index 14886e1c68..0000000000 --- a/public/locales/it/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Nuova cartella", - "New chat": "Nuova conversazione", - "No conversations.": "Nessuna conversazione.", - "Search conversations...": "Cerca conversazioni...", - "OpenAI API Key": "Chiave API OpenAI", - "Import data": "Importa dati", - "Are you sure?": "Sei sicuro?", - "Clear conversations": "Elimina conversazioni", - "Export data": "Esporta dati", - "Dark mode": "Modalità scura", - "Light mode": "Modalità chiara" -} diff --git a/public/locales/ja/chat.json b/public/locales/ja/chat.json deleted file mode 100644 index 1b01516e2b..0000000000 --- a/public/locales/ja/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "OpenAIのAPIキーが必要です", - "Please set your OpenAI API key in the bottom left of the sidebar.": "左下のサイドバーでOpenAIのAPIキーを設定してください", - "Stop Generating": "回答をストップ", - "Prompt limit is {{maxLength}} characters": "プロンプトの文字数は{{maxLength}}文字までです", - "System Prompt": "システムのプロンプト", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "あなたはOpenAIによってトレーニングされた大規模言語モデルのChatGPTです。ユーザーの指示には注意深く従ってください。マークダウンを使用して応答してください。", - "Enter a prompt": "プロンプトを入力してください", - "Regenerate response": "もう一度回答する", - "Sorry, there was an error.": "すみません、エラーが発生しました。", - "Model": "モデル", - "Conversation": "会話", - "OR": "または", - "Loading...": "読み込み中...", - "Type a message...": "メッセージを入力...", - "Error fetching models.": "モデルの取得中にエラーが発生しました。", - "AI": "AI", - "You": "あなた", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "OpenAIのAPIキーがサイドバーの左下に設定されていることを確認してください。", - "If you completed this step, OpenAI may be experiencing issues.": "このステップを完了した場合、OpenAIに問題が発生している可能性があります。", - "click if using a .env.local file": "もし.env.localファイルを使用している場合はこちらをクリックしてください", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "メッセージの文字数は{{maxLength}}文字までです。あなたは{{valueLength}}文字を入力しました。", - "Please enter a message": "メッセージを入力してください", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UIは、ChatGPTと同様のインターフェイスと機能を実現するための、チャットボットキットです。", - "Are you sure you want to clear all messages?": "すべてのメッセージを削除してもよろしいですか?" -} \ No newline at end of file diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/public/locales/ja/common.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/public/locales/ja/markdown.json b/public/locales/ja/markdown.json deleted file mode 100644 index 8e7783d41c..0000000000 --- a/public/locales/ja/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "コードをコピー", - "Copied!": "コピーしました!", - "Enter file name": "ファイル名を入力" -} \ No newline at end of file diff --git a/public/locales/ja/promptbar.json b/public/locales/ja/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/ja/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/ja/sidebar.json b/public/locales/ja/sidebar.json deleted file mode 100644 index 107b9a677f..0000000000 --- a/public/locales/ja/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "新規フォルダ", - "New chat": "新規チャット", - "No conversations.": "会話履歴はありません。", - "Search conversations...": "会話を検索...", - "OpenAI API Key": "OpenAI API Key", - "Import data": "会話履歴をインポート", - "Are you sure?": "よろしいですか?", - "Clear conversations": " 会話をクリア", - "Export data": "会話履歴をエクスポート", - "Dark mode": "ダークモード", - "Light mode": "ライトモード" -} \ No newline at end of file diff --git a/public/locales/ko/chat.json b/public/locales/ko/chat.json deleted file mode 100644 index 66d2a3ab09..0000000000 --- a/public/locales/ko/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "OpenAI API 키가 필요합니다", - "Please set your OpenAI API key in the bottom left of the sidebar.": "사이드바 왼쪽 하단에 OpenAI API 키를 설정하세요.", - "Stop Generating": "생성 중지", - "Prompt limit is {{maxLength}} characters": "프롬프트 제한은 {{maxLength}}자입니다", - "System Prompt": "시스템 프롬트", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "당신은 OpenAI에서 훈련된 대규모 언어 모델 ChatGPT입니다. 사용자의 지시를 주의해서 따르세요. 마크다운을 사용하여 응답하세요.", - "Enter a prompt": "프롬프트를 입력하세요", - "Regenerate response": "응답 재생성", - "Sorry, there was an error.": "죄송합니다, 오류가 발생했습니다.", - "Model": "모델", - "Conversation": "대화", - "OR": "또는", - "Loading...": "로드 중...", - "Type a message...": "메시지를 입력하세요...", - "Error fetching models.": "모델을 가져오는 중 오류가 발생했습니다.", - "AI": "인공지능", - "You": "당신", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "OpenAI API 키가 사이드바 왼쪽 하단에 설정되어 있는지 확인하세요.", - "If you completed this step, OpenAI may be experiencing issues.": "이 단계를 완료한 경우 OpenAI에 문제가 있을 수도 있습니다.", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "메시지 제한은 {{maxLength}}자입니다. {{valueLength}}자를 입력했습니다.", - "Please enter a message": "메시지를 입력하세요", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI는 ChatGPT의 인터페이스와 기능을 모방하는 것을 목표로 둔 OpenAI의 채팅 모델들을 위한 고급 챗봇 키트입니다.", - "Are you sure you want to clear all messages?": "모든 메시지를 지우시겠습니까?" -} diff --git a/public/locales/ko/common.json b/public/locales/ko/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/ko/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/ko/markdown.json b/public/locales/ko/markdown.json deleted file mode 100644 index 142547926b..0000000000 --- a/public/locales/ko/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "코드 복사", - "Copied!": "복사 완료!", - "Enter file name": "파일 이름을 입력하세요" -} diff --git a/public/locales/ko/promptbar.json b/public/locales/ko/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/ko/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/ko/sidebar.json b/public/locales/ko/sidebar.json deleted file mode 100644 index e83cb3948d..0000000000 --- a/public/locales/ko/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "새 폴더", - "New chat": "새 채팅", - "No conversations.": "대화가 없습니다.", - "Search conversations...": "대화 검색...", - "OpenAI API Key": "OpenAI API 키", - "Import data": "대화 가져오기", - "Are you sure?": "확실합니까?", - "Clear conversations": "대화 지우기", - "Export data": "대화 내보내기", - "Dark mode": "다크 모드", - "Light mode": "라이트 모드" -} \ No newline at end of file diff --git a/public/locales/pt/chat.json b/public/locales/pt/chat.json deleted file mode 100644 index 4d7436ba12..0000000000 --- a/public/locales/pt/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "A API Key da OpenAI é necessária", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Por favor, insira sua API Key da OpenAI no canto inferior esquerdo da barra lateral.", - "Stop Generating": "Parar de gerar", - "Prompt limit is {{maxLength}} characters": "O limite da mensagem é de {{maxLength}} caracteres", - "System Prompt": "Mensagem do sistema", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Você é o ChatGPT, um grande modelo de linguagem treinado pela OpenAI. Siga as instruções do usuário cuidadosamente. Responda usando markdown.", - "Enter a prompt": "Insira uma mensagem", - "Regenerate response": "Gerar resposta novamente", - "Sorry, there was an error.": "Desculpe, ocorreu um erro.", - "Model": "Modelo", - "Conversation": "Conversação", - "OR": "Ou", - "Loading...": "Carregando...", - "Type a message...": "Escreva uma mensagem...", - "Error fetching models.": "Erro ao buscar os modelos.", - "AI": "IA", - "You": "Você", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Certifique-se de que sua API Key da OpenAI esteja definida na parte inferior esquerda da barra lateral.", - "If you completed this step, OpenAI may be experiencing issues.": "Se você concluiu esta etapa, o OpenAI pode estar com problemas.", - "click if using a .env.local file": "clique se estiver usando um arquivo .env.local", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "O limite de mensagens é de {{maxLength}} caracteres. Você inseriu {{valueLength}} caracteres", - "Please enter a message": "Por favor, insira uma mensagem", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI é um kit de chatbot avançado para os modelos de chat do OpenAI com o objetivo de imitar a interface e a funcionalidade do ChatGPT.", - "Are you sure you want to clear all messages?": "Tem certeza de que deseja limpar todas as mensagens?" -} diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/pt/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/pt/markdown.json b/public/locales/pt/markdown.json deleted file mode 100644 index a560f63be1..0000000000 --- a/public/locales/pt/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Copiar código", - "Copied!": "Copiado!", - "Enter file name": "Insira o nome do arquivo" -} diff --git a/public/locales/pt/promptbar.json b/public/locales/pt/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/pt/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/pt/sidebar.json b/public/locales/pt/sidebar.json deleted file mode 100644 index ca34d5df00..0000000000 --- a/public/locales/pt/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Nova pasta", - "New chat": "Novo chat", - "No conversations.": "Não há conversas.", - "Search conversations...": "Buscar conversas...", - "OpenAI API Key": "API Key da OpenAI", - "Import data": "Importar conversas", - "Are you sure?": "Tem certeza?", - "Clear conversations": "Apagar conversas", - "Export data": "Exportar conversas", - "Dark mode": "Modo escuro", - "Light mode": "Modo claro" -} \ No newline at end of file diff --git a/public/locales/ru/chat.json b/public/locales/ru/chat.json deleted file mode 100644 index ff1effff3a..0000000000 --- a/public/locales/ru/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "Необходим ключ OpenAI", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Пожалуйста введите API-ключ OpenAI в левом нижнем углу", - "Stop Generating": "Прекратить", - "Prompt limit is {{maxLength}} characters": "Лимит сообщения на символы: {{maxLength}} символов", - "System Prompt": "Системное сообщение", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Вы ChatGPT, большая языковая модель, созданная компанией OpenAI. Следуйте инструкциям пользователя. Отвечайте на сообщения, используя Markdown", - "Enter a prompt": "Введите сообщение", - "Regenerate response": "Перегенерировать сообщение", - "Sorry, there was an error.": "Просим прощения, произошла ошибка", - "Model": "Модель", - "Conversation": "Чат", - "OR": "ИЛИ", - "Loading...": "Пожалуйста подождите...", - "Type a message...": "Введите сообщение...", - "Error fetching models.": "Ошибка при получении списка моделей", - "AI": "Бот", - "You": "Вы", - "Cancel": "Отмена", - "Save & Submit": "Отредактировать", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Убедитесь, что вы ввели API-ключ OpenAI.", - "If you completed this step, OpenAI may be experiencing issues.": "Если вы выполнили этот шаг, то возможно OpenAI может испытывать проблемы", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Лимит сообщения: {{maxLength}} символов. Вы ввели {{valueLength}} символов.", - "Please enter a message": "Пожалуйста введите сообщение", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI - продвинутый интерфейс чатбота для чат-моделей OpenAI, имитирующий интерфейс ChatGPT", - "Are you sure you want to clear all messages?": "Вы уверены, что хотите удалить все сообщения?" -} diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/ru/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/ru/markdown.json b/public/locales/ru/markdown.json deleted file mode 100644 index 8c333a4867..0000000000 --- a/public/locales/ru/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Скопировать", - "Copied!": "Скопировано!", - "Enter file name": "Введите имя файла для загрузки" -} diff --git a/public/locales/ru/promptbar.json b/public/locales/ru/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/ru/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/ru/sidebar.json b/public/locales/ru/sidebar.json deleted file mode 100644 index c7cf1b0a85..0000000000 --- a/public/locales/ru/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Новая папка", - "New chat": "Новый чат", - "No conversations.": "Нет чатов.", - "Search conversations...": "Поиск чатов...", - "OpenAI API Key": "API-ключ OpenAI", - "Import data": "Импортировать чаты", - "Are you sure?": "Вы уверены?", - "Clear conversations": "Удалить чаты", - "Export data": "Экспортировать чаты", - "Dark mode": "Темный режим", - "Light mode": "Светлый режим" -} \ No newline at end of file diff --git a/public/locales/si/chat.json b/public/locales/si/chat.json deleted file mode 100644 index 12736c495d..0000000000 --- a/public/locales/si/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "OpenAI API යතුර අවශ්‍යයි", - "Please set your OpenAI API key in the bottom left of the sidebar.": "කරුණාකර ඔබේ OpenAI API යතුර පැති තීරුවේ පහළ වම්පසින් සකසන්න.", - "Stop Generating": "උත්පාදනය නවත්වන්න", - "Prompt limit is {{maxLength}} characters": "වචන සීමාව අනුලකුණු {{maxLength}} කි", - "System Prompt": "පද්ධති ඉඟිය", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "ඔබ ChatGPT, OpenAI විසින් පුහුණු කරන ලද විශාල භාෂා ආකෘතියකි. පරිශීලක උපදෙස් ප්රවේශමෙන් අනුගමනය කරන්න. මාර්ක්ඩවුන් භාවිතයෙන් ප්‍රතිචාර දක්වන්න.", - "Enter a prompt": "ප්‍රේරකයක් ඇතුළු කරන්න", - "Regenerate response": "ප්‍රතිචාරය පුනර්ජනනය කරන්න", - "Sorry, there was an error.": "සමාවන්න, දෝෂයක් ඇති විය.", - "Model": "ආකෘතිය", - "Conversation": "සංවාදය", - "OR": "හෝ", - "Loading...": "පූරණය වෙමින්...", - "Type a message...": "පණිවිඩයක් ටයිප් කරන්න...", - "Error fetching models.": "ආකෘති ලබා ගැනීමේ දෝෂයකි.", - "AI": "AI", - "You": "ඔබ", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "ඔබේ OpenAI API යතුර පැති තීරුවේ පහළ වම්පස සකසා ඇති බවට වග බලා ගන්න.", - "If you completed this step, OpenAI may be experiencing issues.": "ඔබ මෙම පියවර සම්පූර්ණ කළේ නම්, OpenAI හි ගැටලුවක් විය හැකිය.", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "පණිවිඩ සීමාව අකුරු {{maxLength}} කි. ඔබ අක්ෂර {{valueLength}} ඇතුළත් කර ඇත.।", - "Please enter a message": "කරුණාකර පණිවිඩයක් ඇතුළු කරන්න", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI යනු ChatGPT හි අතුරු මුහුණත සහ ක්‍රියාකාරීත්වය අනුකරණය කිරීම අරමුණු කරගත් OpenAI හි චැට් මාදිලි සඳහා වන උසස් චැට්බෝට් කට්ටලයකි.", - "Are you sure you want to clear all messages?": "ඔබට සියලු පණිවිඩ හිස් කිරීමට අවශ්‍ය බව විශ්වාසද?" -} diff --git a/public/locales/si/common.json b/public/locales/si/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/si/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/si/markdown.json b/public/locales/si/markdown.json deleted file mode 100644 index c0e98f3ffb..0000000000 --- a/public/locales/si/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "කේතය පිටපත් කරන්න", - "Copied!": "පිටපත් කළා!", - "Enter file name": "ගොනු නාමය ඇතුළත් කරන්න" -} diff --git a/public/locales/si/promptbar.json b/public/locales/si/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/si/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/si/sidebar.json b/public/locales/si/sidebar.json deleted file mode 100644 index a7f3947352..0000000000 --- a/public/locales/si/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "නව ෆෝල්ඩරය", - "New chat": "නව සංවාදයක්", - "No conversations.": "සංවාද නැත.", - "Search conversations...": "සංවාද සොයන්න...", - "OpenAI API Key": "OpenAI API යතුර", - "Import data": "සංවාද ආයාත කරන්න", - "Are you sure?": "ඔබට විශ්වාස ද?", - "Clear conversations": "සංවාද මකන්න", - "Export data": "සංවාද නිර්යාත කරන්න", - "Dark mode": "අඳුරු මාදිලිය", - "Light mode": "ආලෝක මාදිලිය" -} \ No newline at end of file diff --git a/public/locales/sv/chat.json b/public/locales/sv/chat.json deleted file mode 100644 index 6bd9d2352a..0000000000 --- a/public/locales/sv/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "OpenAI API-nyckel krävs", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Vänligen ange din OpenAI API-nyckel längst ner till vänster i sidofältet.", - "Stop Generating": "Sluta generera", - "Prompt limit is {{maxLength}} characters": "Din prompt kan inte ha fler än {{maxLength}} tecken", - "System Prompt": "System prompt", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Du är ChatGPT, en stor språkmodell tränad av OpenAI. Följ användarens instruktioner noggrant. Svara genom att använda markdown.", - "Enter a prompt": "Ange en prompt", - "Regenerate response": "Återskapa svar", - "Sorry, there was an error.": "Ursäkta, det uppstod ett fel.", - "Model": "Modell", - "Conversation": "Konversation", - "OR": "ELLER", - "Loading...": "Laddar...", - "Type a message...": "Skriv ett meddelande...", - "Error fetching models.": "Det gick inte att hämta modeller.", - "AI": "AI", - "You": "Du", - "Cancel": "Avbryt", - "Save & Submit": "Spara & Skicka", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Se till att du har angett din OpenAI API-nyckel längst ner till vänster i sidofältet.", - "If you completed this step, OpenAI may be experiencing issues.": "Om du slutförde det här steget kan OpenAI ha problem.", - "click if using a .env.local file": "klicka om du använder en .env.local-fil", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Meddelandegränsen är {{maxLength}} tecken. Du har angett {{valueLength}} tecken.", - "Please enter a message": "Vänligen ange ett meddelande", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI är ett avancerat chatbot-kit för OpenAI:s chattmodeller som syftar till att efterlikna ChatGPT:s gränssnitt och funktionalitet.", - "Are you sure you want to clear all messages?": "Är du säker på att du vill rensa alla meddelanden?" -} diff --git a/public/locales/sv/common.json b/public/locales/sv/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/sv/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/sv/markdown.json b/public/locales/sv/markdown.json deleted file mode 100644 index 5b7feaa8c6..0000000000 --- a/public/locales/sv/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Kopiera kod", - "Copied!": "Kopierad!", - "Enter file name": "Ange filnamn" -} diff --git a/public/locales/sv/promptbar.json b/public/locales/sv/promptbar.json deleted file mode 100644 index a1ba5d4d0b..0000000000 --- a/public/locales/sv/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "Ny prompt", - "New folder": "Ny mapp", - "No prompts.": "Inga prompts.", - "Search prompts...": "Sök prompts...", - "Name": "Namn", - "Description": "Beskrivning", - "A description for your prompt.": "En beskrivning för din prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt-innehåll. Använd {{}} för att beteckna en variabel. Ex: {{namn}} är ett {{adjektiv}} {{substantiv}}", - "Save": "Spara" -} \ No newline at end of file diff --git a/public/locales/sv/sidebar.json b/public/locales/sv/sidebar.json deleted file mode 100644 index e502882796..0000000000 --- a/public/locales/sv/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Ny mapp", - "New chat": "Ny chatt", - "No conversations.": "Inga konversationer.", - "Search conversations...": "Sök konversationer...", - "OpenAI API Key": "OpenAI API-nyckel", - "Import data": "Importera konversationer", - "Are you sure?": "Är du säker?", - "Clear conversations": "Radera konversationer", - "Export data": "Exportera konversationer", - "Dark mode": "Mörkt läge", - "Light mode": "Ljust läge" -} \ No newline at end of file diff --git a/public/locales/te/chat.json b/public/locales/te/chat.json deleted file mode 100644 index 11475c1f10..0000000000 --- a/public/locales/te/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "ఒపెన్ ఎయి ఐ API కీ అవసరం", - "Please set your OpenAI API key in the bottom left of the sidebar.": "దయచేసి మీ OpenAI API కీని సైడ్ బార్ యొక్క దిగువ ఎడమ భాగంలో సెట్ చేయండి.", - "Stop Generating": "జెనరేట్ చేస్తున్న ప్రక్రియ నిలిపేయి", - "Prompt limit is {{maxLength}} characters": "ప్రాంప్ట్(సంకేతం) పరిమితి {{maxLength}} అక్షరాలు మాత్రమే", - "System Prompt": "సిస్టమ్ ప్రాంప్ట్", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "మీరు ChatGPT, ఒక పెద్ద భాషా మోడల్ ఓపెన్‌ఏఐ ద్వారా ట్రైన్ చేయబడింది. యూజర్ ఇన్స్ట్రక్షన్స్ కనుగొనండి. మార్క్‌డౌన్ ఉపయోగించి సమాధానం ఇవ్వండి.", - "Enter a prompt": "ఒక ప్రాంప్ట్(సంకేతం) నమోదు చేయండి", - "Regenerate response": "పునరుత్పాదించు సమాధానం", - "Sorry, there was an error.": "క్షమించండి, ఒక పొరపాటు జరిగింది.", - "Model": "మోడల్", - "Conversation": "సంవాదం", - "OR": "లేదా", - "Loading...": "లోడ్ అవుతోంది...", - "Type a message...": "సందేశం టైప్ చేయండి...", - "Error fetching models.": "మోడల్స్ పొందడం లోపం జరిగింది.", - "AI": "AI", - "You": "నీవు", - "Cancel": "Cancel", - "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "మీరు ఖాళీలో ఎడమ ఎరుగులో మీ OpenAI API కీను సెట్ చేస్తున్నారని ఖచ్చితం చేయండి.", - "If you completed this step, OpenAI may be experiencing issues.": "మీరు ఈ హంతం పూర్తి చేసినా, OpenAI సమస్యలు ఉన్నట్లు ఉంటాయి.", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "సందేశం పరిమితి {{maxLength}} అక్షరాలు. మీరు {{valueLength}} అక్షరాలు నమోదు చేసారు.", - "Please enter a message": "దయచేసి ఒక సందేశం నమోదు చేయండి", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI ఒక అభ్యంతర సంవిధానం మరియు కార్యాచరణ లక్ష్యం తీసుకున్న OpenAI ఛాట్ మోడల్లలో మార్పులు చేయడానికి ప్రయత్నిస్తుంది, ChatGPT ఇంటర్ఫేస్ మరియు కార్యాచరణను అనుకరించడానికి.", - "Are you sure you want to clear all messages?": "మీరు అన్ని సందేశాలను తొలగించాలా?" -} diff --git a/public/locales/te/common.json b/public/locales/te/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/te/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/te/markdown.json b/public/locales/te/markdown.json deleted file mode 100644 index 6134fb37a4..0000000000 --- a/public/locales/te/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "కోడ్‌ను కాపీ చేయండి", - "Copied!": "కాపీ చేయబడింది!", - "Enter file name": "ఫైల్ పేరు నమోదు చేయండి" -} diff --git a/public/locales/te/promptbar.json b/public/locales/te/promptbar.json deleted file mode 100644 index 362e712561..0000000000 --- a/public/locales/te/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "New prompt", - "New folder": "New folder", - "No prompts.": "No prompts.", - "Search prompts...": "Search prompts...", - "Name": "Name", - "Description": "Description", - "A description for your prompt.": "A description for your prompt.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}", - "Save": "Save" -} \ No newline at end of file diff --git a/public/locales/te/sidebar.json b/public/locales/te/sidebar.json deleted file mode 100644 index 9f37085101..0000000000 --- a/public/locales/te/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "కొత్త ఫోల్డర్", - "New chat": "కొత్త చాట్", - "No conversations.": "సంభాషణలు లేవు.", - "Search conversations...": "సంభాషణలు వెతకండి...", - "OpenAI API Key": "ఒపెన్ ఎయి ఐ API కీ ", - "Import data": "సంభాషణలు దిగుమతి చేయండి", - "Are you sure?": "మీరు ఖచ్చితంగా ఉన్నారా?", - "Clear conversations": "సంభాషణలు తొలగించు", - "Export data": "సంభాషణలు ఎగుమతి చేయండి", - "Dark mode": "డార్క్ మోడ్", - "Light mode": "లైట్ మోడ్" -} \ No newline at end of file diff --git a/public/locales/vi/chat.json b/public/locales/vi/chat.json deleted file mode 100644 index 988994b993..0000000000 --- a/public/locales/vi/chat.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "OpenAI API Key Required": "Yêu cầu nhập API Key từ tài khoản OpenAI", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Vui lòng nhập API Key từ tài khoản OpenAI của bạn vào ô dưới cùng của thanh bên trái.", - "Stop Generating": "Dừng tạo", - "Prompt limit is {{maxLength}} characters": "Giới hạn Prompt là {{maxLength}} ký tự", - "System Prompt": "Prompt hệ thống", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Bạn là ChatGPT, một mô hình ngôn ngữ lớn được đào tạo bởi OpenAI. Hãy tuân theo hướng dẫn của người dùng một cách cẩn thận. Phản hồi bằng cách sử dụng định dạng markdown.", - "Enter a prompt": "Nhập một Prompt", - "Regenerate response": "Tạo lại phản hồi", - "Sorry, there was an error.": "Xin lỗi, đã xảy ra lỗi.", - "Model": "Mô hình", - "Conversation": "Cuộc trò chuyện", - "OR": "HOẶC", - "Loading...": "Đang tải...", - "Type a message...": "Nhập một tin nhắn...", - "Error fetching models.": "Lỗi khi truy xuất mô hình.", - "AI": "AI", - "You": "Bạn", - "Cancel": "Hủy", - "Save & Submit": "Lưu & Gửi", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Hãy đảm bảo rằng khóa API từ tài khoản OpenAI của bạn đã được nhập vào ô dưới cùng của thanh bên trái.", - "If you completed this step, OpenAI may be experiencing issues.": "Nếu bạn đã hoàn thành bước này, OpenAI có thể đang gặp sự cố.", - "click if using a .env.local file": "Bấm vào đây nếu dùng tệp .env.local", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Giới hạn tin nhắn là {{maxLength}} ký tự. Bạn đã nhập {{valueLength}} ký tự.", - "Please enter a message": "Vui lòng nhập một tin nhắn", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI là một bộ công cụ chatbot tiên tiến cho các mô hình chat của OpenAI nhằm mô phỏng giao diện và chức năng của ChatGPT.", - "Are you sure you want to clear all messages?": "Bạn có chắc chắn muốn xóa tất cả tin nhắn không?" -} diff --git a/public/locales/vi/common.json b/public/locales/vi/common.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/public/locales/vi/common.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/public/locales/vi/markdown.json b/public/locales/vi/markdown.json deleted file mode 100644 index f5c0c92d49..0000000000 --- a/public/locales/vi/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "Sao chép mã", - "Copied!": "Đã sao chép!", - "Enter file name": "Nhập tên file" -} diff --git a/public/locales/vi/promptbar.json b/public/locales/vi/promptbar.json deleted file mode 100644 index 3e00a0a189..0000000000 --- a/public/locales/vi/promptbar.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "New prompt": "Prompt mới", - "New folder": "Thư mục mới", - "No prompts.": "Không có Prompt nào.", - "Search prompts...": "Tìm kiếm các Prompt...", - "Name": "Tên", - "Description": "Mô tả", - "A description for your prompt.": "Một mô tả cho Prompt của bạn.", - "Prompt": "Prompt", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "Nội dung Prompt. Sử dụng {{}} để biểu thị một biến. Ví dụ: {{name}} là một {{adjective}} {{noun}}", - "Save": "Lưu" -} diff --git a/public/locales/vi/sidebar.json b/public/locales/vi/sidebar.json deleted file mode 100644 index e375501efe..0000000000 --- a/public/locales/vi/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "Thư mục mới", - "New chat": "Tạo hội thoại mới", - "No conversations.": "Không có hội thoại nào.", - "Search conversations...": "Tìm kiếm các cuộc hội thoại...", - "OpenAI API Key": "OpenAI API Key", - "Import data": "Nhập dữ liệu hội thoại", - "Are you sure?": "Bạn chắc chắn chứ?", - "Clear conversations": "Xoá các đoạn hội thoại", - "Export data": "Xuất dữ liệu hội thoại", - "Dark mode": "Chế độ tối", - "Light mode": "Chế độ sáng" -} \ No newline at end of file diff --git a/public/locales/zh/chat.json b/public/locales/zh/chat.json deleted file mode 100644 index 3d2558daa7..0000000000 --- a/public/locales/zh/chat.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "OpenAI API Key Required": "需要 OpenAI API 密钥", - "Please set your OpenAI API key in the bottom left of the sidebar.": "请在侧边栏左下角设置您的 OpenAI API 密钥。", - "If you don't have an OpenAI API key, you can get one here: ": "如果你没有 OpenAI API 密钥,你可以在此获取:", - "Stop Generating": "停止生成", - "Prompt limit is {{maxLength}} characters": "提示字数限制为 {{maxLength}} 个字符", - "System Prompt": "系统提示", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "你是 ChatGPT,一个由 OpenAI 训练的大型语言模型。请仔细遵循用户的指示。使用 Markdown 格式进行回应。", - "Enter a prompt": "输入一个提示", - "Regenerate response": "重新生成回应", - "Sorry, there was an error.": "抱歉,出现了错误。", - "Model": "模型", - "Conversation": "对话", - "OR": "或", - "Loading...": "加载中...", - "Type a message or type \"/\" to select a prompt...": "输入一条消息或键入 \"/\" 以选择提示...", - "Error fetching models.": "获取模型时出错。", - "AI": "AI", - "You": "你", - "Cancel": "取消", - "Save & Submit": "保存并提交", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "请确保您的 OpenAI API 密钥已在侧边栏左下角设置。", - "If you completed this step, OpenAI may be experiencing issues.": "如果您已完成此步骤,OpenAI 可能遇到了问题。", - "click if using a .env.local file": "click if using a .env.local file", - "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "消息字数限制为 {{maxLength}} 个字符。您已输入 {{valueLength}} 个字符。", - "Please enter a message": "请输入一条消息", - "Chatbot UI is an advanced chatbot kit for OpenAI's chat models aiming to mimic ChatGPT's interface and functionality.": "Chatbot UI 是一个高级聊天机器人工具包,旨在模仿 OpenAI 聊天模型的 ChatGPT 界面和功能。", - "Are you sure you want to clear all messages?": "你确定要清除所有的消息吗?" -} \ No newline at end of file diff --git a/public/locales/zh/common.json b/public/locales/zh/common.json deleted file mode 100644 index 0967ef424b..0000000000 --- a/public/locales/zh/common.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/public/locales/zh/markdown.json b/public/locales/zh/markdown.json deleted file mode 100644 index c5bdeba584..0000000000 --- a/public/locales/zh/markdown.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Copy code": "复制代码", - "Copied!": "已复制!", - "Enter file name": "输入文件名" -} diff --git a/public/locales/zh/promptbar.json b/public/locales/zh/promptbar.json deleted file mode 100644 index 9f45f00e95..0000000000 --- a/public/locales/zh/promptbar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New prompt": "新建提示", - "New folder": "新建文件夹", - "No prompts.": "无提示词", - "Search prompts...": "搜索提示...", - "Name": "名称", - "A name for your prompt.": "提示词名称", - "Description": "描述", - "A description for your prompt.": "提示词描述", - "Prompt": "提示词", - "Prompt content. Use {{}} to denote a variable. Ex: {{name}} is a {{adjective}} {{noun}}": "提示内容。使用 {{}} 表示一个变量。例如:{{name}} 是一个 {{adjective}} {{noun}}", - "Save": "保存" -} \ No newline at end of file diff --git a/public/locales/zh/sidebar.json b/public/locales/zh/sidebar.json deleted file mode 100644 index 3b35663c6f..0000000000 --- a/public/locales/zh/sidebar.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "New folder": "新建文件夹", - "New chat": "新建聊天", - "No conversations.": "无对话", - "Search conversations...": "搜索对话...", - "OpenAI API Key": "OpenAI API 密钥", - "Import data": "导入对话", - "Are you sure?": "确定吗?", - "Clear conversations": "清空对话", - "Export data": "导出对话", - "Dark mode": "深色模式", - "Light mode": "浅色模式" -} \ No newline at end of file From 505e6626787d89e0ec3bf768bc422b78ca79f336 Mon Sep 17 00:00:00 2001 From: phebing Date: Tue, 27 Feb 2024 13:16:48 +0100 Subject: [PATCH 2/6] Get rid of openAI Key / Account references --- .env.local.example | 3 +- Makefile | 2 +- components/Chat/Chat.tsx | 46 +-------------- components/Chat/ModelSelect.tsx | 6 -- components/Chatbar/Chatbar.tsx | 6 -- components/Chatbar/ChatbarSettings.tsx | 7 --- components/Settings/Key.tsx | 77 -------------------------- docker-compose.yml | 2 - k8s/chatbot-ui.yaml | 9 +-- pages/api/chat.ts | 4 +- pages/api/google.ts | 6 +- pages/api/models.ts | 8 --- pages/index.tsx | 41 ++------------ public/locales/de/chat.json | 5 +- public/locales/de/sidebar.json | 1 - types/chat.ts | 1 - types/env.ts | 2 - types/storage.ts | 1 - utils/app/const.ts | 5 +- utils/server/index.ts | 5 -- 20 files changed, 18 insertions(+), 219 deletions(-) delete mode 100644 components/Settings/Key.tsx diff --git a/.env.local.example b/.env.local.example index 003bf57dd8..9056ea2914 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,7 +1,6 @@ # Chatbot UI DEFAULT_MODEL=gpt-3.5-turbo -DEFAULT_SYSTEM_PROMPT=You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown. -OPENAI_API_KEY=YOUR_KEY +DEFAULT_SYSTEM_PROMPT=You are SlashLLM, a large language model that assists the user. In doing so, you respond concisely and precisely. You utilize Markdown format in your answers. Always stay close to the user's provided information. # Google GOOGLE_API_KEY=YOUR_API_KEY diff --git a/Makefile b/Makefile index 8dc4e12dc2..07abf5c3ac 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ build: run: export $(cat .env | xargs) docker stop chatbot-ui || true && docker rm chatbot-ui || true - docker run --name chatbot-ui --rm -e OPENAI_API_KEY=${OPENAI_API_KEY} -p 3000:3000 chatbot-ui + docker run --name chatbot-ui --rm -p 3000:3000 chatbot-ui logs: docker logs -f chatbot-ui diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index c7dcf525c8..c83145e890 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -27,8 +27,6 @@ import { SystemPrompt } from './SystemPrompt'; interface Props { conversation: Conversation; models: OpenAIModel[]; - apiKey: string; - serverSideApiKeyIsSet: boolean; defaultModelId: OpenAIModelID; messageIsStreaming: boolean; modelError: ErrorMessage | null; @@ -51,8 +49,6 @@ export const Chat: FC = memo( ({ conversation, models, - apiKey, - serverSideApiKeyIsSet, defaultModelId, messageIsStreaming, modelError, @@ -154,47 +150,7 @@ export const Chat: FC = memo( return (
- {!(apiKey || serverSideApiKeyIsSet) ? ( -
-
- Welcome to Chatbot UI -
-
-
{`Chatbot UI is an open source clone of OpenAI's ChatGPT UI.`}
-
- Important: Chatbot UI is 100% unaffiliated with OpenAI. -
-
-
-
- Chatbot UI allows you to plug in your API key to use this UI - with their API. -
-
- It is only used to communicate - with their API. -
-
- {t( - 'Please set your OpenAI API key in the bottom left of the sidebar.', - )} -
-
- {t( - "If you don't have an OpenAI API key, you can get one here: ", - )} - - openai.com - -
-
-
- ) : modelError ? ( + { modelError ? ( ) : ( <> diff --git a/components/Chat/ModelSelect.tsx b/components/Chat/ModelSelect.tsx index cdd9e7ecbd..bc861f6d2a 100644 --- a/components/Chat/ModelSelect.tsx +++ b/components/Chat/ModelSelect.tsx @@ -49,12 +49,6 @@ export const ModelSelect: FC = ({ ))}
-
- - - {t('View Account Usage')} - -
); }; diff --git a/components/Chatbar/Chatbar.tsx b/components/Chatbar/Chatbar.tsx index 9d952dc566..7c19d35aab 100644 --- a/components/Chatbar/Chatbar.tsx +++ b/components/Chatbar/Chatbar.tsx @@ -16,7 +16,6 @@ interface Props { conversations: Conversation[]; lightMode: 'light' | 'dark'; selectedConversation: Conversation; - apiKey: string; pluginKeys: PluginKey[]; folders: Folder[]; onCreateFolder: (name: string) => void; @@ -30,7 +29,6 @@ interface Props { conversation: Conversation, data: KeyValuePair, ) => void; - onApiKeyChange: (apiKey: string) => void; onClearConversations: () => void; onExportConversations: () => void; onImportConversations: (data: SupportedExportFormats) => void; @@ -43,7 +41,6 @@ export const Chatbar: FC = ({ conversations, lightMode, selectedConversation, - apiKey, pluginKeys, folders, onCreateFolder, @@ -54,7 +51,6 @@ export const Chatbar: FC = ({ onSelectConversation, onDeleteConversation, onUpdateConversation, - onApiKeyChange, onClearConversations, onExportConversations, onImportConversations, @@ -197,11 +193,9 @@ export const Chatbar: FC = ({ void; - onApiKeyChange: (apiKey: string) => void; onClearConversations: () => void; onExportConversations: () => void; onImportConversations: (data: SupportedExportFormats) => void; @@ -25,11 +22,9 @@ interface Props { export const ChatbarSettings: FC = ({ lightMode, - apiKey, pluginKeys, conversationsCount, onToggleLightMode, - onApiKeyChange, onClearConversations, onExportConversations, onImportConversations, @@ -62,8 +57,6 @@ export const ChatbarSettings: FC = ({ } /> - - void; -} - -export const Key: FC = ({ apiKey, onApiKeyChange }) => { - const { t } = useTranslation('sidebar'); - const [isChanging, setIsChanging] = useState(false); - const [newKey, setNewKey] = useState(apiKey); - const inputRef = useRef(null); - - const handleEnterDown = (e: KeyboardEvent) => { - if (e.key === 'Enter') { - e.preventDefault(); - handleUpdateKey(newKey); - } - }; - - const handleUpdateKey = (newKey: string) => { - onApiKeyChange(newKey.trim()); - setIsChanging(false); - }; - - useEffect(() => { - if (isChanging) { - inputRef.current?.focus(); - } - }, [isChanging]); - - return isChanging ? ( -
- - - setNewKey(e.target.value)} - onKeyDown={handleEnterDown} - placeholder={t('API Key') || 'API Key'} - /> - -
- { - e.stopPropagation(); - handleUpdateKey(newKey); - }} - /> - - { - e.stopPropagation(); - setIsChanging(false); - setNewKey(apiKey); - }} - /> -
-
- ) : ( - } - onClick={() => setIsChanging(true)} - /> - ); -}; diff --git a/docker-compose.yml b/docker-compose.yml index feb99e3ffd..c1649068b5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,5 +5,3 @@ services: build: . # ports: # - 3000:3000 - # environment: - # - 'OPENAI_API_KEY=' diff --git a/k8s/chatbot-ui.yaml b/k8s/chatbot-ui.yaml index 89b9472114..408ad79a55 100644 --- a/k8s/chatbot-ui.yaml +++ b/k8s/chatbot-ui.yaml @@ -9,8 +9,7 @@ metadata: namespace: chatbot-ui name: chatbot-ui type: Opaque -data: - OPENAI_API_KEY: + --- apiVersion: apps/v1 kind: Deployment @@ -35,12 +34,6 @@ spec: resources: {} ports: - containerPort: 3000 - env: - - name: OPENAI_API_KEY - valueFrom: - secretKeyRef: - name: chatbot-ui - key: OPENAI_API_KEY --- kind: Service apiVersion: v1 diff --git a/pages/api/chat.ts b/pages/api/chat.ts index 945d37b3b7..78439ff739 100644 --- a/pages/api/chat.ts +++ b/pages/api/chat.ts @@ -12,7 +12,7 @@ export const config = { const handler = async (req: Request): Promise => { try { - const { model, messages, key, prompt } = (await req.json()) as ChatBody; + const { model, messages, prompt } = (await req.json()) as ChatBody; await init((imports) => WebAssembly.instantiate(wasm, imports)); const encoding = new Tiktoken( @@ -44,7 +44,7 @@ const handler = async (req: Request): Promise => { encoding.free(); - const stream = await OpenAIStream(model, promptToSend, key, messagesToSend); + const stream = await OpenAIStream(model, promptToSend, messagesToSend); return new Response(stream); } catch (error) { diff --git a/pages/api/google.ts b/pages/api/google.ts index 1a130c82d3..5591511399 100644 --- a/pages/api/google.ts +++ b/pages/api/google.ts @@ -9,7 +9,7 @@ import { NextApiRequest, NextApiResponse } from 'next'; const handler = async (req: NextApiRequest, res: NextApiResponse) => { try { - const { messages, key, model, googleAPIKey, googleCSEId } = + const { messages, model, googleAPIKey, googleCSEId } = req.body as GoogleBody; const userMessage = messages[messages.length - 1]; @@ -111,10 +111,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { const answerRes = await fetch(`${OPENAI_API_HOST}/v1/chat/completions`, { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${key ? key : process.env.OPENAI_API_KEY}`, - ...(process.env.OPENAI_ORGANIZATION && { - 'OpenAI-Organization': process.env.OPENAI_ORGANIZATION, - }), }, method: 'POST', body: JSON.stringify({ diff --git a/pages/api/models.ts b/pages/api/models.ts index 310a8e2c4f..0bb45d418e 100644 --- a/pages/api/models.ts +++ b/pages/api/models.ts @@ -7,17 +7,9 @@ export const config = { const handler = async (req: Request): Promise => { try { - const { key } = (await req.json()) as { - key: string; - }; - const response = await fetch(`${OPENAI_API_HOST}/v1/models`, { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${key ? key : process.env.OPENAI_API_KEY}`, - ...(process.env.OPENAI_ORGANIZATION && { - 'OpenAI-Organization': process.env.OPENAI_ORGANIZATION, - }) }, }); diff --git a/pages/index.tsx b/pages/index.tsx index d0634650e5..7463c0b693 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -39,13 +39,11 @@ import toast from 'react-hot-toast'; import { v4 as uuidv4 } from 'uuid'; interface HomeProps { - serverSideApiKeyIsSet: boolean; serverSidePluginKeysSet: boolean; defaultModelId: OpenAIModelID; } const Home: React.FC = ({ - serverSideApiKeyIsSet, serverSidePluginKeysSet, defaultModelId, }) => { @@ -53,7 +51,6 @@ const Home: React.FC = ({ // STATE ---------------------------------------------- - const [apiKey, setApiKey] = useState(''); const [pluginKeys, setPluginKeys] = useState([]); const [loading, setLoading] = useState(false); const [lightMode, setLightMode] = useState<'dark' | 'light'>('dark'); @@ -113,7 +110,6 @@ const Home: React.FC = ({ const chatBody: ChatBody = { model: updatedConversation.model, messages: updatedConversation.messages, - key: apiKey, prompt: updatedConversation.prompt, }; @@ -288,15 +284,11 @@ const Home: React.FC = ({ // FETCH MODELS ---------------------------------------------- - const fetchModels = async (key: string) => { + const fetchModels = async () => { const error = { title: t('Error fetching models.'), code: null, messageLines: [ - t( - 'Make sure your OpenAI API key is set in the bottom left of the sidebar.', - ), - t('If you completed this step, OpenAI may be experiencing issues.'), ], } as ErrorMessage; @@ -306,7 +298,6 @@ const Home: React.FC = ({ 'Content-Type': 'application/json', }, body: JSON.stringify({ - key, }), }); @@ -340,11 +331,6 @@ const Home: React.FC = ({ localStorage.setItem('theme', mode); }; - const handleApiKeyChange = (apiKey: string) => { - setApiKey(apiKey); - localStorage.setItem('apiKey', apiKey); - }; - const handlePluginKeyChange = (pluginKey: PluginKey) => { if (pluginKeys.some((key) => key.pluginId === pluginKey.pluginId)) { const updatedPluginKeys = pluginKeys.map((key) => { @@ -646,11 +632,9 @@ const Home: React.FC = ({ } }, [selectedConversation]); - useEffect(() => { - if (apiKey) { - fetchModels(apiKey); - } - }, [apiKey]); + // useEffect(() => { + // fetchModels(); + // }); // ON LOAD -------------------------------------------- @@ -660,15 +644,7 @@ const Home: React.FC = ({ setLightMode(theme as 'dark' | 'light'); } - const apiKey = localStorage.getItem('apiKey'); - if (serverSideApiKeyIsSet) { - fetchModels(''); - setApiKey(''); - localStorage.removeItem('apiKey'); - } else if (apiKey) { - setApiKey(apiKey); - fetchModels(apiKey); - } + fetchModels(); const pluginKeys = localStorage.getItem('pluginKeys'); if (serverSidePluginKeysSet) { @@ -730,7 +706,7 @@ const Home: React.FC = ({ folderId: null, }); } - }, [serverSideApiKeyIsSet]); + }, []); return ( <> @@ -762,7 +738,6 @@ const Home: React.FC = ({ conversations={conversations} lightMode={lightMode} selectedConversation={selectedConversation} - apiKey={apiKey} pluginKeys={pluginKeys} folders={folders.filter((folder) => folder.type === 'chat')} onToggleLightMode={handleLightMode} @@ -773,7 +748,6 @@ const Home: React.FC = ({ onSelectConversation={handleSelectConversation} onDeleteConversation={handleDeleteConversation} onUpdateConversation={handleUpdateConversation} - onApiKeyChange={handleApiKeyChange} onClearConversations={handleClearConversations} onExportConversations={handleExportData} onImportConversations={handleImportConversations} @@ -805,8 +779,6 @@ const Home: React.FC = ({ { return { props: { - serverSideApiKeyIsSet: !!process.env.OPENAI_API_KEY, defaultModelId, serverSidePluginKeysSet, ...(await serverSideTranslations(locale ?? 'en', [ diff --git a/public/locales/de/chat.json b/public/locales/de/chat.json index 126815bd7f..faa4c4a8f2 100644 --- a/public/locales/de/chat.json +++ b/public/locales/de/chat.json @@ -1,10 +1,8 @@ { - "OpenAI API Key Required": "OpenAI API-Schlüssel erforderlich", - "Please set your OpenAI API key in the bottom left of the sidebar.": "Bitte trage deinen OpenAI API-Schlüssel in der linken unteren Ecke der Seitenleiste ein.", "Stop Generating": "Generieren stoppen", "Prompt limit is {{maxLength}} characters": "Das Eingabelimit liegt bei {{maxLength}} Zeichen", "System Prompt": "Systemaufforderung", - "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.": "Du bist ChatGPT, ein großes Sprachmodell, das von OpenAI trainiert wurde. Befolge die Anweisungen des Benutzers sorgfältig. Antworte in Markdown-Format.", + "You are SlashLLM, a large language model that assists the user. In doing so, you respond concisely and precisely. You utilize Markdown format in your answers. Always stay close to the user's provided information.": "Du bist SlashLLM, ein großes Sprachmodell, das dem Nutzer assistiert. Dabei antwortest du prägnant und präzise. Du verwendest das Markdown-Format in deinen Antworten. Bleibe stets nah an den Informationen des Nutzers.", "Enter a prompt": "Gib eine Anweisung ein", "Regenerate response": "Antwort erneut generieren", "Sorry, there was an error.": "Entschuldigung, es ist ein Fehler aufgetreten.", @@ -18,7 +16,6 @@ "You": "Du", "Cancel": "Cancel", "Save & Submit": "Save & Submit", - "Make sure your OpenAI API key is set in the bottom left of the sidebar.": "Stelle sicher, dass dein OpenAI API-Schlüssel in der unteren linken Ecke der Seitenleiste eingetragen ist.", "If you completed this step, OpenAI may be experiencing issues.": "Wenn dies der Fall ist, könnte OpenAI möglicherweise momentan Probleme haben.", "click if using a .env.local file": "click if using a .env.local file", "Message limit is {{maxLength}} characters. You have entered {{valueLength}} characters.": "Das Nachrichtenlimit beträgt {{maxLength}} Zeichen. Du hast bereits {{valueLength}} Zeichen eingegeben.", diff --git a/public/locales/de/sidebar.json b/public/locales/de/sidebar.json index 0661304999..7bcd045dbf 100644 --- a/public/locales/de/sidebar.json +++ b/public/locales/de/sidebar.json @@ -3,7 +3,6 @@ "New chat": "Neue Konversation", "No conversations.": "Keine Konversationen.", "Search conversations...": "Konversationen suchen...", - "OpenAI API Key": "OpenAI API-Schlüssel", "Import data": "Konversationen importieren", "Are you sure?": "Bist du sicher?", "Clear conversations": "Konversationen löschen", diff --git a/types/chat.ts b/types/chat.ts index c20e1fdd09..4d9f6fda49 100644 --- a/types/chat.ts +++ b/types/chat.ts @@ -10,7 +10,6 @@ export type Role = 'assistant' | 'user'; export interface ChatBody { model: OpenAIModel; messages: Message[]; - key: string; prompt: string; } diff --git a/types/env.ts b/types/env.ts index b6e4a54bff..444dc89f0e 100644 --- a/types/env.ts +++ b/types/env.ts @@ -1,5 +1,3 @@ export interface ProcessEnv { - OPENAI_API_KEY: string; OPENAI_API_HOST?: string; - OPENAI_ORGANIZATION?: string; } diff --git a/types/storage.ts b/types/storage.ts index acbcc0852a..e72de0793e 100644 --- a/types/storage.ts +++ b/types/storage.ts @@ -5,7 +5,6 @@ import { Prompt } from './prompt'; // keep track of local storage schema export interface LocalStorage { - apiKey: string; conversationHistory: Conversation[]; selectedConversation: Conversation; theme: 'light' | 'dark'; diff --git a/utils/app/const.ts b/utils/app/const.ts index 4155a3eb44..4ddde126cc 100644 --- a/utils/app/const.ts +++ b/utils/app/const.ts @@ -1,5 +1,8 @@ export const DEFAULT_SYSTEM_PROMPT = - process.env.DEFAULT_SYSTEM_PROMPT || "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown."; + process.env.DEFAULT_SYSTEM_PROMPT || "You are SlashLLM, a large language model that assists the user. In doing so, you respond concisely and precisely. You utilize Markdown format in your answers. Always stay close to the user's provided information."; export const OPENAI_API_HOST = process.env.OPENAI_API_HOST || 'https://api.openai.com'; + +export const DEFAULT_TEMPERATURE = + parseFloat(process.env.NEXT_PUBLIC_DEFAULT_TEMPERATURE || "1"); \ No newline at end of file diff --git a/utils/server/index.ts b/utils/server/index.ts index 711ae9b658..706a43c370 100644 --- a/utils/server/index.ts +++ b/utils/server/index.ts @@ -24,16 +24,11 @@ export class OpenAIError extends Error { export const OpenAIStream = async ( model: OpenAIModel, systemPrompt: string, - key: string, messages: Message[], ) => { const res = await fetch(`${OPENAI_API_HOST}/v1/chat/completions`, { headers: { 'Content-Type': 'application/json', - Authorization: `Bearer ${key ? key : process.env.OPENAI_API_KEY}`, - ...(process.env.OPENAI_ORGANIZATION && { - 'OpenAI-Organization': process.env.OPENAI_ORGANIZATION, - }), }, method: 'POST', body: JSON.stringify({ From d796b9a3ddef11f48f4958c88bb5280ee8c2c64f Mon Sep 17 00:00:00 2001 From: phebing Date: Tue, 27 Feb 2024 14:24:46 +0100 Subject: [PATCH 3/6] Comment out Plugins for now --- .env.local.example | 4 +- components/Chat/ChatInput.tsx | 4 +- components/Chatbar/ChatbarSettings.tsx | 4 +- components/Chatbar/PluginKeys.tsx | 4 +- pages/api/google.ts | 281 +++++++++++++------------ pages/index.tsx | 26 +-- types/google.ts | 33 +-- types/plugin.ts | 40 ++-- utils/app/api.ts | 6 +- utils/server/google.ts | 19 +- 10 files changed, 214 insertions(+), 207 deletions(-) diff --git a/.env.local.example b/.env.local.example index 9056ea2914..84a8da3dab 100644 --- a/.env.local.example +++ b/.env.local.example @@ -3,5 +3,5 @@ DEFAULT_MODEL=gpt-3.5-turbo DEFAULT_SYSTEM_PROMPT=You are SlashLLM, a large language model that assists the user. In doing so, you respond concisely and precisely. You utilize Markdown format in your answers. Always stay close to the user's provided information. # Google -GOOGLE_API_KEY=YOUR_API_KEY -GOOGLE_CSE_ID=YOUR_ENGINE_ID +# GOOGLE_API_KEY=YOUR_API_KEY +# GOOGLE_CSE_ID=YOUR_ENGINE_ID diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx index e5fc4216c4..774b21b58e 100644 --- a/components/Chat/ChatInput.tsx +++ b/components/Chat/ChatInput.tsx @@ -271,7 +271,7 @@ export const ChatInput: FC = ({ )}
-
- )} + )} */}