From 08342fd5f1055cc00eabf1863b472587c0063143 Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Mon, 25 Mar 2024 19:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20support=2001.AI=20as=20a=20?= =?UTF-8?q?new=20provider=20(#1627)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨add: Support 01-AI Models * 🔧 chore: fix a config typo for model desc * 🌐 add: Base 01.AI locale json * 🐛 fix: remove custom model name and dark mode Logo for 01AI * 💄 optimize: optimize the 01AI/Groq icon show and fix unused import * 💄 optimize: optimize the settings icon show rules * ✨ feat: add 01.AI APIKey Error Form * 💄 fix: PR 01.AI review issue * 💄 revert: Groq logo change * 🌐 style: update locale --- .env.example | 6 ++ Dockerfile | 3 + README.zh-CN.md | 1 + .../model-provider.zh-CN.mdx | 10 +++ .../features/multi-ai-providers.zh-CN.mdx | 1 + locales/ar/common.json | 1 + locales/ar/error.json | 8 +- locales/ar/setting.json | 8 ++ locales/de-DE/common.json | 1 + locales/de-DE/error.json | 8 +- locales/de-DE/setting.json | 8 ++ locales/en-US/common.json | 1 + locales/en-US/error.json | 8 +- locales/en-US/setting.json | 8 ++ locales/es-ES/common.json | 1 + locales/es-ES/error.json | 8 +- locales/es-ES/setting.json | 8 ++ locales/fr-FR/common.json | 1 + locales/fr-FR/error.json | 8 +- locales/fr-FR/setting.json | 8 ++ locales/it-IT/common.json | 1 + locales/it-IT/error.json | 8 +- locales/it-IT/setting.json | 54 +++++++------ locales/ja-JP/common.json | 1 + locales/ja-JP/error.json | 8 +- locales/ja-JP/setting.json | 54 +++++++------ locales/ko-KR/common.json | 1 + locales/ko-KR/error.json | 8 +- locales/ko-KR/setting.json | 8 ++ locales/nl-NL/common.json | 1 + locales/nl-NL/error.json | 8 +- locales/nl-NL/setting.json | 54 +++++++------ locales/pl-PL/common.json | 1 + locales/pl-PL/error.json | 8 +- locales/pl-PL/setting.json | 8 ++ locales/pt-BR/common.json | 1 + locales/pt-BR/error.json | 8 +- locales/pt-BR/setting.json | 8 ++ locales/ru-RU/common.json | 1 + locales/ru-RU/error.json | 8 +- locales/ru-RU/setting.json | 8 ++ locales/tr-TR/common.json | 1 + locales/tr-TR/error.json | 8 +- locales/tr-TR/setting.json | 8 ++ locales/vi-VN/common.json | 1 + locales/vi-VN/error.json | 8 +- locales/vi-VN/setting.json | 8 ++ locales/zh-CN/common.json | 1 + locales/zh-CN/error.json | 8 +- locales/zh-CN/setting.json | 8 ++ locales/zh-TW/common.json | 1 + locales/zh-TW/error.json | 8 +- locales/zh-TW/setting.json | 8 ++ src/app/api/chat/[provider]/agentRuntime.ts | 17 +++- src/app/api/config/route.ts | 2 + src/app/api/errorResponse.ts | 3 + src/app/settings/llm/Google/index.tsx | 13 +++- src/app/settings/llm/ZeroOne/index.tsx | 52 +++++++++++++ src/app/settings/llm/index.tsx | 2 + src/components/ModelIcon/index.tsx | 2 + src/components/ModelProviderIcon/index.tsx | 5 ++ src/components/ModelTag/ModelIcon.tsx | 2 + src/config/modelProviders/index.ts | 3 + src/config/modelProviders/zeroone.ts | 28 +++++++ src/config/server/provider.ts | 12 ++- src/const/settings.ts | 4 + .../Conversation/Error/APIKeyForm/ZeroOne.tsx | 60 ++++++++++++++ .../Conversation/Error/APIKeyForm/index.tsx | 7 +- src/features/Conversation/Error/index.tsx | 1 + src/libs/agent-runtime/error.ts | 5 +- src/libs/agent-runtime/index.ts | 1 + src/libs/agent-runtime/types/type.ts | 1 + src/libs/agent-runtime/zeroone/index.ts | 78 +++++++++++++++++++ src/locales/default/common.ts | 1 + src/locales/default/error.ts | 9 ++- src/locales/default/setting.ts | 8 ++ src/services/_auth.ts | 6 +- .../settings/selectors/modelProvider.ts | 13 +++- src/types/settings/modelProvider.ts | 7 ++ 79 files changed, 672 insertions(+), 101 deletions(-) create mode 100644 src/app/settings/llm/ZeroOne/index.tsx create mode 100644 src/config/modelProviders/zeroone.ts create mode 100644 src/features/Conversation/Error/APIKeyForm/ZeroOne.tsx create mode 100644 src/libs/agent-runtime/zeroone/index.ts diff --git a/.env.example b/.env.example index 88cde9413825..4e656b307ac0 100644 --- a/.env.example +++ b/.env.example @@ -99,6 +99,12 @@ OPENAI_API_KEY=sk-xxxxxxxxx #OPENROUTER_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx +######################################## +######### 01.AI Service ########## +######################################## + +#ZEROONEAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx + ######################################## ############ Market Service ############ ######################################## diff --git a/Dockerfile b/Dockerfile index c45c9782a479..9df65df00f75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,4 +95,7 @@ ENV MISTRAL_API_KEY "" # OpenRouter ENV OPENROUTER_API_KEY "" +# 01.AI +ENV ZEROONE_API_KEY "" + CMD ["node", "server.js"] diff --git a/README.zh-CN.md b/README.zh-CN.md index fc634eb9b581..ca5a3140e957 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -124,6 +124,7 @@ - **Anthropic (Claude)**:接入了 Anthropic 的 **Claude** 系列模型,包括 Claude 3 和 Claude 2,多模态突破,超长上下文,树立行业新基准。[了解更多](https://www.anthropic.com/claude) - **ChatGLM**:加入了智谱的 **ChatGLM** 系列模型(GLM-4/GLM-4-vision/GLM-3-turbo),为用户提供了另一种高效的会话模型选择。[了解更多](https://www.zhipuai.cn/) - **Moonshot AI (月之暗面)**:集成了 Moonshot 系列模型,这是一家来自中国的创新性 AI 创业公司,旨在提供更深层次的会话理解。[了解更多](https://www.moonshot.cn/) +- **01.AI (零一万物)**:集成了零一万物模型,系列 API 具备较快的推理速度,这不仅缩短了处理时间,同时也保持了出色的模型效果。[了解更多](https://www.lingyiwanwu.com/) - **Groq**:接入了 Groq 的 AI 模型,高效处理消息序列,生成回应,胜任多轮对话及单次交互任务。[了解更多](https://groq.com/) - **OpenRouter**:其支持包括 **Claude 3**,**Gemma**,**Mistral**,**Llama2**和**Cohere**等模型路由,支持智能路由优化,提升使用效率,开放且灵活。[了解更多](https://openrouter.ai/) diff --git a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx index 36d6777ed713..c1f7a25b10df 100644 --- a/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +++ b/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx @@ -176,6 +176,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量, - 描述:这是你在 Groq AI 服务中申请的 API 密钥 - 默认值:- - 示例:`gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx` + ## OpenRouter AI ### `OPENROUTER_API_KEY` @@ -185,4 +186,13 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量, - 默认值:- - 示例:`sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=` +## 01 AI + +### `ZEROONE_API_KEY` + +- 类型:必选 +- 描述:这是你在零一万物服务中申请的 API 密钥 +- 默认值:- +- 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx` + [azure-api-verion-url]: https://docs.microsoft.com/zh-cn/azure/developer/javascript/api-reference/es-modules/azure-sdk/ai-translation/translationconfiguration?view=azure-node-latest#api-version diff --git a/docs/usage/features/multi-ai-providers.zh-CN.mdx b/docs/usage/features/multi-ai-providers.zh-CN.mdx index b68810e2ae5b..fefe8e02c110 100644 --- a/docs/usage/features/multi-ai-providers.zh-CN.mdx +++ b/docs/usage/features/multi-ai-providers.zh-CN.mdx @@ -16,6 +16,7 @@ - **Google AI (Gemini Pro、Gemini Vision)**:接入了 Google 的 **Gemini** 系列模型,包括 Gemini 和 Gemini Pro,以支持更高级的语言理解和生成。[了解更多](https://deepmind.google/technologies/gemini/) - **ChatGLM**:加入了智谱的 **ChatGLM** 系列模型(GLM-4/GLM-4-vision/GLM-3-turbo),为用户提供了另一种高效的会话模型选择。[了解更多](https://www.zhipuai.cn/) - **Moonshot AI (月之暗面)**:集成了 Moonshot 系列模型,这是一家来自中国的创新性 AI 创业公司,旨在提供更深层次的会话理解。[了解更多](https://www.moonshot.cn/) +- **01 AI (零一万物)**:集成了零一万物模型,系列 API 具备较快的推理速度,这不仅缩短了处理时间,同时也保持了出色的模型效果。[了解更多](https://www.lingyiwanwu.com/) 同时,我们也在计划支持更多的模型服务商,如 Replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。 diff --git a/locales/ar/common.json b/locales/ar/common.json index 83756d12e27f..eec717e0e4f6 100644 --- a/locales/ar/common.json +++ b/locales/ar/common.json @@ -107,6 +107,7 @@ "openai": "أوبن إيه آي", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01.AI الصفر والواحد", "zhipu": "Zhipu" }, "noDescription": "لا توجد وصف", diff --git a/locales/ar/error.json b/locales/ar/error.json index f7367a2a385b..c8a35b24fa87 100644 --- a/locales/ar/error.json +++ b/locales/ar/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "تكوين Ollama غير صحيح، يرجى التحقق من تكوين Ollama وإعادة المحاولة", "InvalidOpenRouterAPIKey": "مفتاح OpenRouter API غير صحيح أو فارغ، يرجى التحقق من مفتاح OpenRouter API وإعادة المحاولة", "InvalidPerplexityAPIKey": "مفتاح Perplexity API غير صحيح أو فارغ، يرجى التحقق من مفتاح Perplexity API وإعادة المحاولة", + "InvalidZeroOneAPIKey": "مفتاح ZeroOne API غير صحيح أو فارغ، يرجى التحقق من مفتاح ZeroOne API وإعادة المحاولة", "InvalidZhipuAPIKey": "مفتاح Zhipu API غير صحيح أو فارغ، يرجى التحقق من مفتاح Zhipu API وإعادة المحاولة", "LocationNotSupportError": "عذرًا، لا يدعم موقعك الحالي خدمة هذا النموذج، قد يكون ذلك بسبب قيود المنطقة أو عدم توفر الخدمة. يرجى التحقق مما إذا كان الموقع الحالي يدعم استخدام هذه الخدمة، أو محاولة استخدام معلومات الموقع الأخرى.", "MistralBizError": "طلب خدمة Mistral AI خاطئ، يرجى التحقق من المعلومات التالية أو إعادة المحاولة", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "عذرًا، فشل تهيئة عميل OpenAPI، يرجى التحقق من معلومات تكوين OpenAPI", "PluginServerError": "خطأ في استجابة الخادم لطلب الإضافة، يرجى التحقق من ملف وصف الإضافة وتكوين الإضافة وتنفيذ الخادم وفقًا لمعلومات الخطأ أدناه", "PluginSettingsInvalid": "تحتاج هذه الإضافة إلى تكوين صحيح قبل الاستخدام، يرجى التحقق من صحة تكوينك", + "ZeroOneBizError": "طلب خدمة ZeroOneBiz خطأ، يرجى التحقق من المعلومات أدناه أو إعادة المحاولة", "ZhipuBizError": "حدث خطأ في طلب خدمة Zhipu، يرجى التحقق من المعلومات التالية أو إعادة المحاولة" }, "stt": { @@ -120,6 +122,10 @@ "description": "أدخل مفتاح Perplexity API الخاص بك للبدء في الجلسة. لن يتم تسجيل مفتاح الواجهة البرمجية لتطبيقات الجلسة", "title": "استخدام مفتاح Perplexity API المخصص" }, + "ZeroOne": { + "description": "أدخل مفتاح ZeroOne API الخاص بك لبدء الجلسة. لن يتم تسجيل مفتاح الواجهة البرمجية لتطبيقك", + "title": "استخدام مفتاح واجهة برمجة التطبيقات الخاص بك لـ ZeroOne" + }, "Zhipu": { "description": "أدخل مفتاح Zhipu API الخاص بك لبدء الجلسة. لن يقوم التطبيق بتسجيل مفتاح الواجهة البرمجية الخاص بك", "title": "استخدام مفتاح Zhipu API المخصص" @@ -150,4 +156,4 @@ "password": "كلمة المرور" } } -} \ No newline at end of file +} diff --git a/locales/ar/setting.json b/locales/ar/setting.json index 771506d479c8..58d7ad765b84 100644 --- a/locales/ar/setting.json +++ b/locales/ar/setting.json @@ -201,6 +201,14 @@ "title": "مفتاح الواجهة البرمجية للتطبيق" } }, + "ZeroOne": { + "title": "01.AI الصفر والواحد", + "token": { + "desc": "أدخل مفتاح API من 01.AI الصفر والواحد", + "placeholder": "مفتاح API من 01.AI الصفر والواحد", + "title": "مفتاح API" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/de-DE/common.json b/locales/de-DE/common.json index 20aed9478cef..67b4c2ef1b39 100644 --- a/locales/de-DE/common.json +++ b/locales/de-DE/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01.AI Null Eins Alles", "zhipu": "Zhipu AI" }, "noDescription": "Keine Beschreibung vorhanden", diff --git a/locales/de-DE/error.json b/locales/de-DE/error.json index 05ce18502531..d6569b553f36 100644 --- a/locales/de-DE/error.json +++ b/locales/de-DE/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollama-Konfiguration ist ungültig. Bitte überprüfen Sie die Ollama-Konfiguration und versuchen Sie es erneut.", "InvalidOpenRouterAPIKey": "OpenRouter API-Schlüssel ungültig oder leer. Bitte überprüfen Sie den OpenRouter API-Schlüssel und versuchen Sie es erneut.", "InvalidPerplexityAPIKey": "Perplexity API Key ist ungültig oder leer. Bitte überprüfen Sie den Perplexity API Key und versuchen Sie es erneut.", + "InvalidZeroOneAPIKey": "Ungültiger oder leerer ZeroOne-API-Schlüssel. Bitte überprüfen Sie den ZeroOne-API-Schlüssel und versuchen Sie es erneut.", "InvalidZhipuAPIKey": "Der Zhipu API-Schlüssel ist ungültig oder leer. Bitte überprüfen Sie den Zhipu API-Schlüssel und versuchen Sie es erneut.", "LocationNotSupportError": "Entschuldigung, Ihr Standort unterstützt diesen Modellservice möglicherweise aufgrund von regionalen Einschränkungen oder nicht aktivierten Diensten nicht. Bitte überprüfen Sie, ob der aktuelle Standort die Verwendung dieses Dienstes unterstützt, oder versuchen Sie, andere Standortinformationen zu verwenden.", "MistralBizError": "Beim Anfordern des Mistral AI-Dienstes ist ein Fehler aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Entschuldigung, die Initialisierung des OpenAPI-Clients ist fehlgeschlagen. Bitte überprüfen Sie die Konfigurationsinformationen des OpenAPI auf Richtigkeit", "PluginServerError": "Fehler bei der Serveranfrage des Plugins. Bitte überprüfen Sie die Fehlerinformationen unten in Ihrer Plugin-Beschreibungsdatei, Plugin-Konfiguration oder Serverimplementierung", "PluginSettingsInvalid": "Das Plugin muss korrekt konfiguriert werden, um verwendet werden zu können. Bitte überprüfen Sie Ihre Konfiguration auf Richtigkeit", + "ZeroOneBizError": "Anfrage an ZeroOneBiz-Dienst fehlgeschlagen. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.", "ZhipuBizError": "Es ist ein Fehler bei der Anforderung des Zhipu-Dienstes aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut." }, "stt": { @@ -120,6 +122,10 @@ "description": "Geben Sie Ihren eigenen Perplexity API Key ein, um das Gespräch zu beginnen. Die App speichert Ihren API Key nicht.", "title": "Verwenden Sie einen benutzerdefinierten Perplexity API Key" }, + "ZeroOne": { + "description": "Geben Sie Ihren benutzerdefinierten ZeroOne-API-Schlüssel ein, um die Sitzung zu starten. Die App speichert Ihren API-Schlüssel nicht.", + "title": "Verwenden Sie einen benutzerdefinierten ZeroOne-API-Schlüssel" + }, "Zhipu": { "description": "Geben Sie Ihren Zhipu API-Schlüssel ein, um die Sitzung zu starten. Die Anwendung speichert Ihren API-Schlüssel nicht.", "title": "Verwenden von benutzerdefinierten Zhipu API-Schlüssel" @@ -150,4 +156,4 @@ "password": "Passwort" } } -} \ No newline at end of file +} diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json index 57d5b5485f73..4349d577bf9b 100644 --- a/locales/de-DE/setting.json +++ b/locales/de-DE/setting.json @@ -201,6 +201,14 @@ "title": "API-Schlüssel" } }, + "ZeroOne": { + "title": "01.AI ZeroOne", + "token": { + "desc": "Geben Sie den API-Schlüssel von 01.AI ZeroOne ein", + "placeholder": "01.AI ZeroOne API-Schlüssel", + "title": "API-Schlüssel" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/en-US/common.json b/locales/en-US/common.json index 7b892783237e..0283270f8771 100644 --- a/locales/en-US/common.json +++ b/locales/en-US/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01-AI", "zhipu": "Zhipu AI" }, "noDescription": "No description available", diff --git a/locales/en-US/error.json b/locales/en-US/error.json index 11189d6165ef..26dfc1d1cc50 100644 --- a/locales/en-US/error.json +++ b/locales/en-US/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Invalid Ollama configuration, please check Ollama configuration and try again", "InvalidOpenRouterAPIKey": "Invalid or empty OpenRouter API Key. Please check your OpenRouter API Key and try again.", "InvalidPerplexityAPIKey": "Perplexity API Key is incorrect or empty. Please check the Perplexity API Key and retry.", + "InvalidZeroOneAPIKey": "01-AI API Key is incorrect or empty. Please check the 01-AI API Key and retry.", "InvalidZhipuAPIKey": "Zhipu API Key is incorrect or empty. Please check the Zhipu API Key and retry.", "LocationNotSupportError": "We're sorry, your current location does not support this model service. This may be due to regional restrictions or the service not being available. Please confirm if the current location supports using this service, or try using a different location.", "MistralBizError": "Error occurred while requesting Mistral AI service. Please troubleshoot based on the following information or retry.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Sorry, the OpenAPI client failed to initialize. Please check if the OpenAPI configuration information is correct.", "PluginServerError": "Plugin server request returned an error. Please check your plugin manifest file, plugin configuration, or server implementation based on the error information below", "PluginSettingsInvalid": "This plugin needs to be correctly configured before it can be used. Please check if your configuration is correct", + "ZeroOneBizError": "Error requesting 01-AI service. Please troubleshoot or retry based on the following information.", "ZhipuBizError": "Error requesting Zhipu service. Please troubleshoot or retry based on the following information." }, "stt": { @@ -120,6 +122,10 @@ "description": "Enter your Perplexity API Key to start the session. The app will not store your API Key.", "title": "Use custom Perplexity API Key" }, + "ZeroOne": { + "description": "Enter your 01-AI API Key to start the session. The application will not store your API Key.", + "title": "Use Custom 01-AI API Key" + }, "Zhipu": { "description": "Enter your Zhipu API Key to start the session. The app will not store your API Key.", "title": "Use custom Zhipu API Key" @@ -150,4 +156,4 @@ "password": "Password" } } -} \ No newline at end of file +} diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json index fa0c31690fe9..62df309d59c7 100644 --- a/locales/en-US/setting.json +++ b/locales/en-US/setting.json @@ -201,6 +201,14 @@ "title": "API Key" } }, + "ZeroOne": { + "title": "01-AI", + "token": { + "desc": "Enter the API Key from 01-AI", + "placeholder": "01-AI API Key", + "title": "API Key" + } + }, "Zhipu": { "title": "Zhipu", "token": { diff --git a/locales/es-ES/common.json b/locales/es-ES/common.json index 2e705306c9c9..99dcf7839550 100644 --- a/locales/es-ES/common.json +++ b/locales/es-ES/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01.AI ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Sin descripción", diff --git a/locales/es-ES/error.json b/locales/es-ES/error.json index 3a7a9a680950..d653da6283c7 100644 --- a/locales/es-ES/error.json +++ b/locales/es-ES/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "La configuración de Ollama no es válida, por favor revisa la configuración de Ollama e inténtalo de nuevo", "InvalidOpenRouterAPIKey": "La clave de API de OpenRouter es incorrecta o está vacía. Por favor, revisa la clave de API de OpenRouter e inténtalo de nuevo", "InvalidPerplexityAPIKey": "La clave de API de Perplexity es inválida o está vacía. Por favor, verifica la clave de API de Perplexity e inténtalo de nuevo", + "InvalidZeroOneAPIKey": "La clave de API de ZeroOneBiz es incorrecta o está vacía. Por favor, revise la clave de API de ZeroOneBiz e inténtelo de nuevo.", "InvalidZhipuAPIKey": "La clave de API de Zhipu es incorrecta o está vacía, por favor, verifica la clave de API de Zhipu e inténtalo de nuevo", "LocationNotSupportError": "Lo sentimos, tu ubicación actual no es compatible con este servicio de modelo, puede ser debido a restricciones geográficas o a que el servicio no está disponible. Por favor, verifica si tu ubicación actual es compatible con este servicio o intenta usar otra información de ubicación.", "MistralBizError": "Se produjo un error al solicitar el servicio Mistral AI. Por favor, revise la siguiente información o inténtelo de nuevo.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Lo sentimos, la inicialización del cliente OpenAPI ha fallado. Verifique si la información de configuración de OpenAPI es correcta", "PluginServerError": "Error al recibir la respuesta del servidor del complemento. Verifique el archivo de descripción del complemento, la configuración del complemento o la implementación del servidor según la información de error a continuación", "PluginSettingsInvalid": "Este complemento necesita una configuración correcta antes de poder usarse. Verifique si su configuración es correcta", + "ZeroOneBizError": "Se produjo un error al solicitar el servicio ZeroOneBiz. Por favor, revise la siguiente información o inténtelo de nuevo.", "ZhipuBizError": "Se produjo un error al solicitar el servicio Zhipu, por favor, verifica la siguiente información o inténtalo de nuevo" }, "stt": { @@ -120,6 +122,10 @@ "description": "Ingresa tu clave de API de Perplexity para comenzar la sesión. La aplicación no guardará tu clave de API", "title": "Usar tu propia clave de API de Perplexity" }, + "ZeroOne": { + "description": "Ingrese su clave de API de ZeroOneBiz para comenzar la sesión. La aplicación no almacenará su clave de API.", + "title": "Usar clave de API personalizada de ZeroOneBiz" + }, "Zhipu": { "description": "Ingresa tu clave de API de Zhipu para comenzar la sesión. La aplicación no guardará tu clave de API", "title": "Usar clave de API personalizada de Zhipu" @@ -150,4 +156,4 @@ "password": "Contraseña" } } -} \ No newline at end of file +} diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json index 2416f3032660..9f82881c0958 100644 --- a/locales/es-ES/setting.json +++ b/locales/es-ES/setting.json @@ -201,6 +201,14 @@ "title": "Clave API" } }, + "ZeroOne": { + "title": "01.AI ZeroOne", + "token": { + "desc": "Introduce la clave API de 01.AI ZeroOne", + "placeholder": "Clave API de 01.AI ZeroOne", + "title": "Clave API" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.json index 2fda6b8c6ed7..ecf6ad713034 100644 --- a/locales/fr-FR/common.json +++ b/locales/fr-FR/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01. Intelligence Artificielle ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Aucune description disponible", diff --git a/locales/fr-FR/error.json b/locales/fr-FR/error.json index d5379ac2e01b..beff9f2b30d0 100644 --- a/locales/fr-FR/error.json +++ b/locales/fr-FR/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "La configuration d'Ollama n'est pas valide, veuillez vérifier la configuration d'Ollama et réessayer", "InvalidOpenRouterAPIKey": "La clé d'API OpenRouter est incorrecte ou manquante. Veuillez vérifier la clé d'API OpenRouter et réessayer.", "InvalidPerplexityAPIKey": "La clé API Perplexity est incorrecte ou vide. Veuillez vérifier la clé API Perplexity et réessayer.", + "InvalidZeroOneAPIKey": "零一万物 API Key 不正确或为空,请检查零一万物 API Key 后重试", "InvalidZhipuAPIKey": "Clé API Zhipu incorrecte ou vide, veuillez vérifier la clé API Zhipu et réessayer", "LocationNotSupportError": "Désolé, votre emplacement actuel ne prend pas en charge ce service de modèle, peut-être en raison de restrictions géographiques ou de services non disponibles. Veuillez vérifier si votre emplacement actuel prend en charge ce service ou essayer avec une autre localisation.", "MistralBizError": "Erreur de service Mistral AI. Veuillez vérifier les informations ci-dessous ou réessayer.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Désolé, l'initialisation du client OpenAPI a échoué. Veuillez vérifier les informations de configuration d'OpenAPI.", "PluginServerError": "Erreur de réponse du serveur du plugin. Veuillez vérifier le fichier de description du plugin, la configuration du plugin ou la mise en œuvre côté serveur en fonction des informations d'erreur ci-dessous", "PluginSettingsInvalid": "Ce plugin doit être correctement configuré avant de pouvoir être utilisé. Veuillez vérifier votre configuration", + "ZeroOneBizError": "请求零一万物服务出错,请根据以下信息排查或重试", "ZhipuBizError": "Erreur lors de la demande de service Zhipu, veuillez vérifier les informations ci-dessous ou réessayer" }, "stt": { @@ -120,6 +122,10 @@ "description": "Entrez votre clé API Perplexity pour commencer la session. L'application ne conservera pas votre clé API.", "title": "Utiliser une clé API Perplexity personnalisée" }, + "ZeroOne": { + "description": "输入你的零一万物 API Key 即可开始会话。应用不会记录你的 API Key", + "title": "使用自定义零一万物 API Key" + }, "Zhipu": { "description": "Entrez votre clé API Zhipu pour commencer la session. L'application ne conservera pas votre clé API", "title": "Utiliser une clé API Zhipu personnalisée" @@ -150,4 +156,4 @@ "password": "Mot de passe" } } -} \ No newline at end of file +} diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json index b69a34932bd6..91fd9c6712c8 100644 --- a/locales/fr-FR/setting.json +++ b/locales/fr-FR/setting.json @@ -201,6 +201,14 @@ "title": "Clé API" } }, + "ZeroOne": { + "title": "01.AI ZéroUn Tout-en-un", + "token": { + "desc": "Entrez la clé API de 01.AI ZéroUn Tout-en-un", + "placeholder": "Clé API 01.AI ZéroUn Tout-en-un", + "title": "Clé API" + } + }, "Zhipu": { "title": "智谱", "token": { diff --git a/locales/it-IT/common.json b/locales/it-IT/common.json index e34929bf8680..7f846284811b 100644 --- a/locales/it-IT/common.json +++ b/locales/it-IT/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01. Intelligenza Artificiale ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Nessuna descrizione disponibile", diff --git a/locales/it-IT/error.json b/locales/it-IT/error.json index dfbba6cd36ee..f8b1ca3d09e4 100644 --- a/locales/it-IT/error.json +++ b/locales/it-IT/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Configurazione Ollama non valida, controllare la configurazione di Ollama e riprovare", "InvalidOpenRouterAPIKey": "La chiave API di OpenRouter non è valida o è vuota. Si prega di controllare la chiave API di OpenRouter e riprovare.", "InvalidPerplexityAPIKey": "Chiave API Perplexity non valida o vuota, controlla la chiave API Perplexity e riprova", + "InvalidZeroOneAPIKey": "La chiave API ZeroOne non è corretta o è vuota, si prega di controllare la chiave API ZeroOne e riprovare", "InvalidZhipuAPIKey": "Chiave API Zhipu non corretta o vuota, controlla la chiave API Zhipu e riprova", "LocationNotSupportError": "Spiacenti, la tua posizione attuale non supporta questo servizio modello, potrebbe essere a causa di restrizioni geografiche o servizi non attivati. Verifica se la posizione attuale supporta l'uso di questo servizio o prova a utilizzare un'altra posizione.", "MistralBizError": "Errore di richiesta del servizio Mistral AI. Si prega di controllare le informazioni seguenti o riprovare.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Spiacenti, inizializzazione fallita del client OpenAPI. Verifica che le informazioni di configurazione di OpenAPI siano corrette", "PluginServerError": "Errore nella risposta del server del plugin. Verifica il file descrittivo del plugin, la configurazione del plugin o l'implementazione del server", "PluginSettingsInvalid": "Il plugin deve essere configurato correttamente prima di poter essere utilizzato. Verifica che la tua configurazione sia corretta", + "ZeroOneBizError": "Si è verificato un errore nel servizio ZeroOneBiz, si prega di controllare le informazioni seguenti o riprovare", "ZhipuBizError": "Errore nella richiesta del servizio Zhipu, controlla le informazioni seguenti o riprova" }, "stt": { @@ -120,6 +122,10 @@ "description": "Inserisci la tua chiave API Perplexity per iniziare la sessione. L'applicazione non memorizzerà la tua chiave API", "title": "Utilizza la tua chiave API Perplexity personalizzata" }, + "ZeroOne": { + "description": "Inserisci la tua chiave API ZeroOne per iniziare la sessione. L'applicazione non memorizzerà la tua chiave API", + "title": "Usa una chiave API ZeroOne personalizzata" + }, "Zhipu": { "description": "Inserisci la tua chiave API Zhipu per iniziare la sessione. L'applicazione non memorizzerà la tua chiave API", "title": "Utilizza la chiave API Zhipu personalizzata" @@ -150,4 +156,4 @@ "password": "Password" } } -} \ No newline at end of file +} diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json index 4390ce64532a..f0be43ed689a 100644 --- a/locales/it-IT/setting.json +++ b/locales/it-IT/setting.json @@ -201,6 +201,14 @@ "title": "Chiave API" } }, + "ZeroOne": { + "title": "01.AI ZeroOne万物", + "token": { + "desc": "填入01.AI ZeroOne万物的API密钥", + "placeholder": "01.AI ZeroOne万物API密钥", + "title": "API密钥" + } + }, "Zhipu": { "title": "智谱", "token": { @@ -451,38 +459,36 @@ "unknownBrowser": "Browser sconosciuto", "unknownOS": "Sistema operativo sconosciuto" }, - "tab": { - "experiment": "Esperimento", - "sync": "Sincronizzazione cloud" - }, "warning": { - "message": "Questa funzione è attualmente sperimentale e potrebbe comportare comportamenti imprevisti o instabili. In caso di problemi, invia tempestivamente un feedback.", - "webrtc": { - "channelName": { - "desc": "WebRTC utilizzerà questo nome per creare un canale di sincronizzazione. Assicurati che il nome del canale sia univoco", - "placeholder": "Inserisci il nome del canale di sincronizzazione", - "shuffle": "Genera casuale", - "title": "Nome del canale di sincronizzazione" - }, - "channelPassword": { - "desc": "Aggiungi una password per garantire la privacy del canale. Solo con la password corretta i dispositivi potranno unirsi al canale", - "placeholder": "Inserisci la password del canale di sincronizzazione", - "title": "Password del canale di sincronizzazione" - }, - "desc": "Comunicazione dati in tempo reale e punto-punto. I dispositivi devono essere online contemporaneamente per sincronizzarsi", - "enabled": { - "invalid": "Inserisci prima il nome del canale di sincronizzazione per abilitare", - "title": "Abilita la sincronizzazione" - }, - "title": "Sincronizzazione WebRTC" - } + "message": "Questa funzione è attualmente sperimentale e potrebbe comportare comportamenti imprevisti o instabili. In caso di problemi, invia tempestivamente un feedback." + }, + "webrtc": { + "channelName": { + "desc": "WebRTC将使用此名称创建同步频道,请确保频道名称唯一", + "placeholder": "请输入同步频道名称", + "shuffle": "随机生成", + "title": "同步频道名称" + }, + "channelPassword": { + "desc": "添加密码以确保频道私密性,只有密码正确时,设备才能加入频道", + "placeholder": "请输入同步频道密码", + "title": "同步频道密码" + }, + "desc": "实时、点对点的数据通信,需要设备同时在线才能同步", + "enabled": { + "invalid": "请填写同步频道名称后再开启", + "title": "开启同步" + }, + "title": "WebRTC同步" } }, "tab": { "about": "Informazioni", "agent": "Assistente predefinito", "common": "Impostazioni comuni", + "experiment": "实验", "llm": "Modello linguistico", + "sync": "云端同步", "tts": "Servizio vocale" }, "tools": { diff --git a/locales/ja-JP/common.json b/locales/ja-JP/common.json index 0bc745c40989..fd33132f5369 100644 --- a/locales/ja-JP/common.json +++ b/locales/ja-JP/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity AI", + "zeroone": "01.AI ゼロワン万物", "zhipu": "智譜AI" }, "noDescription": "説明はありません", diff --git a/locales/ja-JP/error.json b/locales/ja-JP/error.json index d217fda04fb4..c14b44f52872 100644 --- a/locales/ja-JP/error.json +++ b/locales/ja-JP/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollamaの設定が正しくありません。Ollamaの設定を確認してからもう一度お試しください", "InvalidOpenRouterAPIKey": "OpenRouter API キーが正しくないか空です。OpenRouter API キーを確認してもう一度お試しください。", "InvalidPerplexityAPIKey": "Perplexity APIキーが正しくないか空です。Perplexity APIキーを確認してもう一度お試しください", + "InvalidZeroOneAPIKey": "ZeroOne APIキーが正しくないか空です。ZeroOne APIキーを確認して再試行してください。", "InvalidZhipuAPIKey": "Zhipu APIキーが正しくないか空です。Zhipu APIキーを確認してから再試行してください。", "LocationNotSupportError": "申し訳ありませんが、お住まいの地域ではこのモデルサービスをサポートしていません。地域制限またはサービスが利用できない可能性があります。現在の位置がこのサービスをサポートしているかどうかを確認するか、他の位置情報を使用してみてください。", "MistralBizError": "Mistral AI サービスのリクエストでエラーが発生しました。以下の情報を確認して再試行してください。", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "申し訳ありませんが、OpenAPIクライアントの初期化に失敗しました。OpenAPIの設定情報を確認してください。", "PluginServerError": "プラグインサーバーのリクエストエラーが発生しました。以下のエラーメッセージを参考に、プラグインのマニフェストファイル、設定、サーバー実装を確認してください", "PluginSettingsInvalid": "このプラグインを使用するには、正しい設定が必要です。設定が正しいかどうか確認してください", + "ZeroOneBizError": "リクエストがZeroOneサービスでエラーが発生しました。以下の情報を確認して再試行してください。", "ZhipuBizError": "Zhipuサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再試行してください。" }, "stt": { @@ -120,6 +122,10 @@ "description": "Perplexity APIキーを入力して会話を開始します。アプリはAPIキーを記録しません", "title": "カスタムPerplexity APIキーを使用" }, + "ZeroOne": { + "description": "カスタムのZeroOne APIキーを入力してセッションを開始します。アプリはAPIキーを記録しません。", + "title": "カスタムZeroOne APIキーの使用" + }, "Zhipu": { "description": "Zhipu APIキーを入力してセッションを開始します。アプリはAPIキーを記録しません。", "title": "カスタムZhipu APIキーを使用" @@ -150,4 +156,4 @@ "password": "パスワード" } } -} \ No newline at end of file +} diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json index 6a842ff4486d..1aeb9185c0ca 100644 --- a/locales/ja-JP/setting.json +++ b/locales/ja-JP/setting.json @@ -201,6 +201,14 @@ "title": "API キー" } }, + "ZeroOne": { + "title": "01.AI 零一万物", + "token": { + "desc": "填入来自 01.AI 零一万物的 API Key", + "placeholder": "01.AI 零一万物 API Key", + "title": "API Key" + } + }, "Zhipu": { "title": "智谱", "token": { @@ -451,38 +459,36 @@ "unknownBrowser": "不明なブラウザ", "unknownOS": "不明なOS" }, - "tab": { - "experiment": "実験", - "sync": "クラウド同期" - }, "warning": { - "message": "この機能は現在実験的なものであり、予期しない不安定な状況が発生する可能性があります。問題が発生した場合はフィードバックを提出してください。", - "webrtc": { - "channelName": { - "desc": "WebRTC はこの名前で同期チャネルを作成します。チャネル名が一意であることを確認してください。", - "placeholder": "同期チャネル名を入力", - "shuffle": "ランダム生成", - "title": "同期チャネル名" - }, - "channelPassword": { - "desc": "チャネルのプライバシーを保護するためにパスワードを追加し、デバイスがチャネルに参加できるのはパスワードが正しい場合のみです。", - "placeholder": "同期チャネルのパスワードを入力", - "title": "同期チャネルのパスワード" - }, - "desc": "リアルタイムでピアツーピアのデータ通信であり、デバイスが同時にオンラインである必要があります。", - "enabled": { - "invalid": "同期チャネル名を入力してから有効にしてください", - "title": "同期を有効にする" - }, - "title": "WebRTC 同期" - } + "message": "この機能は現在実験的なものであり、予期しない不安定な状況が発生する可能性があります。問題が発生した場合はフィードバックを提出してください。" + }, + "webrtc": { + "channelName": { + "desc": "WebRTC 将使用此名创建同步频道,确保频道名称唯一", + "placeholder": "请输入同步频道名称", + "shuffle": "随机生成", + "title": "同步频道名称" + }, + "channelPassword": { + "desc": "添加密码确保频道私密性,只有密码正确时,设备才可加入频道", + "placeholder": "请输入同步频道密码", + "title": "同步频道密码" + }, + "desc": "实时、点对点的数据通信,需设备同时在线才可同步", + "enabled": { + "invalid": "请填写同步频道名称后再开启", + "title": "开启同步" + }, + "title": "WebRTC 同步" } }, "tab": { "about": "について", "agent": "デフォルトエージェント", "common": "一般設定", + "experiment": "実験", "llm": "言語モデル", + "sync": "クラウド同期", "tts": "音声サービス" }, "tools": { diff --git a/locales/ko-KR/common.json b/locales/ko-KR/common.json index 941541d4a4de..579e009afa9e 100644 --- a/locales/ko-KR/common.json +++ b/locales/ko-KR/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "오픈 라우터", "perplexity": "Perplexity", + "zeroone": "01.AI 제로원", "zhipu": "지푸 AI" }, "noDescription": "설명 없음", diff --git a/locales/ko-KR/error.json b/locales/ko-KR/error.json index fac81edbb7cf..137b19e5c9ef 100644 --- a/locales/ko-KR/error.json +++ b/locales/ko-KR/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollama 구성이 잘못되었습니다. Ollama 구성을 확인한 후 다시 시도하십시오.", "InvalidOpenRouterAPIKey": "OpenRouter API 키가 잘못되었거나 비어 있습니다. OpenRouter API 키를 확인한 후 다시 시도하십시오.", "InvalidPerplexityAPIKey": "Perplexity API 키가 잘못되었거나 비어 있습니다. Perplexity API 키를 확인한 후 다시 시도하십시오.", + "InvalidZeroOneAPIKey": "잘못된 또는 빈 제로원물 API 키입니다. 제로원물 API 키를 확인하고 다시 시도해주세요.", "InvalidZhipuAPIKey": "잘못된 또는 비어 있는 Zhipu API Key입니다. Zhipu API Key를 확인한 후 다시 시도하십시오.", "LocationNotSupportError": "죄송합니다. 귀하의 현재 위치는 해당 모델 서비스를 지원하지 않습니다. 지역 제한 또는 서비스 미개통으로 인한 것일 수 있습니다. 현재 위치가 해당 서비스를 지원하는지 확인하거나 다른 위치 정보를 사용해 보십시오.", "MistralBizError": "Mistral AI 서비스 요청 중 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도해주세요.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "죄송합니다. OpenAPI 클라이언트 초기화에 실패했습니다. OpenAPI 구성 정보를 확인해주세요.", "PluginServerError": "플러그인 서버 요청이 오류로 반환되었습니다. 플러그인 설명 파일, 플러그인 구성 또는 서버 구현을 확인해주세요.", "PluginSettingsInvalid": "플러그인을 사용하려면 올바른 구성이 필요합니다. 구성이 올바른지 확인해주세요.", + "ZeroOneBizError": "제로원물 서비스 요청 중 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도해주세요.", "ZhipuBizError": "Zhipu 서비스 요청 중 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도하십시오." }, "stt": { @@ -120,6 +122,10 @@ "description": "Perplexity API 키를 입력하면 대화를 시작할 수 있습니다. 애플리케이션은 API 키를 기록하지 않습니다.", "title": "사용자 지정 Perplexity API 키 사용" }, + "ZeroOne": { + "description": "제로원물 API 키를 입력하면 세션을 시작할 수 있습니다. 애플리케이션은 API 키를 기록하지 않습니다.", + "title": "사용자 지정 제로원물 API 키 사용" + }, "Zhipu": { "description": "Zhipu API Key를 입력하여 세션을 시작합니다. 앱은 귀하의 API Key를 기록하지 않습니다.", "title": "사용자 정의 Zhipu API Key 사용" @@ -150,4 +156,4 @@ "password": "비밀번호" } } -} \ No newline at end of file +} diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json index da45e72000a5..0604fd83ec83 100644 --- a/locales/ko-KR/setting.json +++ b/locales/ko-KR/setting.json @@ -201,6 +201,14 @@ "title": "API 키" } }, + "ZeroOne": { + "title": "01.AI ZeroOne 만물", + "token": { + "desc": "01.AI ZeroOne의 API 키를 입력하세요", + "placeholder": "01.AI ZeroOne API 키", + "title": "API 키" + } + }, "Zhipu": { "title": "智谱", "token": { diff --git a/locales/nl-NL/common.json b/locales/nl-NL/common.json index 3d69b708cfa2..af2f60c77214 100644 --- a/locales/nl-NL/common.json +++ b/locales/nl-NL/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01.AI ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Geen beschrijving beschikbaar", diff --git a/locales/nl-NL/error.json b/locales/nl-NL/error.json index b1eaa89b2cc6..6ea5841babe0 100644 --- a/locales/nl-NL/error.json +++ b/locales/nl-NL/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollama-configuratie is onjuist, controleer de Ollama-configuratie en probeer het opnieuw", "InvalidOpenRouterAPIKey": "OpenRouter API Key is onjuist of leeg. Controleer de OpenRouter API Key en probeer het opnieuw.", "InvalidPerplexityAPIKey": "Perplexity API Key is onjuist of leeg. Controleer de Perplexity API Key en probeer het opnieuw.", + "InvalidZeroOneAPIKey": "零一万物 API Key 不正确或为空,请检查零一万物 API Key 后重试", "InvalidZhipuAPIKey": "Incorrect or empty Zhipu API Key, please check the Zhipu API Key and retry", "LocationNotSupportError": "Sorry, your current location does not support this model service, possibly due to regional restrictions or service not being available. Please confirm if the current location supports using this service, or try using other location information.", "MistralBizError": "Er is een fout opgetreden bij het aanroepen van de Mistral AI-service. Controleer de onderstaande informatie of probeer het opnieuw.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Sorry, initialisatie van de OpenAPI-client is mislukt. Controleer of de configuratie van OpenAPI juist is", "PluginServerError": "Fout bij serverrespons voor plug-in. Controleer de foutinformatie hieronder voor uw plug-inbeschrijvingsbestand, plug-inconfiguratie of serverimplementatie", "PluginSettingsInvalid": "Deze plug-in moet correct geconfigureerd zijn voordat deze kan worden gebruikt. Controleer of uw configuratie juist is", + "ZeroOneBizError": "请求零一万物服务出错,请根据以下信息排查或重试", "ZhipuBizError": "Error requesting Zhipu service, please troubleshoot or retry based on the following information" }, "stt": { @@ -120,6 +122,10 @@ "description": "Voer uw eigen Perplexity API Key in om het gesprek te starten. De app zal uw API Key niet opslaan.", "title": "Gebruik een aangepaste Perplexity API Key" }, + "ZeroOne": { + "description": "输入你的零一万物 API Key 即可开始会话。应用不会记录你的 API Key", + "title": "使用自定义零一万物 API Key" + }, "Zhipu": { "description": "Enter your Zhipu API Key to start the session. The app will not record your API Key", "title": "Use custom Zhipu API Key" @@ -150,4 +156,4 @@ "password": "Password" } } -} \ No newline at end of file +} diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json index a640dfac135a..cc4b46b429b1 100644 --- a/locales/nl-NL/setting.json +++ b/locales/nl-NL/setting.json @@ -201,6 +201,14 @@ "title": "API-sleutel" } }, + "ZeroOne": { + "title": "01.AI 零一万物", + "token": { + "desc": "填入来自 01.AI 零一万物的 API 密钥", + "placeholder": "01.AI 零一万物 API 密钥", + "title": "API 密钥" + } + }, "Zhipu": { "title": "智谱", "token": { @@ -451,38 +459,36 @@ "unknownBrowser": "Onbekende browser", "unknownOS": "Onbekend besturingssysteem" }, - "tab": { - "experiment": "Experiment", - "sync": "Cloudsynchronisatie" - }, "warning": { - "message": "Deze functie is momenteel experimenteel en kan onverwachte of onstabiele situaties veroorzaken. Als u problemen ondervindt, geef dan tijdig feedback.", - "webrtc": { - "channelName": { - "desc": "WebRTC zal dit gebruiken om een synchronisatiekanaal te maken. Zorg ervoor dat de kanaalnaam uniek is", - "placeholder": "Voer de synchronisatiekanaalnaam in", - "shuffle": "Willekeurig genereren", - "title": "Synchronisatiekanaalnaam" - }, - "channelPassword": { - "desc": "Voeg een wachtwoord toe om de privacy van het kanaal te waarborgen. Alleen met het juiste wachtwoord kan het apparaat aan het kanaal deelnemen", - "placeholder": "Voer het synchronisatiekanaalwachtwoord in", - "title": "Synchronisatiekanaalwachtwoord" - }, - "desc": "Realtime, point-to-point datacommunicatie. Apparaten moeten tegelijkertijd online zijn om te synchroniseren", - "enabled": { - "invalid": "Schakel de synchronisatie in nadat u de synchronisatiekanaalnaam heeft ingevoerd", - "title": "Synchronisatie inschakelen" - }, - "title": "WebRTC-synchronisatie" - } + "message": "Deze functie is momenteel experimenteel en kan onverwachte of onstabiele situaties veroorzaken. Als u problemen ondervindt, geef dan tijdig feedback." + }, + "webrtc": { + "channelName": { + "desc": "WebRTC zal deze naam gebruiken om een synchronisatiekanaal te maken, zorg ervoor dat de kanaalnaam uniek is", + "placeholder": "Voer de synchronisatiekanaalnaam in", + "shuffle": "Willekeurig genereren", + "title": "Synchronisatiekanaalnaam" + }, + "channelPassword": { + "desc": "Voeg een wachtwoord toe om de privacy van het kanaal te waarborgen, alleen apparaten met het juiste wachtwoord kunnen het kanaal betreden", + "placeholder": "Voer het synchronisatiekanaalwachtwoord in", + "title": "Synchronisatiekanaalwachtwoord" + }, + "desc": "Realtime, point-to-point datacommunicatie, apparaten moeten tegelijkertijd online zijn om te synchroniseren", + "enabled": { + "invalid": "Schakel de synchronisatie in nadat u de synchronisatiekanaalnaam heeft ingevuld", + "title": "Synchronisatie inschakelen" + }, + "title": "WebRTC Synchronisatie" } }, "tab": { "about": "Over", "agent": "Standaardassistent", "common": "Algemene instellingen", + "experiment": "Experiment", "llm": "Taalmodel", + "sync": "Cloudsynchronisatie", "tts": "Spraakdienst" }, "tools": { diff --git a/locales/pl-PL/common.json b/locales/pl-PL/common.json index 0d0440985c99..41443c9fab35 100644 --- a/locales/pl-PL/common.json +++ b/locales/pl-PL/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01. Sztuczna inteligencja ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Brak opisu", diff --git a/locales/pl-PL/error.json b/locales/pl-PL/error.json index 09c84fbd973c..0ecaacd145fa 100644 --- a/locales/pl-PL/error.json +++ b/locales/pl-PL/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Nieprawidłowa konfiguracja Ollama, sprawdź konfigurację Ollama i spróbuj ponownie", "InvalidOpenRouterAPIKey": "OpenRouter API Key jest nieprawidłowy lub pusty. Sprawdź klucz API OpenRouter i spróbuj ponownie.", "InvalidPerplexityAPIKey": "Klucz API Perplexity jest nieprawidłowy lub pusty. Sprawdź klucz API Perplexity i spróbuj ponownie.", + "InvalidZeroOneAPIKey": "零一万物 API Key 不正确或为空,请检查零一万物 API Key 后重试", "InvalidZhipuAPIKey": "Nieprawidłowy lub pusty klucz API Zhipu, prosimy sprawdzić klucz API Zhipu i spróbować ponownie.", "LocationNotSupportError": "Przepraszamy, Twoja lokalizacja nie obsługuje tego usługi modelu, być może ze względu na ograniczenia regionalne lub brak dostępności usługi. Proszę sprawdź, czy bieżąca lokalizacja obsługuje tę usługę, lub spróbuj użyć innych informacji o lokalizacji.", "MistralBizError": "请求 Mistral AI 服务出错,请根据以下信息排查或重试", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Przepraszamy, inicjalizacja klienta OpenAPI nie powiodła się. Proszę sprawdź, czy informacje konfiguracyjne OpenAPI są poprawne", "PluginServerError": "Błąd zwrócony przez serwer wtyczki. Proszę sprawdź plik opisowy wtyczki, konfigurację wtyczki lub implementację serwera zgodnie z poniższymi informacjami o błędzie", "PluginSettingsInvalid": "Ta wtyczka wymaga poprawnej konfiguracji przed użyciem. Proszę sprawdź, czy Twoja konfiguracja jest poprawna", + "ZeroOneBizError": "请求零一万物服务出错,请根据以下信息排查或重试", "ZhipuBizError": "Wystąpił błąd żądania usługi Zhipu, prosimy o sprawdzenie poniższych informacji lub ponowne próbowanie." }, "stt": { @@ -120,6 +122,10 @@ "description": "Wprowadź swój klucz API Perplexity, aby rozpocząć sesję. Aplikacja nie będzie przechowywać Twojego klucza API.", "title": "Użyj niestandardowego klucza API Perplexity" }, + "ZeroOne": { + "description": "输入你的零一万物 API Key 即可开始会话。应用不会记录你的 API Key", + "title": "使用自定义零一万物 API Key" + }, "Zhipu": { "description": "Wprowadź swój klucz API Zhipu, aby rozpocząć sesję. Aplikacja nie będzie przechowywać Twojego klucza API.", "title": "Użyj niestandardowego klucza API Zhipu" @@ -150,4 +156,4 @@ "password": "Hasło" } } -} \ No newline at end of file +} diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json index c84b069f499d..181fa9ecb64d 100644 --- a/locales/pl-PL/setting.json +++ b/locales/pl-PL/setting.json @@ -201,6 +201,14 @@ "title": "Klucz API" } }, + "ZeroOne": { + "title": "01.AI ZeroOne万物", + "token": { + "desc": "请输入来自01.AI ZeroOne万物的API密钥", + "placeholder": "01.AI ZeroOne万物API密钥", + "title": "API密钥" + } + }, "Zhipu": { "title": "智谱", "token": { diff --git a/locales/pt-BR/common.json b/locales/pt-BR/common.json index 1b2ebb350e3b..30422f732551 100644 --- a/locales/pt-BR/common.json +++ b/locales/pt-BR/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01. IA ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Sem descrição", diff --git a/locales/pt-BR/error.json b/locales/pt-BR/error.json index 54bdb80991e1..23d49cf03ca2 100644 --- a/locales/pt-BR/error.json +++ b/locales/pt-BR/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Configuração Ollama inválida, verifique a configuração do Ollama e tente novamente", "InvalidOpenRouterAPIKey": "Chave da API do OpenRouter inválida ou em branco. Por favor, verifique a chave da API do OpenRouter e tente novamente.", "InvalidPerplexityAPIKey": "Chave da API Perplexity inválida ou em branco, verifique a chave da API Perplexity e tente novamente", + "InvalidZeroOneAPIKey": "Chave de API ZeroOne inválida ou vazia, verifique a chave de API ZeroOne e tente novamente", "InvalidZhipuAPIKey": "Chave de API Zhipu incorreta ou vazia, por favor, verifique a chave de API Zhipu e tente novamente", "LocationNotSupportError": "Desculpe, sua localização atual não suporta este serviço de modelo, pode ser devido a restrições geográficas ou serviço não disponível. Por favor, verifique se a localização atual suporta o uso deste serviço ou tente usar outras informações de localização.", "MistralBizError": "Ocorreu um erro ao solicitar o serviço Mistral AI. Por favor, verifique as informações abaixo ou tente novamente.", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Desculpe, a inicialização do cliente OpenAPI falhou. Verifique se as informações de configuração do OpenAPI estão corretas", "PluginServerError": "Erro na resposta do servidor do plugin. Verifique o arquivo de descrição do plugin, a configuração do plugin ou a implementação do servidor de acordo com as informações de erro abaixo", "PluginSettingsInvalid": "Este plugin precisa ser configurado corretamente antes de ser usado. Verifique se sua configuração está correta", + "ZeroOneBizError": "Erro no serviço ZeroOneBiz, verifique as informações abaixo e tente novamente", "ZhipuBizError": "Erro ao solicitar o serviço Zhipu, por favor, verifique as informações abaixo ou tente novamente" }, "stt": { @@ -120,6 +122,10 @@ "description": "Insira sua chave da API Perplexity para iniciar a sessão. O aplicativo não irá armazenar sua chave da API", "title": "Usar chave da API Perplexity personalizada" }, + "ZeroOne": { + "description": "Insira sua chave de API ZeroOne para iniciar a sessão. O aplicativo não irá armazenar sua chave de API", + "title": "Usar chave de API ZeroOne personalizada" + }, "Zhipu": { "description": "Digite sua chave de API Zhipu para iniciar a sessão. O aplicativo não irá armazenar sua chave de API", "title": "Usar chave de API Zhipu personalizada" @@ -150,4 +156,4 @@ "password": "Senha" } } -} \ No newline at end of file +} diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json index 47b6af1aecd3..81548938d84f 100644 --- a/locales/pt-BR/setting.json +++ b/locales/pt-BR/setting.json @@ -201,6 +201,14 @@ "title": "Chave da API" } }, + "ZeroOne": { + "title": "01.AI ZeroOne", + "token": { + "desc": "Insira a chave da API do 01.AI ZeroOne", + "placeholder": "Chave da API do 01.AI ZeroOne", + "title": "Chave da API" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/ru-RU/common.json b/locales/ru-RU/common.json index 64bc747e0c56..0b17fbe0416f 100644 --- a/locales/ru-RU/common.json +++ b/locales/ru-RU/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity AI", + "zeroone": "01. ИИ ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Нет описания", diff --git a/locales/ru-RU/error.json b/locales/ru-RU/error.json index 2283cbe29244..733a00e8d778 100644 --- a/locales/ru-RU/error.json +++ b/locales/ru-RU/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Неверная конфигурация Ollama, пожалуйста, проверьте конфигурацию Ollama и повторите попытку", "InvalidOpenRouterAPIKey": "OpenRouter API Key недействителен или отсутствует. Пожалуйста, проверьте правильность OpenRouter API Key и повторите попытку", "InvalidPerplexityAPIKey": "Неверный или пустой ключ API Perplexity. Пожалуйста, проверьте ключ API Perplexity и повторите попытку", + "InvalidZeroOneAPIKey": "Неверный или пустой ключ API ZeroOne. Пожалуйста, проверьте ключ API ZeroOne и повторите попытку", "InvalidZhipuAPIKey": "Неверный или пустой ключ API Zhipu, пожалуйста, проверьте ключ API Zhipu и повторите попытку", "LocationNotSupportError": "Извините, ваше текущее местоположение не поддерживает эту службу модели, возможно из-за ограничений региона или недоступности службы. Пожалуйста, убедитесь, что текущее местоположение поддерживает использование этой службы, или попробуйте использовать другую информацию о местоположении.", "MistralBizError": "Ошибка запроса к службе Mistral AI. Пожалуйста, проверьте следующую информацию или повторите попытку", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Извините, не удалось инициализировать клиент OpenAPI. Пожалуйста, проверьте правильность информации конфигурации OpenAPI.", "PluginServerError": "Запрос сервера плагина возвратил ошибку. Проверьте файл манифеста плагина, конфигурацию плагина или реализацию сервера на основе информации об ошибке ниже", "PluginSettingsInvalid": "Этот плагин необходимо правильно настроить, прежде чем его можно будет использовать. Пожалуйста, проверьте правильность вашей конфигурации", + "ZeroOneBizError": "Ошибка обслуживания запроса к сервису ZeroOneBiz. Пожалуйста, проверьте следующую информацию и повторите попытку", "ZhipuBizError": "Ошибка запроса службы Zhipu, пожалуйста, проверьте и повторите попытку в соответствии с предоставленной информацией" }, "stt": { @@ -120,6 +122,10 @@ "description": "Введите свой ключ API Perplexity, чтобы начать сеанс. Приложение не будет сохранять ваш ключ API", "title": "Использовать пользовательский ключ API Perplexity" }, + "ZeroOne": { + "description": "Введите свой ключ API ZeroOne, чтобы начать сеанс. Приложение не будет сохранять ваш ключ API", + "title": "Использовать пользовательский ключ API ZeroOne" + }, "Zhipu": { "description": "Введите свой ключ API Zhipu, чтобы начать сеанс. Приложение не будет сохранять ваш ключ API", "title": "Использовать пользовательский ключ API Zhipu" @@ -150,4 +156,4 @@ "password": "Пароль" } } -} \ No newline at end of file +} diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json index 79cbc1ac198a..3fdd01ab5c23 100644 --- a/locales/ru-RU/setting.json +++ b/locales/ru-RU/setting.json @@ -201,6 +201,14 @@ "title": "API-ключ" } }, + "ZeroOne": { + "title": "01.AI ZeroOne", + "token": { + "desc": "Введите API-ключ от 01.AI ZeroOne", + "placeholder": "API-ключ от 01.AI ZeroOne", + "title": "API-ключ" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/tr-TR/common.json b/locales/tr-TR/common.json index 8aa7fb0ca618..351ae251ca9d 100644 --- a/locales/tr-TR/common.json +++ b/locales/tr-TR/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "AçıkYönlendirici", "perplexity": "Perplexity", + "zeroone": "01.AI SıfırBir", "zhipu": "Zhipu AI" }, "noDescription": "Açıklama yok", diff --git a/locales/tr-TR/error.json b/locales/tr-TR/error.json index 5cbe05d867ce..bc2397acbc58 100644 --- a/locales/tr-TR/error.json +++ b/locales/tr-TR/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollama yapılandırması yanlış, lütfen Ollama yapılandırmasını kontrol edip tekrar deneyin", "InvalidOpenRouterAPIKey": "OpenRouter API Anahtarı geçersiz veya boş, lütfen OpenRouter API Anahtarınızı kontrol edip tekrar deneyin", "InvalidPerplexityAPIKey": "Perplexity API Key geçersiz veya boş, lütfen Perplexity API Key'inizi kontrol edip tekrar deneyin", + "InvalidZeroOneAPIKey": "SıfırBirIoT API Anahtarı geçersiz veya boş. Lütfen SıfırBirIoT API Anahtarınızı kontrol edip tekrar deneyin", "InvalidZhipuAPIKey": "Zhipu API Anahtarı yanlış veya boş, lütfen Zhipu API Anahtarınızı kontrol edip tekrar deneyin", "LocationNotSupportError": "Üzgünüz, bulunduğunuz konum bu model hizmetini desteklemiyor, muhtemelen bölge kısıtlamaları veya hizmetin henüz açılmamış olması nedeniyle. Lütfen mevcut konumun bu hizmeti kullanmaya uygun olup olmadığını doğrulayın veya başka bir konum bilgisi kullanmayı deneyin.", "MistralBizError": "Mistral AI hizmeti isteği sırasında bir hata oluştu. Lütfen aşağıdaki bilgilere göre sorunu giderin veya tekrar deneyin", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Üzgünüz, OpenAPI istemci başlatma hatası, lütfen OpenAPI yapılandırma bilgilerini kontrol edin", "PluginServerError": "Eklenti sunucusu isteği bir hata ile döndü. Lütfen aşağıdaki hata bilgilerine dayanarak eklenti bildirim dosyanızı, eklenti yapılandırmanızı veya sunucu uygulamanızı kontrol edin", "PluginSettingsInvalid": "Bu eklenti, kullanılmadan önce doğru şekilde yapılandırılmalıdır. Lütfen yapılandırmanızın doğru olup olmadığını kontrol edin", + "ZeroOneBizError": "SıfırBirIoT hizmetine yapılan istekte bir hata oluştu. Lütfen aşağıdaki bilgilere göre sorunu gidermeye çalışın veya tekrar deneyin", "ZhipuBizError": "Zhipu servisi isteği hatası, lütfen aşağıdaki bilgilere göre sorunu gidermeye çalışın veya tekrar deneyin" }, "stt": { @@ -120,6 +122,10 @@ "description": "Sohbeti başlatmak için Perplexity API Key'inizi girin. Uygulama API Key'inizi kaydetmez", "title": "Özel Perplexity API Key'i Kullan" }, + "ZeroOne": { + "description": "Oturumu başlatmak için SıfırBirIoT API Anahtarınızı girin. Uygulama API Anahtarınızı kaydetmez", + "title": "Özel SıfırBirIoT API Anahtarı Kullan" + }, "Zhipu": { "description": "Zhipu API Anahtarınızı girerek oturumu başlatabilirsiniz. Uygulama API Anahtarınızı kaydetmez", "title": "Özel Zhipu API Anahtarını kullan" @@ -150,4 +156,4 @@ "password": "Şifre" } } -} \ No newline at end of file +} diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json index 393953d042f0..994daf07a08d 100644 --- a/locales/tr-TR/setting.json +++ b/locales/tr-TR/setting.json @@ -201,6 +201,14 @@ "title": "API Anahtarı" } }, + "ZeroOne": { + "title": "01.AI SıfırBir Her Şey", + "token": { + "desc": "01.AI SıfırBir Her Şey'den API Anahtarı girin", + "placeholder": "01.AI SıfırBir Her Şey API Anahtarı", + "title": "API Anahtarı" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/vi-VN/common.json b/locales/vi-VN/common.json index 804d0b85d350..87fbfaa8ad27 100644 --- a/locales/vi-VN/common.json +++ b/locales/vi-VN/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity AI", + "zeroone": "01.AI ZeroOne", "zhipu": "Zhipu AI" }, "noDescription": "Chưa có mô tả", diff --git a/locales/vi-VN/error.json b/locales/vi-VN/error.json index 7ce72019fd5c..3d3be5c6bfe4 100644 --- a/locales/vi-VN/error.json +++ b/locales/vi-VN/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Cấu hình Ollama không hợp lệ, vui lòng kiểm tra lại cấu hình Ollama và thử lại", "InvalidOpenRouterAPIKey": "OpenRouter API Key không hợp lệ hoặc trống, vui lòng kiểm tra lại và thử lại", "InvalidPerplexityAPIKey": "Khóa API Perplexity không hợp lệ hoặc trống, vui lòng kiểm tra lại và thử lại sau", + "InvalidZeroOneAPIKey": "Khóa API ZeroOne không hợp lệ hoặc trống, vui lòng kiểm tra lại khóa API ZeroOne và thử lại", "InvalidZhipuAPIKey": "Khóa API Zhipu không chính xác hoặc trống, vui lòng kiểm tra lại Khóa API Zhipu và thử lại", "LocationNotSupportError": "Xin lỗi, vị trí của bạn không hỗ trợ dịch vụ mô hình này, có thể do hạn chế vùng miền hoặc dịch vụ chưa được mở. Vui lòng xác nhận xem vị trí hiện tại có hỗ trợ sử dụng dịch vụ này không, hoặc thử sử dụng thông tin vị trí khác.", "MistralBizError": "Yêu cầu dịch vụ Mistral AI gặp lỗi, vui lòng kiểm tra thông tin dưới đây hoặc thử lại", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "Xin lỗi, khởi tạo khách hàng OpenAPI thất bại, vui lòng kiểm tra thông tin cấu hình OpenAPI có đúng không", "PluginServerError": "Lỗi trả về từ máy chủ plugin, vui lòng kiểm tra tệp mô tả plugin, cấu hình plugin hoặc triển khai máy chủ theo thông tin lỗi dưới đây", "PluginSettingsInvalid": "Plugin cần phải được cấu hình đúng trước khi sử dụng, vui lòng kiểm tra cấu hình của bạn có đúng không", + "ZeroOneBizError": "Yêu cầu dịch vụ ZeroOneBiz gặp lỗi, vui lòng kiểm tra thông tin dưới đây hoặc thử lại", "ZhipuBizError": "Yêu cầu dịch vụ Zhipu gặp lỗi, vui lòng kiểm tra và thử lại dựa trên thông tin dưới đây" }, "stt": { @@ -120,6 +122,10 @@ "description": "Nhập Khóa API Perplexity của bạn để bắt đầu phiên làm việc. Ứng dụng sẽ không ghi lại Khóa API của bạn", "title": "Sử dụng Khóa API Perplexity tùy chỉnh" }, + "ZeroOne": { + "description": "Nhập khóa API ZeroOne của bạn để bắt đầu phiên làm việc. Ứng dụng sẽ không lưu trữ khóa API của bạn", + "title": "Sử dụng khóa API ZeroOne tùy chỉnh" + }, "Zhipu": { "description": "Nhập Zhipu API Key của bạn để bắt đầu phiên làm việc. Ứng dụng sẽ không lưu trữ API Key của bạn", "title": "Sử dụng thông tin xác thực tùy chỉnh của Zhipu" @@ -150,4 +156,4 @@ "password": "Mật khẩu" } } -} \ No newline at end of file +} diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json index 76fac0628fb6..4b1c6d71948a 100644 --- a/locales/vi-VN/setting.json +++ b/locales/vi-VN/setting.json @@ -201,6 +201,14 @@ "title": "API Key" } }, + "ZeroOne": { + "title": "01.AI ZeroOne", + "token": { + "desc": "Nhập API Key từ 01.AI ZeroOne", + "placeholder": "01.AI ZeroOne API Key", + "title": "API Key" + } + }, "Zhipu": { "title": "Zhipu AI", "token": { diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json index cad4529f58ae..8288818b1379 100644 --- a/locales/zh-CN/common.json +++ b/locales/zh-CN/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity", + "zeroone": "01.AI 零一万物", "zhipu": "智谱AI" }, "noDescription": "暂无描述", diff --git a/locales/zh-CN/error.json b/locales/zh-CN/error.json index e956612d37c3..3644e268d8c2 100644 --- a/locales/zh-CN/error.json +++ b/locales/zh-CN/error.json @@ -69,6 +69,8 @@ "GroqBizError": "请求 Groq 服务出错,请根据以下信息排查或重试", "InvalidOpenRouterAPIKey": "OpenRouter API Key 不正确或为空,请检查 OpenRouter API Key 后重试", "OpenRouterBizError": "请求 OpenRouter AI 服务出错,请根据以下信息排查或重试", + "ZeroOneBizError": "请求零一万物服务出错,请根据以下信息排查或重试", + "InvalidZeroOneAPIKey": "零一万物 API Key 不正确或为空,请检查零一万物 API Key 后重试", "InvalidOllamaArgs": "Ollama 配置不正确,请检查 Ollama 配置后重试", "OllamaBizError": "请求 Ollama 服务出错,请根据以下信息排查或重试", "OllamaServiceUnavailable": "未检测到 Ollama 服务,请检查是否正常启动", @@ -120,6 +122,10 @@ "description": "输入你的 Perplexity API Key 即可开始会话。应用不会记录你的 API Key", "title": "使用自定义 Perplexity API Key" }, + "ZeroOne": { + "description": "输入你的零一万物 API Key 即可开始会话。应用不会记录你的 API Key", + "title": "使用自定义零一万物 API Key" + }, "Zhipu": { "description": "输入你的 Zhipu API Key 即可开始会话。应用不会记录你的 API Key", "title": "使用自定义 Zhipu API Key" @@ -150,4 +156,4 @@ "password": "密码" } } -} \ No newline at end of file +} diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json index 063a1cdf343f..29678a07c18e 100644 --- a/locales/zh-CN/setting.json +++ b/locales/zh-CN/setting.json @@ -201,6 +201,14 @@ "title": "API Key" } }, + "ZeroOne": { + "title": "01.AI 零一万物", + "token": { + "desc": "填入来自 01.AI 零一万物的 API Key", + "placeholder": "01.AI 零一万物 API Key", + "title": "API Key" + } + }, "Zhipu": { "title": "智谱", "token": { diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.json index e752f8b249b4..b6399b7e2d15 100644 --- a/locales/zh-TW/common.json +++ b/locales/zh-TW/common.json @@ -107,6 +107,7 @@ "openai": "OpenAI", "openrouter": "OpenRouter", "perplexity": "Perplexity AI", + "zeroone": "01.AI 零一萬物", "zhipu": "智譜AI" }, "noDescription": "暫無描述", diff --git a/locales/zh-TW/error.json b/locales/zh-TW/error.json index b028f2348511..c1a860073223 100644 --- a/locales/zh-TW/error.json +++ b/locales/zh-TW/error.json @@ -50,6 +50,7 @@ "InvalidOllamaArgs": "Ollama 配置不正確,請檢查 Ollama 配置後重試", "InvalidOpenRouterAPIKey": "OpenRouter API 金鑰不正確或為空,請檢查 OpenRouter API 金鑰後重試", "InvalidPerplexityAPIKey": "Perplexity API Key 不正確或為空,請檢查 Perplexity API Key 後重試", + "InvalidZeroOneAPIKey": "零一萬物 API Key 不正確或為空,請檢查零一萬物 API Key 後重試", "InvalidZhipuAPIKey": "Zhipu API Key 不正確或為空,請檢查 Zhipu API Key 後重試", "LocationNotSupportError": "很抱歉,你的所在位置不支持此模型服務,可能是由於地區限制或服務未開通。請確認當前位置是否支持使用此服務,或嘗試使用其他位置信息。", "MistralBizError": "請求 Mistral AI 服務出錯,請根據以下信息排查或重試", @@ -72,6 +73,7 @@ "PluginOpenApiInitError": "很抱歉,OpenAPI 客戶端初始化失敗,請檢查 OpenAPI 的配置信息是否正確", "PluginServerError": "外掛伺服器請求回傳錯誤。請根據下面的錯誤資訊檢查您的外掛描述檔案、外掛設定或伺服器實作", "PluginSettingsInvalid": "該外掛需要正確設定後才可以使用。請檢查您的設定是否正確", + "ZeroOneBizError": "請求零一萬物服務出錯,請根據以下信息排查或重試", "ZhipuBizError": "請求智譜服務出錯,請根據以下信息排查或重試" }, "stt": { @@ -120,6 +122,10 @@ "description": "輸入你的 Perplexity API Key 即可開始會話。應用不會記錄你的 API Key", "title": "使用自定義 Perplexity API Key" }, + "ZeroOne": { + "description": "輸入你的零一萬物 API Key 即可開始會話。應用不會記錄你的 API Key", + "title": "使用自定義零一萬物 API Key" + }, "Zhipu": { "description": "輸入你的 Zhipu API Key 即可開始會話。應用不會記錄你的 API Key", "title": "使用自定義 Zhipu API Key" @@ -150,4 +156,4 @@ "password": "密碼" } } -} \ No newline at end of file +} diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json index df0102e241d8..d5d3857abca7 100644 --- a/locales/zh-TW/setting.json +++ b/locales/zh-TW/setting.json @@ -201,6 +201,14 @@ "title": "API 金鑰" } }, + "ZeroOne": { + "title": "01.AI 零一萬物", + "token": { + "desc": "填入來自 01.AI 零一萬物的 API 金鑰", + "placeholder": "01.AI 零一萬物 API 金鑰", + "title": "API 金鑰" + } + }, "Zhipu": { "title": "智譜", "token": { diff --git a/src/app/api/chat/[provider]/agentRuntime.ts b/src/app/api/chat/[provider]/agentRuntime.ts index 55268184ba5d..8657febe1052 100644 --- a/src/app/api/chat/[provider]/agentRuntime.ts +++ b/src/app/api/chat/[provider]/agentRuntime.ts @@ -21,6 +21,7 @@ import { LobeOpenRouterAI, LobePerplexityAI, LobeRuntimeAI, + LobeZeroOneAI, LobeZhipuAI, ModelProvider, } from '@/libs/agent-runtime'; @@ -174,11 +175,16 @@ class AgentRuntime { runtimeModel = this.initGroq(payload); break; } - + case ModelProvider.OpenRouter: { runtimeModel = this.initOpenRouter(payload); break; } + + case ModelProvider.ZeroOne: { + runtimeModel = this.initZeroOne(payload); + break; + } } return new AgentRuntime(runtimeModel); @@ -287,7 +293,7 @@ class AgentRuntime { return new LobeGroq({ apiKey }); } - + private static initOpenRouter(payload: JWTPayload) { const { OPENROUTER_API_KEY } = getServerConfig(); const apiKey = apiKeyManager.pick(payload?.apiKey || OPENROUTER_API_KEY); @@ -295,6 +301,13 @@ class AgentRuntime { return new LobeOpenRouterAI({ apiKey }); } + private static initZeroOne(payload: JWTPayload) { + const { ZEROONE_API_KEY } = getServerConfig(); + const apiKey = apiKeyManager.pick(payload?.apiKey || ZEROONE_API_KEY); + + return new LobeZeroOneAI({ apiKey }); + } + } export default AgentRuntime; diff --git a/src/app/api/config/route.ts b/src/app/api/config/route.ts index 5bbdcd3ea1d2..20c46d123d85 100644 --- a/src/app/api/config/route.ts +++ b/src/app/api/config/route.ts @@ -23,6 +23,7 @@ export const GET = async () => { ENABLED_ANTHROPIC, ENABLED_MISTRAL, ENABLED_OPENROUTER, + ENABLED_ZEROONE, DEFAULT_AGENT_CONFIG, OLLAMA_CUSTOM_MODELS, } = getServerConfig(); @@ -44,6 +45,7 @@ export const GET = async () => { ollama: { customModelName: OLLAMA_CUSTOM_MODELS, enabled: ENABLE_OLLAMA }, openrouter: { enabled: ENABLED_OPENROUTER }, perplexity: { enabled: ENABLED_PERPLEXITY }, + zeroone: { enabled: ENABLED_ZEROONE }, zhipu: { enabled: ENABLED_ZHIPU }, }, telemetry: { diff --git a/src/app/api/errorResponse.ts b/src/app/api/errorResponse.ts index 7b56abea3a87..082e4e6761c8 100644 --- a/src/app/api/errorResponse.ts +++ b/src/app/api/errorResponse.ts @@ -56,6 +56,9 @@ const getStatus = (errorType: ILobeAgentRuntimeErrorType | ErrorType) => { case AgentRuntimeErrorType.GroqBizError: { return 482; } + case AgentRuntimeErrorType.ZeroOneBizError: { + return 483; + } } return errorType as number; }; diff --git a/src/app/settings/llm/Google/index.tsx b/src/app/settings/llm/Google/index.tsx index 02addbc73102..02d624d36e94 100644 --- a/src/app/settings/llm/Google/index.tsx +++ b/src/app/settings/llm/Google/index.tsx @@ -1,7 +1,8 @@ -import { Google } from '@lobehub/icons'; -import { Input } from 'antd'; +import { Google, Gemini } from '@lobehub/icons'; +import { Input, Divider } from 'antd'; import { memo } from 'react'; import { useTranslation } from 'react-i18next'; +import { Flexbox } from 'react-layout-kit'; import { ModelProvider } from '@/libs/agent-runtime'; import { GlobalLLMProviderKey } from '@/types/settings'; @@ -37,7 +38,13 @@ const GoogleProvider = memo(() => { }, ]} provider={providerKey} - title={} + title={ + + + + + + } /> ); }); diff --git a/src/app/settings/llm/ZeroOne/index.tsx b/src/app/settings/llm/ZeroOne/index.tsx new file mode 100644 index 000000000000..b26563bbe32b --- /dev/null +++ b/src/app/settings/llm/ZeroOne/index.tsx @@ -0,0 +1,52 @@ +import { ZeroOne } from '@lobehub/icons'; +import { Input } from 'antd'; +import { useTheme } from 'antd-style'; +import { memo } from 'react'; +import { useTranslation } from 'react-i18next'; + +import { ModelProvider } from '@/libs/agent-runtime'; + +import Checker from '../components/Checker'; +import ProviderConfig from '../components/ProviderConfig'; +import { LLMProviderApiTokenKey, LLMProviderConfigKey } from '../const'; + +const providerKey = 'zeroone'; + +const ZeroOneProvider = memo(() => { + const { t } = useTranslation('setting'); + + const theme = useTheme(); + + return ( + + ), + desc: t('llm.ZeroOne.token.desc'), + label: t('llm.ZeroOne.token.title'), + name: [LLMProviderConfigKey, providerKey, LLMProviderApiTokenKey], + }, + { + children: , + desc: t('llm.checker.desc'), + label: t('llm.checker.title'), + minWidth: '100%', + }, + ]} + provider={providerKey} + title={ + + } + /> + ); +}); + +export default ZeroOneProvider; diff --git a/src/app/settings/llm/index.tsx b/src/app/settings/llm/index.tsx index a3b6667865f4..f53c83d6de33 100644 --- a/src/app/settings/llm/index.tsx +++ b/src/app/settings/llm/index.tsx @@ -18,6 +18,7 @@ import Ollama from './Ollama'; import OpenAI from './OpenAI'; import OpenRouter from './OpenRouter'; import Perplexity from './Perplexity'; +import ZeroOne from './ZeroOne'; import Zhipu from './Zhipu'; export default memo<{ showOllama: boolean }>(({ showOllama }) => { @@ -37,6 +38,7 @@ export default memo<{ showOllama: boolean }>(({ showOllama }) => { +