From 07c18501928ae64244c56bdfa99220e51671a000 Mon Sep 17 00:00:00 2001 From: arvinxx Date: Tue, 9 Jul 2024 21:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20chore:=20update=20locale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ar/modelProvider.json | 20 ++++++++ locales/bg-BG/modelProvider.json | 20 ++++++++ locales/de-DE/modelProvider.json | 20 ++++++++ locales/en-US/common.json | 4 +- locales/en-US/modelProvider.json | 20 ++++++++ locales/es-ES/modelProvider.json | 20 ++++++++ locales/fr-FR/modelProvider.json | 20 ++++++++ locales/it-IT/modelProvider.json | 20 ++++++++ locales/ja-JP/modelProvider.json | 20 ++++++++ locales/ko-KR/modelProvider.json | 20 ++++++++ locales/nl-NL/modelProvider.json | 20 ++++++++ locales/pl-PL/modelProvider.json | 20 ++++++++ locales/pt-BR/modelProvider.json | 20 ++++++++ locales/ru-RU/modelProvider.json | 20 ++++++++ locales/tr-TR/modelProvider.json | 20 ++++++++ locales/vi-VN/modelProvider.json | 20 ++++++++ locales/vi-VN/setting.json | 16 +++--- locales/zh-CN/modelProvider.json | 20 ++++++++ locales/zh-TW/modelProvider.json | 20 ++++++++ src/config/modelProviders/wenxin.ts | 76 +++++++++++++++++++++++++++-- 20 files changed, 420 insertions(+), 16 deletions(-) diff --git a/locales/ar/modelProvider.json b/locales/ar/modelProvider.json index c86dcf3a884a..06c5462c1573 100644 --- a/locales/ar/modelProvider.json +++ b/locales/ar/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "أدخل مفتاح الوصول إلى منصة بايدو كيانفان", + "placeholder": "مفتاح الوصول كيانفان", + "title": "مفتاح الوصول" + }, + "checker": { + "desc": "اختبار ما إذا كان مفتاح الوصول / مفتاح الوصول السري مكتوب بشكل صحيح" + }, + "secretKey": { + "desc": "أدخل مفتاح السر إلى منصة بايدو كيانفان", + "placeholder": "مفتاح السر كيانفان", + "title": "مفتاح السر" + }, + "unlock": { + "customRegion": "منطقة خدمة مخصصة", + "description": "قم بإدخال مفتاح الوصول / مفتاح السر الخاص بك لبدء الجلسة. لن يتم تسجيل تكوين المصادقة الخاص بك من قبل التطبيق", + "title": "استخدام معلومات مصادقة ونشين واحد مخصصة" + } + }, "zeroone": { "title": "01.AI الأشياء الصغرى" }, diff --git a/locales/bg-BG/modelProvider.json b/locales/bg-BG/modelProvider.json index 30e481a8d1f0..d787f2100448 100644 --- a/locales/bg-BG/modelProvider.json +++ b/locales/bg-BG/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "Въведете Access Key на платформата Qianfan на Baidu", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "Проверете дали AccessKey / SecretAccess са въведени правилно" + }, + "secretKey": { + "desc": "Въведете Secret Key на платформата Qianfan на Baidu", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "Персонализиран регион на услугата", + "description": "След като въведете вашия AccessKey / SecretKey, можете да започнете сесия. Приложението няма да запазва вашата удостоверителна конфигурация", + "title": "Използване на персонализирана информация за удостоверяване на Wenxin" + } + }, "zeroone": { "title": "01.AI Зероуан Всичко" }, diff --git a/locales/de-DE/modelProvider.json b/locales/de-DE/modelProvider.json index 1984d79d96f1..53bfff73a8ab 100644 --- a/locales/de-DE/modelProvider.json +++ b/locales/de-DE/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "填入百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "测试 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填入百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义服务区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI Alles und Nichts" }, diff --git a/locales/en-US/common.json b/locales/en-US/common.json index 37dcd173887c..23c864e4dec0 100644 --- a/locales/en-US/common.json +++ b/locales/en-US/common.json @@ -1,7 +1,7 @@ { "about": "About", "advanceSettings": "Advanced Settings", - "appInitializing": "The application is initializing, please wait patiently...", + "appInitializing": "The application is initializing, please wait for a moment...", "autoGenerate": "Auto Generate", "autoGenerateTooltip": "Auto-generate assistant description based on prompts", "autoGenerateTooltipDisabled": "Please enter a tooltip before using the autocomplete feature", @@ -217,7 +217,7 @@ "plans": "Subscription Plans", "preview": "Preview", "profile": "Account Management", - "setting": "App Settings", + "setting": "Settings", "usages": "Usage Statistics" }, "version": "Version" diff --git a/locales/en-US/modelProvider.json b/locales/en-US/modelProvider.json index 0dca43e992ca..4e80aab8924e 100644 --- a/locales/en-US/modelProvider.json +++ b/locales/en-US/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "Enter the Access Key of the Baidu Qianfan platform", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "Test if AccessKey / SecretAccess is filled in correctly" + }, + "secretKey": { + "desc": "Enter the Secret Key of the Baidu Qianfan platform", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "Custom Service Region", + "description": "Enter your AccessKey / SecretKey to start the session. The application will not store your authentication configuration", + "title": "Use custom Wenxin authentication information" + } + }, "zeroone": { "title": "01.AI Zero One Everything" }, diff --git a/locales/es-ES/modelProvider.json b/locales/es-ES/modelProvider.json index 3f8252390ba2..8cef699cc016 100644 --- a/locales/es-ES/modelProvider.json +++ b/locales/es-ES/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "Introduce la clave de acceso de la plataforma Qianfan de Baidu", + "placeholder": "Clave de acceso Qianfan", + "title": "Clave de acceso" + }, + "checker": { + "desc": "Comprueba si se han introducido correctamente AccessKey / SecretAccess" + }, + "secretKey": { + "desc": "Introduce la clave secreta de la plataforma Qianfan de Baidu", + "placeholder": "Clave secreta Qianfan", + "title": "Clave secreta" + }, + "unlock": { + "customRegion": "Región de servicio personalizada", + "description": "Ingresa tu AccessKey / SecretKey para comenzar la sesión. La aplicación no guardará tu configuración de autenticación", + "title": "Usar información de autenticación personalizada de Wenxin" + } + }, "zeroone": { "title": "01.AI Cero Uno Todo" }, diff --git a/locales/fr-FR/modelProvider.json b/locales/fr-FR/modelProvider.json index 196204d65b7b..75afb65c4bac 100644 --- a/locales/fr-FR/modelProvider.json +++ b/locales/fr-FR/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "Entrez la clé d'accès de la plateforme Baidu Qianfan", + "placeholder": "Clé d'accès Qianfan", + "title": "Clé d'accès" + }, + "checker": { + "desc": "Vérifiez si AccessKey / SecretAccess est correctement rempli" + }, + "secretKey": { + "desc": "Entrez la clé secrète de la plateforme Baidu Qianfan", + "placeholder": "Clé secrète Qianfan", + "title": "Clé secrète" + }, + "unlock": { + "customRegion": "Région de service personnalisée", + "description": "Entrez votre AccessKey / SecretKey pour commencer la session. L'application ne conservera pas votre configuration d'authentification", + "title": "Utiliser les informations d'authentification personnalisées de Wenxin" + } + }, "zeroone": { "title": "01.AI Zéro Un Tout" }, diff --git a/locales/it-IT/modelProvider.json b/locales/it-IT/modelProvider.json index 07810bf158db..d346bcb88e05 100644 --- a/locales/it-IT/modelProvider.json +++ b/locales/it-IT/modelProvider.json @@ -99,6 +99,26 @@ "title": "Scarica il modello Ollama specificato" } }, + "wenxin": { + "accessKey": { + "desc": "Inserisci l'Access Key della piattaforma Baidu Qianfan", + "placeholder": "Access Key di Qianfan", + "title": "Access Key" + }, + "checker": { + "desc": "Verifica se l'AccessKey / SecretAccess è stato inserito correttamente" + }, + "secretKey": { + "desc": "Inserisci il Secret Key della piattaforma Baidu Qianfan", + "placeholder": "Secret Key di Qianfan", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "Regione del servizio personalizzata", + "description": "Inserisci il tuo AccessKey / SecretKey per avviare la sessione. L'applicazione non memorizzerà la tua configurazione di autenticazione", + "title": "Utilizza le informazioni di autenticazione personalizzate di Wenxin" + } + }, "zeroone": { "title": "01.AI ZeroOne" }, diff --git a/locales/ja-JP/modelProvider.json b/locales/ja-JP/modelProvider.json index d1ef2f8948b3..d14ed0a709b8 100644 --- a/locales/ja-JP/modelProvider.json +++ b/locales/ja-JP/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "填写百度千帆平台的 Access Key", + "placeholder": "千帆 Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "检测 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填写百度千帆平台 Secret Key", + "placeholder": "千帆 Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义地域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI 零一万物" }, diff --git a/locales/ko-KR/modelProvider.json b/locales/ko-KR/modelProvider.json index c1b96eee6ea7..22fb827a1dc7 100644 --- a/locales/ko-KR/modelProvider.json +++ b/locales/ko-KR/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "백도 천판 플랫폼의 액세스 키를 입력하세요", + "placeholder": "천판 액세스 키", + "title": "액세스 키" + }, + "checker": { + "desc": "액세스 키/시크릿 액세스가 올바르게 입력되었는지 테스트합니다" + }, + "secretKey": { + "desc": "백도 천판 플랫폼의 시크릿 키를 입력하세요", + "placeholder": "천판 시크릿 키", + "title": "시크릿 키" + }, + "unlock": { + "customRegion": "사용자 정의 서비스 지역", + "description": "액세스 키/시크릿 키를 입력하면 세션을 시작할 수 있습니다. 앱은 권한 부여 구성을 기록하지 않습니다", + "title": "사용자 정의 원신 일단 권한 정보 사용" + } + }, "zeroone": { "title": "01.AI Zero One All Things" }, diff --git a/locales/nl-NL/modelProvider.json b/locales/nl-NL/modelProvider.json index 9d95b27b2e9f..713244b964ec 100644 --- a/locales/nl-NL/modelProvider.json +++ b/locales/nl-NL/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "填入百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "测试 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填入百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义服务区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI Nul Een Alles" }, diff --git a/locales/pl-PL/modelProvider.json b/locales/pl-PL/modelProvider.json index c233755bd553..ff01584055e4 100644 --- a/locales/pl-PL/modelProvider.json +++ b/locales/pl-PL/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "填写百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "检测 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填写百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义服务区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI Zero Jeden Wszystko" }, diff --git a/locales/pt-BR/modelProvider.json b/locales/pt-BR/modelProvider.json index 1521fb28dd6b..938bca7cc534 100644 --- a/locales/pt-BR/modelProvider.json +++ b/locales/pt-BR/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "Fill in the Access Key of the Baidu Qianfan platform", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "Check if the AccessKey / SecretAccess is filled in correctly" + }, + "secretKey": { + "desc": "Fill in the Secret Key of the Baidu Qianfan platform", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "Custom Service Region", + "description": "Enter your AccessKey / SecretKey to start the session. The application will not store your authentication configuration", + "title": "Use custom Wenxin authentication information" + } + }, "zeroone": { "title": "01.AI Zero e Um" }, diff --git a/locales/ru-RU/modelProvider.json b/locales/ru-RU/modelProvider.json index d4ee8caa89e2..76bcd9db0773 100644 --- a/locales/ru-RU/modelProvider.json +++ b/locales/ru-RU/modelProvider.json @@ -99,6 +99,26 @@ "title": "Download specified Ollama model" } }, + "wenxin": { + "accessKey": { + "desc": "填写百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "检测 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填写百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义服务区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI Цифровая Вселенная" }, diff --git a/locales/tr-TR/modelProvider.json b/locales/tr-TR/modelProvider.json index 549957a54c01..548fb31c8bd7 100644 --- a/locales/tr-TR/modelProvider.json +++ b/locales/tr-TR/modelProvider.json @@ -99,6 +99,26 @@ "title": "下载指定的 Ollama 模型" } }, + "wenxin": { + "accessKey": { + "desc": "填写百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "AccessKey / SecretAccess 的正确性测试" + }, + "secretKey": { + "desc": "填写百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI Sıfır Bir" }, diff --git a/locales/vi-VN/modelProvider.json b/locales/vi-VN/modelProvider.json index 890169ab2623..3a4ba05ea736 100644 --- a/locales/vi-VN/modelProvider.json +++ b/locales/vi-VN/modelProvider.json @@ -99,6 +99,26 @@ "title": "Tải xuống mô hình Ollama đã chỉ định" } }, + "wenxin": { + "accessKey": { + "desc": "填入百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "测试 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填入百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "Vùng Dịch vụ Tùy chỉnh", + "description": "Nhập AccessKey / SecretKey của bạn để bắt đầu phiên làm việc. Ứng dụng sẽ không lưu cấu hình xác thực của bạn", + "title": "Sử dụng thông tin xác thực Wenxin tự tùy chỉnh" + } + }, "zeroone": { "title": "01.AI Zero One" }, diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json index 6fdc5c748bf3..9dd2a8ea5fd6 100644 --- a/locales/vi-VN/setting.json +++ b/locales/vi-VN/setting.json @@ -361,8 +361,14 @@ }, "desc": "Truyền thông dữ liệu thời gian thực, điểm-điểm, cần thiết bị cùng online mới có thể đồng bộ", "enabled": { + "invalid": "Vui lòng nhập địa chỉ máy chủ tín hiệu và tên kênh đồng bộ trước khi bật", "title": "Bật đồng bộ" }, + "signaling": { + "desc": "WebRTC sẽ sử dụng địa chỉ này để đồng bộ", + "placeholder": "Vui lòng nhập địa chỉ máy chủ tín hiệu", + "title": "Máy chủ tín hiệu" + }, "title": "WebRTC Đồng bộ" } }, @@ -406,15 +412,5 @@ "store": "Cửa hàng tiện ích" }, "title": "Công cụ mở rộng" - }, - "webrtc": { - "enabled": { - "invalid": "请填写信令服务器和同步频道名称后再开启" - }, - "signaling": { - "desc": "WebRTC sẽ sử dụng địa chỉ này để đồng bộ", - "placeholder": "Vui lòng nhập địa chỉ máy chủ tín hiệu", - "title": "Máy chủ tín hiệu" - } } } diff --git a/locales/zh-CN/modelProvider.json b/locales/zh-CN/modelProvider.json index 6e36ee95a505..968334a02c09 100644 --- a/locales/zh-CN/modelProvider.json +++ b/locales/zh-CN/modelProvider.json @@ -99,6 +99,26 @@ "title": "下载指定的 Ollama 模型" } }, + "wenxin": { + "accessKey": { + "desc": "填入百度千帆平台的 Access Key", + "placeholder": "Qianfan Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "测试 AccessKey / SecretAccess 是否填写正确" + }, + "secretKey": { + "desc": "填入百度千帆平台 Secret Key", + "placeholder": "Qianfan Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定义服务区域", + "description": "输入你的 AccessKey / SecretKey 即可开始会话。应用不会记录你的鉴权配置", + "title": "使用自定义文心一言鉴权信息" + } + }, "zeroone": { "title": "01.AI 零一万物" }, diff --git a/locales/zh-TW/modelProvider.json b/locales/zh-TW/modelProvider.json index 3b9baacb6b07..294f21d48261 100644 --- a/locales/zh-TW/modelProvider.json +++ b/locales/zh-TW/modelProvider.json @@ -99,6 +99,26 @@ "title": "下載指定的 Ollama 模型" } }, + "wenxin": { + "accessKey": { + "desc": "填入百度千帆平台的 Access Key", + "placeholder": "千帆 Access Key", + "title": "Access Key" + }, + "checker": { + "desc": "测试 AccessKey / SecretAccess 是否填寫正確" + }, + "secretKey": { + "desc": "填入百度千帆平台 Secret Key", + "placeholder": "千帆 Secret Key", + "title": "Secret Key" + }, + "unlock": { + "customRegion": "自定義服務區域", + "description": "輸入你的 AccessKey / SecretKey 即可開始會話。應用不會記錄你的驗證配置", + "title": "使用自定義文心一言驗證資訊" + } + }, "zeroone": { "title": "01.AI 零一萬物" }, diff --git a/src/config/modelProviders/wenxin.ts b/src/config/modelProviders/wenxin.ts index b78be4522000..010c4627cd8d 100644 --- a/src/config/modelProviders/wenxin.ts +++ b/src/config/modelProviders/wenxin.ts @@ -1,11 +1,79 @@ import { ModelProviderCard } from '@/types/llm'; -// ref https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html -const Wenxin: ModelProviderCard = { - chatModels: [], +// ref https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Nlks5zkzu +const BaiduWenxin: ModelProviderCard = { + chatModels: [ + { + enabled: true, + id: 'ERNIE-4.0-8K', + tokens: 8192, + }, + { + id: 'ERNIE-4.0-8K-Preview', + tokens: 8192, + }, + { + id: 'ERNIE-4.0-8K-Preview-0518', + tokens: 8192, + }, + { + enabled: true, + id: 'ERNIE-4.0-8K-Latest', + tokens: 8192, + }, + { + displayName: 'ERNIE-4.0-8K-0329', + id: 'ernie-4.0-8k-0329', + tokens: 8192, + }, + { + displayName: 'ERNIE-4.0-8K-0104', + id: 'ernie-4.0-8k-0104', + tokens: 8192, + }, + { + displayName: 'ERNIE-4.0-8K-0613', + id: 'ernie-4.0-8k-0613', + tokens: 8192, + }, + { + enabled: true, + id: 'ERNIE-4.0-Turbo-8K', + tokens: 8192, + }, + { + id: 'ERNIE-4.0-Turbo-8K-Preview', + tokens: 8192, + }, + { + id: 'ERNIE-3.5-8K', + tokens: 8192, + }, + { + id: 'ERNIE-3.5-8K-0205', + tokens: 8192, + }, + { + id: 'ERNIE-3.5-8K-Preview', + tokens: 8192, + }, + { + id: 'ERNIE-3.5-8K-0329', + tokens: 8192, + }, + { + enabled: true, + id: 'ERNIE-3.5-128K', + tokens: 128_000, + }, + { + id: 'ERNIE-3.5-8K-0613', + tokens: 8192, + }, + ], checkModel: 'ERNIE-4.0-8K', id: 'wenxin', name: 'Wenxin', }; -export default Wenxin; +export default BaiduWenxin;