@lobehub/chat 0.126.5 → 0.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/.env.example +8 -0
  2. package/CHANGELOG.md +25 -0
  3. package/Dockerfile +3 -0
  4. package/docs/Deployment/Environment-Variable.md +10 -0
  5. package/docs/Deployment/Environment-Variable.zh-CN.md +10 -0
  6. package/locales/ar/common.json +1 -0
  7. package/locales/ar/error.json +2 -0
  8. package/locales/ar/setting.json +16 -0
  9. package/locales/de-DE/common.json +1 -0
  10. package/locales/de-DE/error.json +2 -0
  11. package/locales/de-DE/setting.json +16 -0
  12. package/locales/en-US/common.json +1 -0
  13. package/locales/en-US/error.json +2 -0
  14. package/locales/en-US/setting.json +16 -0
  15. package/locales/es-ES/common.json +1 -0
  16. package/locales/es-ES/error.json +2 -0
  17. package/locales/es-ES/setting.json +16 -0
  18. package/locales/fr-FR/common.json +1 -0
  19. package/locales/fr-FR/error.json +2 -0
  20. package/locales/fr-FR/setting.json +16 -0
  21. package/locales/it-IT/common.json +1 -0
  22. package/locales/it-IT/error.json +2 -0
  23. package/locales/it-IT/setting.json +16 -0
  24. package/locales/ja-JP/common.json +1 -0
  25. package/locales/ja-JP/error.json +2 -0
  26. package/locales/ja-JP/setting.json +16 -0
  27. package/locales/ko-KR/common.json +1 -0
  28. package/locales/ko-KR/error.json +2 -0
  29. package/locales/ko-KR/setting.json +16 -0
  30. package/locales/nl-NL/common.json +1 -0
  31. package/locales/nl-NL/error.json +2 -0
  32. package/locales/nl-NL/setting.json +16 -0
  33. package/locales/pl-PL/common.json +1 -0
  34. package/locales/pl-PL/error.json +2 -0
  35. package/locales/pl-PL/setting.json +16 -0
  36. package/locales/pt-BR/common.json +1 -0
  37. package/locales/pt-BR/error.json +2 -0
  38. package/locales/pt-BR/setting.json +16 -0
  39. package/locales/ru-RU/common.json +1 -0
  40. package/locales/ru-RU/error.json +2 -0
  41. package/locales/ru-RU/setting.json +16 -0
  42. package/locales/tr-TR/common.json +1 -0
  43. package/locales/tr-TR/error.json +2 -0
  44. package/locales/tr-TR/setting.json +16 -0
  45. package/locales/vi-VN/common.json +1 -0
  46. package/locales/vi-VN/error.json +2 -0
  47. package/locales/vi-VN/setting.json +16 -0
  48. package/locales/zh-CN/common.json +1 -0
  49. package/locales/zh-CN/error.json +2 -0
  50. package/locales/zh-CN/setting.json +16 -0
  51. package/locales/zh-TW/common.json +1 -0
  52. package/locales/zh-TW/error.json +2 -0
  53. package/locales/zh-TW/setting.json +16 -0
  54. package/package.json +1 -1
  55. package/src/app/api/chat/[provider]/agentRuntime.ts +14 -0
  56. package/src/app/api/config/route.ts +2 -0
  57. package/src/app/api/errorResponse.ts +3 -0
  58. package/src/app/settings/llm/Ollama/index.tsx +81 -0
  59. package/src/app/settings/llm/page.tsx +7 -0
  60. package/src/components/ModelProviderIcon/index.tsx +5 -1
  61. package/src/config/modelProviders/index.ts +3 -0
  62. package/src/config/modelProviders/ollama.ts +117 -0
  63. package/src/config/server/provider.ts +6 -0
  64. package/src/const/settings.ts +4 -0
  65. package/src/libs/agent-runtime/error.ts +3 -0
  66. package/src/libs/agent-runtime/index.ts +1 -0
  67. package/src/libs/agent-runtime/ollama/index.ts +80 -0
  68. package/src/libs/agent-runtime/types/type.ts +1 -0
  69. package/src/locales/default/common.ts +1 -0
  70. package/src/locales/default/error.ts +3 -0
  71. package/src/locales/default/setting.ts +16 -0
  72. package/src/services/_auth.ts +8 -0
  73. package/src/store/global/slices/settings/selectors/modelProvider.ts +24 -2
  74. package/src/types/settings/modelProvider.ts +7 -0
package/.env.example CHANGED
@@ -59,6 +59,14 @@ OPENAI_API_KEY=sk-xxxxxxxxx
59
59
  #AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxx
60
60
  #AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
61
61
 
62
+ ########################################
63
+ ######### Ollama AI Service ##########
64
+ ########################################
65
+
66
+ # You can use ollama to get and run LLM locally, learn more about it via https://github.com/ollama/ollama
67
+ # The local/remote ollama service url
68
+ # OLLAMA_PROXY_URL=http://127.0.0.1:11434/v1
69
+
62
70
  ########################################
63
71
  ############ Market Service ############
64
72
  ########################################
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 0.127.0](https://github.com/lobehub/lobe-chat/compare/v0.126.5...v0.127.0)
6
+
7
+ <sup>Released on **2024-02-13**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **llm**: Support Ollama AI Provider for local LLM.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **llm**: Support Ollama AI Provider for local LLM ([3b6f249](https://github.com/lobehub/lobe-chat/commit/3b6f249))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.126.5](https://github.com/lobehub/lobe-chat/compare/v0.126.4...v0.126.5)
6
31
 
7
32
  <sup>Released on **2024-02-12**</sup>
package/Dockerfile CHANGED
@@ -78,4 +78,7 @@ ENV ZHIPU_API_KEY ""
78
78
  # Moonshot
79
79
  ENV MOONSHOT_API_KEY ""
80
80
 
81
+ # Ollama
82
+ ENV OLLAMA_PROXY_URL ""
83
+
81
84
  CMD ["node", "server.js"]
@@ -18,6 +18,7 @@ LobeChat provides additional configuration options during deployment, which can
18
18
  - [Moonshot AI](#moonshot-ai)
19
19
  - [Google AI](#google-ai)
20
20
  - [AWS Bedrock](#aws-bedrock)
21
+ - [Ollama](#ollama)
21
22
  - [Plugin Service](#plugin-service)
22
23
  - [`PLUGINS_INDEX_URL`](#plugins_index_url)
23
24
  - [`PLUGIN_SETTINGS`](#plugin_settings)
@@ -208,6 +209,15 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
208
209
  - Default Value: `us-east-1`
209
210
  - Example: `us-east-1`
210
211
 
212
+ ### Ollama
213
+
214
+ #### `OLLAMA_PROXY_URL`
215
+
216
+ - Type: Optional
217
+ - Description: To enable the Ollama service provider, if set up which will appear as selectable model card in the language model setting page, you can also specify a custom language model.
218
+ - Default: -
219
+ - Example: `http://127.0.0.1:11434/v1`
220
+
211
221
  ## Plugin Service
212
222
 
213
223
  ### `PLUGINS_INDEX_URL`
@@ -18,6 +18,7 @@ LobeChat 在部署时提供了一些额外的配置项,使用环境变量进
18
18
  - [Moonshot AI](#moonshot-ai)
19
19
  - [Google AI](#google-ai)
20
20
  - [AWS Bedrock](#aws-bedrock)
21
+ - [Ollama](#ollama)
21
22
  - [插件服务](#插件服务)
22
23
  - [`PLUGINS_INDEX_URL`](#plugins_index_url)
23
24
  - [`PLUGIN_SETTINGS`](#plugin_settings)
@@ -206,6 +207,15 @@ LobeChat 在部署时提供了一些额外的配置项,使用环境变量进
206
207
  - 默认值:`us-east-1`
207
208
  - 示例:`us-east-1`
208
209
 
210
+ ### Ollama
211
+
212
+ #### `OLLAMA_PROXY_URL`
213
+
214
+ - 类型:可选
215
+ - 描述:用于启用 Ollama 服务,设置后可在语言模型列表内展示可选开源语言模型,也可以指定自定义语言模型
216
+ - 默认值:-
217
+ - 示例:`http://127.0.0.1:11434/v1`
218
+
209
219
  ## 插件服务
210
220
 
211
221
  ### `PLUGINS_INDEX_URL`
@@ -103,6 +103,7 @@
103
103
  "bedrock": "بيدروك لأمازون ويب سيرفيس",
104
104
  "google": "جوجل",
105
105
  "moonshot": "مونشوت الذكاء الاصطناعي",
106
+ "ollama": "أولاما",
106
107
  "oneapi": "وان آبي آي",
107
108
  "openai": "أوبن إيه آي",
108
109
  "zhipu": "زهيبو"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "فشلت مصادقة Bedrock، يرجى التحقق من AccessKeyId/SecretAccessKey وإعادة المحاولة",
43
43
  "InvalidGoogleAPIKey": "مفتاح Google API غير صحيح أو فارغ، يرجى التحقق من مفتاح Google API وإعادة المحاولة",
44
44
  "InvalidMoonshotAPIKey": "مفتاح API لـ Moonshot AI غير صحيح أو فارغ، يرجى التحقق من مفتاح API لـ Moonshot وإعادة المحاولة",
45
+ "InvalidOllamaArgs": "تكوين Ollama غير صحيح، يرجى التحقق من تكوين Ollama وإعادة المحاولة",
45
46
  "InvalidZhipuAPIKey": "مفتاح Zhipu API غير صحيح أو فارغ، يرجى التحقق من مفتاح Zhipu API وإعادة المحاولة",
46
47
  "LocationNotSupportError": "عذرًا، لا يدعم موقعك الحالي خدمة هذا النموذج، قد يكون ذلك بسبب قيود المنطقة أو عدم توفر الخدمة. يرجى التحقق مما إذا كان الموقع الحالي يدعم استخدام هذه الخدمة، أو محاولة استخدام معلومات الموقع الأخرى.",
47
48
  "MoonshotBizError": "حدث خطأ في خدمة جانب القمر، يرجى التحقق من المعلومات أدناه أو إعادة المحاولة",
48
49
  "NoOpenAIAPIKey": "مفتاح API الخاص بـ OpenAI فارغ، يرجى إضافة مفتاح API الخاص بـ OpenAI",
50
+ "OllamaBizError": "خطأ في طلب خدمة Ollama، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
49
51
  "OpenAIBizError": "حدث خطأ في طلب خدمة OpenAI، يرجى التحقق من المعلومات أدناه وإعادة المحاولة",
50
52
  "PluginApiNotFound": "عذرًا، لا يوجد API للإضافة في وصف الإضافة، يرجى التحقق من تطابق طريقة الطلب الخاصة بك مع API الوصف",
51
53
  "PluginApiParamsError": "عذرًا، فشلت التحقق من صحة معلمات الطلب للإضافة، يرجى التحقق من تطابق المعلمات مع معلومات الوصف",
@@ -84,6 +84,22 @@
84
84
  "title": "مفتاح API"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "تحقق من صحة عنوان الوكيل"
90
+ },
91
+ "customModelName": {
92
+ "desc": "إضافة نموذج مخصص، استخدم فاصلة (،) للنماذج المتعددة",
93
+ "placeholder": "فيكونا، للافا، كوديلاما، لاما2:13b-نص",
94
+ "title": "اسم النموذج المخصص"
95
+ },
96
+ "endpoint": {
97
+ "desc": "أدخل عنوان وكيل واجهة Ollama، اتركه فارغًا إذا لم يتم تحديده محليًا",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "عنوان وكيل الواجهة"
100
+ },
101
+ "title": "أولاما"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "إصدار واجهة برمجة التطبيقات لـ Azure، يتبع تنسيق YYYY-MM-DD، اطلع على [أحدث الإصدارات](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot KI",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Die Bedrock-Authentifizierung ist fehlgeschlagen. Bitte überprüfen Sie AccessKeyId/SecretAccessKey und versuchen Sie es erneut.",
43
43
  "InvalidGoogleAPIKey": "Der Google API-Schlüssel ist ungültig oder leer. Bitte überprüfen Sie den Google API-Schlüssel und versuchen Sie es erneut.",
44
44
  "InvalidMoonshotAPIKey": "Ungültiger oder leerer Moonshot AI API-Schlüssel. Bitte überprüfen Sie den Moonshot API-Schlüssel und versuchen Sie es erneut.",
45
+ "InvalidOllamaArgs": "Ollama-Konfiguration ist ungültig. Bitte überprüfen Sie die Ollama-Konfiguration und versuchen Sie es erneut.",
45
46
  "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.",
46
47
  "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.",
47
48
  "MoonshotBizError": "Fehler beim Abrufen des Dark Side of the Moon-Services. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
48
49
  "NoOpenAIAPIKey": "Der OpenAI-API-Schlüssel ist leer. Bitte fügen Sie einen benutzerdefinierten OpenAI-API-Schlüssel hinzu",
50
+ "OllamaBizError": "Fehler bei der Anforderung des Ollama-Dienstes. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
49
51
  "OpenAIBizError": "Fehler bei der OpenAI-Serviceanfrage. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut",
50
52
  "PluginApiNotFound": "Entschuldigung, das API des Plugins im Plugin-Manifest existiert nicht. Bitte überprüfen Sie, ob Ihre Anfragemethode mit dem Plugin-Manifest-API übereinstimmt",
51
53
  "PluginApiParamsError": "Entschuldigung, die Eingabeüberprüfung der Plugin-Anfrage ist fehlgeschlagen. Bitte überprüfen Sie, ob die Eingabe mit den API-Beschreibungsinformationen übereinstimmt",
@@ -84,6 +84,22 @@
84
84
  "title": "API-Schlüssel"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Überprüfen Sie, ob die Proxy-Adresse korrekt eingegeben wurde"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Fügen Sie benutzerdefinierte Modelle hinzu. Verwenden Sie zur Angabe mehrerer Modelle ein Komma (,)",
93
+ "placeholder": "Vicuna, Llava, Codellama, Llama2:13b-Text",
94
+ "title": "Benutzerdefinierte Modellnamen"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Geben Sie die Ollama-Proxy-URL ein. Wenn keine lokale URL angegeben ist, lassen Sie dieses Feld leer",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Proxy-URL"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Die API-Version von Azure, im Format YYYY-MM-DD. Siehe [Neueste Version](https://learn.microsoft.com/de-de/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot AI",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Bedrock authentication failed. Please check the AccessKeyId/SecretAccessKey and retry.",
43
43
  "InvalidGoogleAPIKey": "Google API Key is incorrect or empty. Please check the Google API Key and retry.",
44
44
  "InvalidMoonshotAPIKey": "The Moonshot AI API Key is incorrect or empty, please check the Moonshot API Key and try again.",
45
+ "InvalidOllamaArgs": "Invalid Ollama configuration, please check Ollama configuration and try again",
45
46
  "InvalidZhipuAPIKey": "Zhipu API Key is incorrect or empty. Please check the Zhipu API Key and retry.",
46
47
  "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.",
47
48
  "MoonshotBizError": "There was an error with the Moonshot service, please troubleshoot or retry based on the following information.",
48
49
  "NoOpenAIAPIKey": "OpenAI API Key is empty, please add a custom OpenAI API Key",
50
+ "OllamaBizError": "Error requesting Ollama service, please troubleshoot or retry based on the following information",
49
51
  "OpenAIBizError": "Error requesting OpenAI service. Please troubleshoot or retry based on the following information.",
50
52
  "PluginApiNotFound": "Sorry, the API does not exist in the plugin's manifest. Please check if your request method matches the plugin manifest API",
51
53
  "PluginApiParamsError": "Sorry, the input parameter validation for the plugin request failed. Please check if the input parameters match the API description",
@@ -84,6 +84,22 @@
84
84
  "title": "API Key"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Check if the proxy address is filled in correctly"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Add custom models, separate multiple models with commas",
93
+ "placeholder": "vicuna,llama,codellama,llama2:13b-text",
94
+ "title": "Custom Model Name"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Enter the Ollama API proxy address, leave blank if not specifically set locally",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "API Proxy Address"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "The API version for Azure, following the format YYYY-MM-DD, check the [latest version](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot IA",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "La autenticación de Bedrock no se ha completado con éxito, por favor, verifica AccessKeyId/SecretAccessKey e inténtalo de nuevo",
43
43
  "InvalidGoogleAPIKey": "La clave de API de Google es incorrecta o está vacía, por favor, verifica la clave de API de Google e inténtalo de nuevo",
44
44
  "InvalidMoonshotAPIKey": "La clave de API de Moonshot AI no es válida o está vacía. Por favor, revise la clave de API de Moonshot e inténtelo de nuevo.",
45
+ "InvalidOllamaArgs": "La configuración de Ollama no es válida, por favor revisa la configuración de Ollama e inténtalo de nuevo",
45
46
  "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",
46
47
  "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.",
47
48
  "MoonshotBizError": "Se produjo un error al solicitar el servicio de Moonshot en el lado oscuro de la luna. Por favor, revise la siguiente información o inténtelo de nuevo.",
48
49
  "NoOpenAIAPIKey": "La clave de API de OpenAI está vacía. Agregue una clave de API de OpenAI personalizada",
50
+ "OllamaBizError": "Error al solicitar el servicio de Ollama, por favor verifica la siguiente información o inténtalo de nuevo",
49
51
  "OpenAIBizError": "Error al solicitar el servicio OpenAI. Depure o reintente según la siguiente información",
50
52
  "PluginApiNotFound": "Lo sentimos, el API especificado no existe en el manifiesto del complemento. Verifique si su método de solicitud coincide con el API del manifiesto del complemento",
51
53
  "PluginApiParamsError": "Lo sentimos, la validación de los parámetros de entrada de la solicitud del complemento no ha pasado. Verifique si los parámetros de entrada coinciden con la información de descripción del API",
@@ -84,6 +84,22 @@
84
84
  "title": "Clave API"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Verifica si la dirección del proxy está correctamente escrita"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Agrega modelos personalizados, separados por comas (,)",
93
+ "placeholder": "vicuña,llama,codellama,llama2:13b-text",
94
+ "title": "Nombre del modelo personalizado"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Ingresa la dirección del proxy de la interfaz de Ollama, déjalo en blanco si no se especifica localmente",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Dirección del proxy de la interfaz"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Versión de la API de Azure, sigue el formato YYYY-MM-DD, consulta la [última versión](https://learn.microsoft.com/es-es/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot IA",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "L'authentification Bedrock a échoué, veuillez vérifier AccessKeyId/SecretAccessKey et réessayer",
43
43
  "InvalidGoogleAPIKey": "Clé API Google incorrecte ou vide, veuillez vérifier la clé API Google et réessayer",
44
44
  "InvalidMoonshotAPIKey": "Clé API Moonshot AI incorrecte ou manquante. Veuillez vérifier la clé API Moonshot et réessayer.",
45
+ "InvalidOllamaArgs": "La configuration d'Ollama n'est pas valide, veuillez vérifier la configuration d'Ollama et réessayer",
45
46
  "InvalidZhipuAPIKey": "Clé API Zhipu incorrecte ou vide, veuillez vérifier la clé API Zhipu et réessayer",
46
47
  "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.",
47
48
  "MoonshotBizError": "Erreur de service Moonshot : une erreur s'est produite lors de la demande du service Côté Obscur de la Lune. Veuillez vérifier les informations suivantes ou réessayer.",
48
49
  "NoOpenAIAPIKey": "La clé API OpenAI est vide. Veuillez ajouter une clé API OpenAI personnalisée",
50
+ "OllamaBizError": "Erreur commerciale lors de la demande de service Ollama, veuillez vérifier les informations ci-dessous ou réessayer",
49
51
  "OpenAIBizError": "Erreur de service OpenAI. Veuillez diagnostiquer ou réessayer en fonction des informations ci-dessous",
50
52
  "PluginApiNotFound": "Désolé, l'API spécifiée n'existe pas dans le manifeste du plugin. Veuillez vérifier que votre méthode de requête correspond à l'API du manifeste du plugin",
51
53
  "PluginApiParamsError": "Désolé, la validation des paramètres d'entrée de la requête de ce plugin a échoué. Veuillez vérifier que les paramètres d'entrée correspondent aux informations de l'API",
@@ -84,6 +84,22 @@
84
84
  "title": "API密钥"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Vérifiez si l'adresse du proxy est correctement remplie"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Ajoutez un modèle personnalisé, séparez les modèles multiples par des virgules (,)",
93
+ "placeholder": "vicuna,llava,codellama,llama2:13b-text",
94
+ "title": "Nom du modèle personnalisé"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Entrez l'adresse du proxy de l'interface Ollama, laissez vide si non spécifié localement",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Adresse du proxy de l'interface"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Version de l'API Azure, au format YYYY-MM-DD, consultez la [dernière version](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot AI",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Autenticazione Bedrock non riuscita, controlla AccessKeyId/SecretAccessKey e riprova",
43
43
  "InvalidGoogleAPIKey": "Chiave API Google non corretta o vuota, controlla la chiave API Google e riprova",
44
44
  "InvalidMoonshotAPIKey": "La chiave API di Moonshot AI non è corretta o è vuota, si prega di controllare la chiave API di Moonshot e riprovare",
45
+ "InvalidOllamaArgs": "Configurazione Ollama non valida, controllare la configurazione di Ollama e riprovare",
45
46
  "InvalidZhipuAPIKey": "Chiave API Zhipu non corretta o vuota, controlla la chiave API Zhipu e riprova",
46
47
  "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.",
47
48
  "MoonshotBizError": "Si è verificato un errore nel servizio Moonshot, si prega di controllare le informazioni seguenti o riprovare",
48
49
  "NoOpenAIAPIKey": "La chiave API OpenAI è vuota. Aggiungi una chiave API personalizzata OpenAI",
50
+ "OllamaBizError": "Errore di servizio Ollama, controllare le informazioni seguenti o riprovare",
49
51
  "OpenAIBizError": "Errore nella richiesta del servizio OpenAI. Segui le informazioni seguenti per individuare e riprovare",
50
52
  "PluginApiNotFound": "Spiacenti, l'API specificata non esiste nel manifesto del plugin. Verifica che il metodo di richiesta corrisponda all'API del manifesto del plugin",
51
53
  "PluginApiParamsError": "Spiacenti, la convalida dei parametri di input della richiesta del plugin non è riuscita. Verifica che i parametri di input corrispondano alle informazioni dell'API",
@@ -84,6 +84,22 @@
84
84
  "title": "Chiave API"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Verifica se l'indirizzo del proxy è stato compilato correttamente"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Aggiungi un modello personalizzato, separando i modelli multipli con una virgola (,)",
93
+ "placeholder": "vicuna,llama,codellama,llama2:13b-text",
94
+ "title": "Nome del modello personalizzato"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Inserisci l'indirizzo del proxy dell'interfaccia Ollama, lascialo vuoto se non è stato specificato localmente",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Indirizzo del proxy dell'interfaccia"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Versione dell'API di Azure, nel formato YYYY-MM-DD, consulta [ultima versione](https://learn.microsoft.com/it-it/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWSベッドロック",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot AI",
106
+ "ollama": "オラマ",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "智譜AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Bedrockの認証に失敗しました。AccessKeyId/SecretAccessKeyを確認してから再試行してください。",
43
43
  "InvalidGoogleAPIKey": "Google APIキーが正しくないか空です。Google APIキーを確認してから再試行してください。",
44
44
  "InvalidMoonshotAPIKey": "Moonshot AI APIキーが正しくないか空です。Moonshot APIキーを確認して再試行してください。",
45
+ "InvalidOllamaArgs": "Ollamaの設定が正しくありません。Ollamaの設定を確認してからもう一度お試しください",
45
46
  "InvalidZhipuAPIKey": "Zhipu APIキーが正しくないか空です。Zhipu APIキーを確認してから再試行してください。",
46
47
  "LocationNotSupportError": "申し訳ありませんが、お住まいの地域ではこのモデルサービスをサポートしていません。地域制限またはサービスが利用できない可能性があります。現在の位置がこのサービスをサポートしているかどうかを確認するか、他の位置情報を使用してみてください。",
47
48
  "MoonshotBizError": "月の裏側サービスのリクエストでエラーが発生しました。以下の情報を確認して再試行してください。",
48
49
  "NoOpenAIAPIKey": "OpenAI APIキーが空です。カスタムOpenAI APIキーを追加してください。",
50
+ "OllamaBizError": "Ollamaサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再度お試しください",
49
51
  "OpenAIBizError": "OpenAIサービスのリクエストエラーが発生しました。以下の情報に基づいて問題を解決したり、再試行したりしてください",
50
52
  "PluginApiNotFound": "申し訳ありませんが、プラグインのマニフェストに指定されたAPIが見つかりませんでした。リクエストメソッドとプラグインのマニフェストのAPIが一致しているかどうかを確認してください",
51
53
  "PluginApiParamsError": "申し訳ありませんが、プラグインのリクエストパラメータの検証に失敗しました。パラメータとAPIの説明が一致しているかどうか確認してください",
@@ -84,6 +84,22 @@
84
84
  "title": "API キー"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "プロキシアドレスが正しく入力されているかをテストします"
90
+ },
91
+ "customModelName": {
92
+ "desc": "カスタムモデルを追加します。複数のモデルはコンマ(,)で区切ってください",
93
+ "placeholder": "ビクーニャ、リャマ、コードリャマ、リャマ2:13b-テキスト",
94
+ "title": "カスタムモデル名"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Ollama インターフェースプロキシアドレスを入力します。ローカルで追加指定がない場合は空白のままにしてください",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "インターフェースプロキシアドレス"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Azure の API バージョンは YYYY-MM-DD 形式に従い、[最新バージョン](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)を参照してください",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "문샷 AI",
106
+ "ollama": "올라마",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "지푸 AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Bedrock 인증에 실패했습니다. AccessKeyId/SecretAccessKey를 확인한 후 다시 시도하십시오.",
43
43
  "InvalidGoogleAPIKey": "잘못된 또는 비어 있는 Google API Key입니다. Google API Key를 확인한 후 다시 시도하십시오.",
44
44
  "InvalidMoonshotAPIKey": "Moonshot AI API 키가 잘못되었거나 비어 있습니다. Moonshot API 키를 확인한 후 다시 시도해주세요.",
45
+ "InvalidOllamaArgs": "Ollama 구성이 잘못되었습니다. Ollama 구성을 확인한 후 다시 시도하십시오.",
45
46
  "InvalidZhipuAPIKey": "잘못된 또는 비어 있는 Zhipu API Key입니다. Zhipu API Key를 확인한 후 다시 시도하십시오.",
46
47
  "LocationNotSupportError": "죄송합니다. 귀하의 현재 위치는 해당 모델 서비스를 지원하지 않습니다. 지역 제한 또는 서비스 미개통으로 인한 것일 수 있습니다. 현재 위치가 해당 서비스를 지원하는지 확인하거나 다른 위치 정보를 사용해 보십시오.",
47
48
  "MoonshotBizError": "요청한 문샷 비즈니스에 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도해주세요.",
48
49
  "NoOpenAIAPIKey": "OpenAI API 키가 비어 있습니다. 사용자 정의 OpenAI API 키를 추가해주세요.",
50
+ "OllamaBizError": "Ollama 서비스 요청 중 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도하십시오.",
49
51
  "OpenAIBizError": "OpenAI 서비스 요청 중 오류가 발생했습니다. 아래 정보를 확인하고 문제를 해결하거나 다시 시도해주세요.",
50
52
  "PluginApiNotFound": "죄송합니다. 플러그인 설명서에 해당 API가 없습니다. 요청 메서드와 플러그인 설명서 API가 일치하는지 확인해주세요.",
51
53
  "PluginApiParamsError": "죄송합니다. 플러그인 요청의 입력 매개변수 유효성 검사에 실패했습니다. 입력 매개변수와 API 설명 정보가 일치하는지 확인해주세요.",
@@ -84,6 +84,22 @@
84
84
  "title": "API 키"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "프록시 주소가 올바르게 입력되었는지 확인합니다."
90
+ },
91
+ "customModelName": {
92
+ "desc": "사용자 정의 모델을 추가하고, 여러 모델은 쉼표(,)로 구분합니다.",
93
+ "placeholder": "비쿠나, 람라, 코데람라, 람라2:13b-텍스트",
94
+ "title": "사용자 정의 모델 이름"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Ollama 인터페이스 프록시 주소를 입력하고, 로컬에서 별도로 지정하지 않은 경우 비워 둡니다.",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "인터페이스 프록시 주소"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Azure의 API 버전으로 YYYY-MM-DD 형식을 따르며 [최신 버전](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)을 확인하세요",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot AI",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "智谱AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Bedrock authentication failed, please check AccessKeyId/SecretAccessKey and retry",
43
43
  "InvalidGoogleAPIKey": "Incorrect or empty Google API Key, please check the Google API Key and retry",
44
44
  "InvalidMoonshotAPIKey": "Moonshot AI API密钥不正确或为空,请检查Moonshot API密钥后重试",
45
+ "InvalidOllamaArgs": "Ollama-configuratie is onjuist, controleer de Ollama-configuratie en probeer het opnieuw",
45
46
  "InvalidZhipuAPIKey": "Incorrect or empty Zhipu API Key, please check the Zhipu API Key and retry",
46
47
  "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.",
47
48
  "MoonshotBizError": "请求月球AI服务出错,请根据以下信息排查或重试",
48
49
  "NoOpenAIAPIKey": "OpenAI API-sleutel ontbreekt. Voeg een aangepaste OpenAI API-sleutel toe",
50
+ "OllamaBizError": "Fout bij het aanroepen van de Ollama-service, controleer de onderstaande informatie en probeer opnieuw",
49
51
  "OpenAIBizError": "Fout bij het aanvragen van OpenAI-service. Controleer de onderstaande informatie voor probleemoplossing of probeer opnieuw",
50
52
  "PluginApiNotFound": "Sorry, de API van de plug-inbeschrijvingslijst bestaat niet. Controleer of uw verzoeksmethode overeenkomt met de plug-inbeschrijvingslijst API",
51
53
  "PluginApiParamsError": "Sorry, de validatie van de invoerparameters van de plug-in is mislukt. Controleer of de invoerparameters overeenkomen met de API-beschrijving",
@@ -84,6 +84,22 @@
84
84
  "title": "API 密钥"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Check of de proxy-adres correct is ingevuld"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Voeg aangepast model toe, gebruik komma's (,) om meerdere modellen te scheiden",
93
+ "placeholder": "vicuna,llama,codellama,llama2:13b-text",
94
+ "title": "Aangepaste modelnaam"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Vul het Ollama-interface proxy-adres in, laat leeg als lokaal niet apart is gespecificeerd",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Interface proxy-adres"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "API-versie van Azure, in het formaat YYYY-MM-DD, zie [laatste versie](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot AI",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "智谱AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Uwierzytelnienie Bedrock nie powiodło się, prosimy sprawdzić AccessKeyId/SecretAccessKey i spróbować ponownie.",
43
43
  "InvalidGoogleAPIKey": "Nieprawidłowy lub pusty klucz API Google, prosimy sprawdzić klucz API Google i spróbować ponownie.",
44
44
  "InvalidMoonshotAPIKey": "Moonshot AI API密钥不正确或为空,请检查Moonshot API密钥后重试",
45
+ "InvalidOllamaArgs": "Nieprawidłowa konfiguracja Ollama, sprawdź konfigurację Ollama i spróbuj ponownie",
45
46
  "InvalidZhipuAPIKey": "Nieprawidłowy lub pusty klucz API Zhipu, prosimy sprawdzić klucz API Zhipu i spróbować ponownie.",
46
47
  "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.",
47
48
  "MoonshotBizError": "请求月球AI服务出错,请根据以下信息排查或重试",
48
49
  "NoOpenAIAPIKey": "Klucz API OpenAI jest pusty. Proszę dodać niestandardowy klucz API OpenAI",
50
+ "OllamaBizError": "Błąd usługi Ollama, sprawdź poniższe informacje lub spróbuj ponownie",
49
51
  "OpenAIBizError": "Błąd żądania usługi OpenAI. Proszę sprawdź poniższe informacje i spróbuj ponownie",
50
52
  "PluginApiNotFound": "Przepraszamy, w manifestach wtyczki nie istnieje to API. Proszę sprawdź, czy metoda żądania jest zgodna z API w manifestach wtyczki",
51
53
  "PluginApiParamsError": "Przepraszamy, walidacja parametrów wejściowych żądanej wtyczki nie powiodła się. Proszę sprawdź, czy parametry wejściowe są zgodne z informacjami opisującymi API",
@@ -84,6 +84,22 @@
84
84
  "title": "Klucz API"
85
85
  }
86
86
  },
87
+ "Ollama": {
88
+ "checker": {
89
+ "desc": "Sprawdź, czy adres proxy jest poprawnie wypełniony"
90
+ },
91
+ "customModelName": {
92
+ "desc": "Dodaj niestandardowy model, używając przecinka (,) do oddzielenia wielu modeli",
93
+ "placeholder": "wikuna,llama,codellama,llama2:13b-text",
94
+ "title": "Nazwa niestandardowego modelu"
95
+ },
96
+ "endpoint": {
97
+ "desc": "Wprowadź adres proxy interfejsu Ollama, pozostaw puste, jeśli nie jest lokalnie określony",
98
+ "placeholder": "http://127.0.0.1:11434/v1",
99
+ "title": "Adres proxy interfejsu"
100
+ },
101
+ "title": "Ollama"
102
+ },
87
103
  "OpenAI": {
88
104
  "azureApiVersion": {
89
105
  "desc": "Wersja API dla usługi Azure, zgodna z formatem RRRR-MM-DD. Zobacz [najnowszą wersję](https://learn.microsoft.com/pl-pl/azure/ai-services/openai/reference#chat-completions)",
@@ -103,6 +103,7 @@
103
103
  "bedrock": "AWS Bedrock",
104
104
  "google": "Google",
105
105
  "moonshot": "Moonshot IA",
106
+ "ollama": "Ollama",
106
107
  "oneapi": "One API",
107
108
  "openai": "OpenAI",
108
109
  "zhipu": "Zhipu AI"
@@ -42,10 +42,12 @@
42
42
  "InvalidBedrockCredentials": "Credenciais Bedrock inválidas, por favor, verifique AccessKeyId/SecretAccessKey e tente novamente",
43
43
  "InvalidGoogleAPIKey": "Chave de API Google incorreta ou vazia, por favor, verifique a chave de API Google e tente novamente",
44
44
  "InvalidMoonshotAPIKey": "A chave da API Moonshot AI está incorreta ou vazia. Por favor, verifique a chave da API Moonshot e tente novamente.",
45
+ "InvalidOllamaArgs": "Configuração Ollama inválida, verifique a configuração do Ollama e tente novamente",
45
46
  "InvalidZhipuAPIKey": "Chave de API Zhipu incorreta ou vazia, por favor, verifique a chave de API Zhipu e tente novamente",
46
47
  "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.",
47
48
  "MoonshotBizError": "O serviço Moonshot na face oculta da lua encontrou um erro. Por favor, verifique as informações abaixo ou tente novamente.",
48
49
  "NoOpenAIAPIKey": "A chave de API do OpenAI está em branco. Adicione uma chave de API personalizada do OpenAI",
50
+ "OllamaBizError": "Erro de negócio ao solicitar o serviço Ollama, verifique as informações a seguir ou tente novamente",
49
51
  "OpenAIBizError": "Erro ao solicitar o serviço OpenAI. Verifique ou tente novamente com base nas informações abaixo",
50
52
  "PluginApiNotFound": "Desculpe, o API especificado não existe no manifesto do plugin. Verifique se o método de solicitação corresponde ao API do manifesto do plugin",
51
53
  "PluginApiParamsError": "Desculpe, a validação dos parâmetros de entrada da solicitação do plugin falhou. Verifique se os parâmetros de entrada correspondem às informações de descrição do API",