@lobehub/chat 0.158.2 → 0.159.1

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 (91) hide show
  1. package/.env.example +4 -0
  2. package/CHANGELOG.md +58 -0
  3. package/Dockerfile +3 -0
  4. package/README.md +1 -0
  5. package/README.zh-CN.md +1 -0
  6. package/docs/self-hosting/advanced/authentication.mdx +9 -0
  7. package/docs/self-hosting/advanced/authentication.zh-CN.mdx +9 -0
  8. package/docs/self-hosting/environment-variables/model-provider.mdx +16 -7
  9. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +16 -7
  10. package/docs/usage/features/multi-ai-providers.mdx +1 -0
  11. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +1 -0
  12. package/locales/ar/error.json +2 -0
  13. package/locales/ar/modelProvider.json +12 -0
  14. package/locales/bg-BG/error.json +2 -0
  15. package/locales/bg-BG/modelProvider.json +12 -0
  16. package/locales/de-DE/error.json +2 -0
  17. package/locales/de-DE/modelProvider.json +12 -0
  18. package/locales/en-US/error.json +2 -0
  19. package/locales/en-US/modelProvider.json +12 -0
  20. package/locales/es-ES/error.json +2 -0
  21. package/locales/es-ES/modelProvider.json +12 -0
  22. package/locales/fr-FR/error.json +2 -0
  23. package/locales/fr-FR/modelProvider.json +12 -0
  24. package/locales/it-IT/error.json +2 -0
  25. package/locales/it-IT/modelProvider.json +12 -0
  26. package/locales/ja-JP/error.json +2 -0
  27. package/locales/ja-JP/modelProvider.json +12 -0
  28. package/locales/ko-KR/error.json +2 -0
  29. package/locales/ko-KR/modelProvider.json +12 -0
  30. package/locales/nl-NL/error.json +2 -0
  31. package/locales/nl-NL/modelProvider.json +12 -0
  32. package/locales/pl-PL/error.json +2 -0
  33. package/locales/pl-PL/modelProvider.json +12 -0
  34. package/locales/pt-BR/error.json +2 -0
  35. package/locales/pt-BR/modelProvider.json +12 -0
  36. package/locales/ru-RU/error.json +2 -0
  37. package/locales/ru-RU/modelProvider.json +12 -0
  38. package/locales/tr-TR/error.json +2 -0
  39. package/locales/tr-TR/modelProvider.json +12 -0
  40. package/locales/vi-VN/error.json +2 -0
  41. package/locales/vi-VN/modelProvider.json +12 -0
  42. package/locales/zh-CN/error.json +2 -0
  43. package/locales/zh-CN/modelProvider.json +12 -0
  44. package/locales/zh-TW/error.json +2 -0
  45. package/locales/zh-TW/modelProvider.json +12 -0
  46. package/package.json +2 -2
  47. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +13 -15
  48. package/src/app/(main)/settings/common/features/Common.tsx +11 -8
  49. package/src/app/(main)/settings/common/index.tsx +1 -9
  50. package/src/app/(main)/settings/llm/DeepSeek/index.tsx +21 -0
  51. package/src/app/(main)/settings/llm/index.tsx +2 -0
  52. package/src/app/api/chat/agentRuntime.test.ts +17 -0
  53. package/src/app/api/chat/agentRuntime.ts +5 -0
  54. package/src/app/api/errorResponse.test.ts +6 -0
  55. package/src/app/api/errorResponse.ts +3 -0
  56. package/src/components/ModelIcon/index.tsx +2 -0
  57. package/src/components/ModelProviderIcon/index.tsx +5 -0
  58. package/src/components/ModelTag/ModelIcon.tsx +2 -0
  59. package/src/config/modelProviders/deepseek.ts +23 -0
  60. package/src/config/modelProviders/index.ts +4 -0
  61. package/src/config/server/provider.ts +10 -0
  62. package/src/const/settings/index.ts +6 -0
  63. package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +5 -0
  64. package/src/features/Conversation/Error/APIKeyForm/index.tsx +4 -0
  65. package/src/features/Conversation/Error/OAuthForm.tsx +6 -4
  66. package/src/features/Conversation/Error/index.tsx +1 -0
  67. package/src/features/User/__tests__/UserAvatar.test.tsx +8 -3
  68. package/src/features/User/__tests__/useMenu.test.tsx +3 -3
  69. package/src/libs/agent-runtime/AgentRuntime.ts +7 -0
  70. package/src/libs/agent-runtime/deepseek/index.test.ts +254 -0
  71. package/src/libs/agent-runtime/deepseek/index.ts +15 -0
  72. package/src/libs/agent-runtime/error.ts +3 -0
  73. package/src/libs/agent-runtime/index.ts +1 -0
  74. package/src/libs/agent-runtime/types/type.ts +1 -0
  75. package/src/libs/next-auth/index.ts +0 -7
  76. package/src/locales/default/error.ts +3 -0
  77. package/src/locales/default/modelProvider.ts +12 -0
  78. package/src/migrations/FromV3ToV4/types/v3.ts +0 -8
  79. package/src/server/globalConfig/index.ts +4 -0
  80. package/src/services/__tests__/chat.test.ts +16 -0
  81. package/src/services/chat.ts +3 -0
  82. package/src/store/serverConfig/selectors.ts +1 -0
  83. package/src/store/user/slices/auth/action.test.ts +61 -0
  84. package/src/store/user/slices/auth/action.ts +17 -15
  85. package/src/store/user/slices/auth/selectors.test.ts +18 -2
  86. package/src/store/user/slices/auth/selectors.ts +4 -4
  87. package/src/store/user/slices/settings/actions/llm.ts +2 -0
  88. package/src/types/next-auth.d.ts +23 -0
  89. package/src/types/serverConfig.ts +1 -0
  90. package/src/types/settings/modelProvider.ts +1 -0
  91. package/src/hooks/useOAuthSession.ts +0 -24
package/.env.example CHANGED
@@ -104,6 +104,10 @@ OPENAI_API_KEY=sk-xxxxxxxxx
104
104
 
105
105
  # MINIMAX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
106
106
 
107
+ ### DeepSeek AI ####
108
+
109
+ # DEEPSEEK_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
110
+
107
111
  ########################################
108
112
  ############ Market Service ############
109
113
  ########################################
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.159.1](https://github.com/lobehub/lobe-chat/compare/v0.159.0...v0.159.1)
6
+
7
+ <sup>Released on **2024-05-14**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Move next-auth hooks to user store actions.
12
+
13
+ #### 🐛 Bug Fixes
14
+
15
+ - **misc**: Pin `antd@5.17.0` to fix build error.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### Code refactoring
23
+
24
+ - **misc**: Move next-auth hooks to user store actions, closes [#2364](https://github.com/lobehub/lobe-chat/issues/2364) ([6dbcd70](https://github.com/lobehub/lobe-chat/commit/6dbcd70))
25
+
26
+ #### What's fixed
27
+
28
+ - **misc**: Pin `antd@5.17.0` to fix build error, closes [#2483](https://github.com/lobehub/lobe-chat/issues/2483) ([aa03833](https://github.com/lobehub/lobe-chat/commit/aa03833))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
38
+ ## [Version 0.159.0](https://github.com/lobehub/lobe-chat/compare/v0.158.2...v0.159.0)
39
+
40
+ <sup>Released on **2024-05-14**</sup>
41
+
42
+ #### ✨ Features
43
+
44
+ - **misc**: Support DeepSeek as new model provider.
45
+
46
+ <br/>
47
+
48
+ <details>
49
+ <summary><kbd>Improvements and Fixes</kbd></summary>
50
+
51
+ #### What's improved
52
+
53
+ - **misc**: Support DeepSeek as new model provider, closes [#2446](https://github.com/lobehub/lobe-chat/issues/2446) ([18028f3](https://github.com/lobehub/lobe-chat/commit/18028f3))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ### [Version 0.158.2](https://github.com/lobehub/lobe-chat/compare/v0.158.1...v0.158.2)
6
64
 
7
65
  <sup>Released on **2024-05-13**</sup>
package/Dockerfile CHANGED
@@ -129,4 +129,7 @@ ENV TOGETHERAI_API_KEY ""
129
129
  # Minimax
130
130
  ENV MINIMAX_API_KEY ""
131
131
 
132
+ # DeepSeek
133
+ ENV DEEPSEEK_API_KEY ""
134
+
132
135
  CMD ["node", "server.js"]
package/README.md CHANGED
@@ -130,6 +130,7 @@ We have implemented support for the following model service providers:
130
130
  - **ChatGLM**: Added the **ChatGLM** series models from Zhipuai (GLM-4/GLM-4-vision/GLM-3-turbo), providing users with another efficient conversation model choice. [Learn more](https://www.zhipuai.cn/)
131
131
  - **Moonshot AI (Dark Side of the Moon)**: Integrated with the Moonshot series models, an innovative AI startup from China, aiming to provide deeper conversation understanding. [Learn more](https://www.moonshot.cn/)
132
132
  - **Minimax**: Integrated the Minimax models, including the MoE model **abab6**, offers a broader range of choices. [Learn more](https://www.minimaxi.com/)
133
+ - **DeepSeek**: Integrated with the DeepSeek series models, an innovative AI startup from China, The product has been designed to provide a model that balances performance with price. [Learn more](https://www.deepseek.com/)
133
134
 
134
135
  At the same time, we are also planning to support more model service providers, such as Replicate and Perplexity, to further enrich our service provider library. If you would like LobeChat to support your favorite service provider, feel free to join our [community discussion](https://github.com/lobehub/lobe-chat/discussions/1284).
135
136
 
package/README.zh-CN.md CHANGED
@@ -129,6 +129,7 @@
129
129
  - **Groq**:接入了 Groq 的 AI 模型,高效处理消息序列,生成回应,胜任多轮对话及单次交互任务。[了解更多](https://groq.com/)
130
130
  - **OpenRouter**:其支持包括 **Claude 3**,**Gemma**,**Mistral**,**Llama2**和**Cohere**等模型路由,支持智能路由优化,提升使用效率,开放且灵活。[了解更多](https://openrouter.ai/)
131
131
  - **Minimax**: 接入了 Minimax 的 AI 模型,包括 MoE 模型 **abab6**,提供了更多的选择空间。[了解更多](https://www.minimaxi.com/)
132
+ - **DeepSeek**: 接入了 DeepSeek 的 AI 模型,包括最新的 **DeepSeek-V2**,提供兼顾性能与价格的模型。[了解更多](https://www.deepseek.com/)
132
133
 
133
134
  同时,我们也在计划支持更多的模型服务商,如 Replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。
134
135
 
@@ -25,6 +25,15 @@ By setting the environment variables NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK
25
25
 
26
26
  ## Next Auth
27
27
 
28
+ Before using NextAuth, please set the following variables in LobeChat's environment variables:
29
+
30
+ | Environment Variable | Type | Description |
31
+ | --- | --- | --- |
32
+ | `NEXT_AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can use the following command: `openssl rand -base64 32`, or visit `https://generate-secret.vercel.app/32` to generate the key. |
33
+ | `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
34
+ | `NEXTAUTH_URL` | Optional | This URL specifies the callback address for Auth.js when performing OAuth verification. Set this only if the default generated redirect address is incorrect. `https://example.com/api/auth` |
35
+ | `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,azure-ad,authentik`. |
36
+
28
37
  Currently supported identity verification services include:
29
38
 
30
39
  <Cards>
@@ -22,6 +22,15 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
22
22
 
23
23
  ## Next Auth
24
24
 
25
+ 在使用 NextAuth 之前,请先在 LobeChat 的环境变量中设置以下变量:
26
+
27
+ | 环境变量 | 类型 | 描述 |
28
+ | --- | --- | --- |
29
+ | `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令: `openssl rand -base64 32`,或者访问 `https://generate-secret.vercel.app/32` 生成秘钥。 |
30
+ | `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
31
+ | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
32
+ | `NEXT_AUTH_SSO_PROVIDERS` | 可选 | 该环境变量用于同时启用多个身份验证源,以逗号 `,` 分割,例如 `auth0,azure-ad,authentik`。 |
33
+
25
34
  目前支持的身份验证服务有:
26
35
 
27
36
  <Cards>
@@ -146,6 +146,15 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
146
146
  - Default: `us-east-1`
147
147
  - Example: `us-east-1`
148
148
 
149
+ ## DeepSeek AI
150
+
151
+ ### `DEEPSEEK_API_KEY`
152
+
153
+ - Type: Required
154
+ - Description: This is the API key you applied for in the DeepSeek AI service
155
+ - Default: -
156
+ - Example: `sk-xxxxxx...xxxxxx`
157
+
149
158
  ## OpenRouter AI
150
159
 
151
160
  ### `OPENROUTER_API_KEY`
@@ -153,7 +162,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
153
162
  - Type: Required
154
163
  - Description: This is the API key you applied for in the OpenRouter AI service
155
164
  - Default: -
156
- - Example: `sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=`
165
+ - Example: `sk-or-v1-xxxxxx...xxxxxx=`
157
166
 
158
167
  ### `OPENROUTER_MODEL_LIST`
159
168
 
@@ -169,7 +178,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
169
178
  - Type: Required
170
179
  - Description: This is the API key you applied for in the TogetherAI service
171
180
  - Default: -
172
- - Example: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
181
+ - Example: `xxxxxx...xxxxxx`
173
182
 
174
183
  ### `TOGETHERAI_MODEL_LIST`
175
184
 
@@ -210,7 +219,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
210
219
  - Type: Required
211
220
  - Description: This is the API key you applied from Perplexity AI
212
221
  - Default: -
213
- - Example: `pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
222
+ - Example: `pplx-xxxxxx...xxxxxx`
214
223
 
215
224
  ## Minimax AI
216
225
 
@@ -219,7 +228,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
219
228
  - Type: Required
220
229
  - Description: This is the API key you applied for in the Minimax AI service
221
230
  - Default: -
222
- - Example: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
231
+ - Example: `xxxxxx...xxxxxx`
223
232
 
224
233
  ## Mistral AI
225
234
 
@@ -228,7 +237,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
228
237
  - Type: Required
229
238
  - Description: This is the API key you applied for in the Mistral AI service
230
239
  - Default: -
231
- - Example: `xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=`
240
+ - Example: `xxxxxx...xxxxxx=`
232
241
 
233
242
  ## Groq AI
234
243
 
@@ -237,7 +246,7 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
237
246
  - Type: Required
238
247
  - Description: This is the API key you applied from Groq AI
239
248
  - Default: -
240
- - Example: `gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
249
+ - Example: `gsk_xxxxxx...xxxxxx`
241
250
 
242
251
  ## ZHIPU AI
243
252
 
@@ -255,6 +264,6 @@ If you need to use Azure OpenAI to provide model services, you can refer to the
255
264
  - Type: Required
256
265
  - Description: This is the API key you applied for in the 01.AI service
257
266
  - Default: -
258
- - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
267
+ - 示例:`xxxxxx...xxxxxx`
259
268
 
260
269
  [model-list]: /docs/self-hosting/advanced/model-list
@@ -144,6 +144,15 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
144
144
  - 默认值:`us-east-1`
145
145
  - 示例:`us-east-1`
146
146
 
147
+ ## DeepSeek AI
148
+
149
+ ### `DEEPSEEK_API_KEY`
150
+
151
+ - 类型:必选
152
+ - 描述:这是你在 DeepSeek AI 服务中申请的 API 密钥
153
+ - 默认值:-
154
+ - 示例:`sk-xxxxxx...xxxxxx`
155
+
147
156
  ## OpenRouter AI
148
157
 
149
158
  ### `OPENROUTER_API_KEY`
@@ -151,7 +160,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
151
160
  - 类型:必选
152
161
  - 描述:这是你在 OpenRouter AI 服务中申请的 API 密钥
153
162
  - 默认值:-
154
- - 示例:`sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=`
163
+ - 示例:`sk-or-v1-xxxxxx...xxxxxx=`
155
164
 
156
165
  ### `OPENROUTER_MODEL_LIST`
157
166
 
@@ -167,7 +176,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
167
176
  - 类型:必选
168
177
  - 描述:这是你在 TogetherAI 服务中申请的 API 密钥
169
178
  - 默认值:-
170
- - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
179
+ - 示例:`xxxxxx...xxxxxx`
171
180
 
172
181
  ### `TOGETHERAI_MODEL_LIST`
173
182
 
@@ -208,7 +217,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
208
217
  - 类型:必选
209
218
  - 描述:这是你在 Perplexity AI 服务中申请的 API 密钥
210
219
  - 默认值:-
211
- - 示例:`pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
220
+ - 示例:`pplx-xxxxxx...xxxxxx`
212
221
 
213
222
  ## Minimax AI
214
223
 
@@ -217,7 +226,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
217
226
  - 类型:必选
218
227
  - 描述:这是你在 Minimax AI 服务中申请的 API 密钥
219
228
  - 默认值:-
220
- - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
229
+ - 示例:`xxxxxx...xxxxxx`
221
230
 
222
231
  ## Mistral AI
223
232
 
@@ -226,7 +235,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
226
235
  - 类型:必选
227
236
  - 描述:这是你在 Mistral AI 服务中申请的 API 密钥
228
237
  - 默认值:-
229
- - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=`
238
+ - 示例:`xxxxxx...xxxxxx=`
230
239
 
231
240
  ## Groq AI
232
241
 
@@ -235,7 +244,7 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
235
244
  - 类型:必选
236
245
  - 描述:这是你在 Groq AI 服务中申请的 API 密钥
237
246
  - 默认值:-
238
- - 示例:`gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
247
+ - 示例:`gsk_xxxxxx...xxxxxx`
239
248
 
240
249
  ## 智谱 AI
241
250
 
@@ -253,6 +262,6 @@ LobeChat 在部署时提供了丰富的模型服务商相关的环境变量,
253
262
  - 类型:必选
254
263
  - 描述:这是你在零一万物服务中申请的 API 密钥
255
264
  - 默认值:-
256
- - 示例:`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
265
+ - 示例:`xxxxxx...xxxxxx`
257
266
 
258
267
  [model-list]: /docs/self-hosting/advanced/model-list
@@ -45,6 +45,7 @@ We have implemented support for the following model service providers:
45
45
  - **01.AI (Yi Model)**: Integrated the 01.AI models, with series of APIs featuring fast inference speed, which not only shortened the processing time, but also maintained excellent model performance. [Learn more](https://01.ai/)
46
46
  - **Together.ai**: Over 100 leading open-source Chat, Language, Image, Code, and Embedding models are available through the Together Inference API. For these models you pay just for what you use. [Learn more](https://www.together.ai/)
47
47
  - **Minimax**: Integrated the Minimax models, including the MoE model **abab6**, offers a broader range of choices. [Learn more](https://www.minimaxi.com/)
48
+ - **DeepSeek**: Integrated with the DeepSeek series models, an innovative AI startup from China, The product has been designed to provide a model that balances performance with price. [Learn more](https://www.deepseek.com/)
48
49
 
49
50
  At the same time, we are also planning to support more model service providers, such as Replicate and Perplexity, to further enrich our service provider library. If you would like LobeChat to support your favorite service provider, feel free to join our [community discussion](https://github.com/lobehub/lobe-chat/discussions/1284).
50
51
 
@@ -45,6 +45,7 @@ tags:
45
45
  - **Groq**:接入了 Groq 的 AI 模型,高效处理消息序列,生成回应,胜任多轮对话及单次交互任务。[了解更多](https://groq.com/)
46
46
  - **OpenRouter**:其支持包括 **Claude 3**,**Gemma**,**Mistral**,**Llama2**和**Cohere**等模型路由,支持智能路由优化,提升使用效率,开放且灵活。[了解更多](https://openrouter.ai/)
47
47
  - **Minimax**: 接入了 Minimax 的 AI 模型,包括 MoE 模型 **abab6**,提供了更多的选择空间。[了解更多](https://www.minimaxi.com/)
48
+ - **DeepSeek**: 接入了 DeepSeek 的 AI 模型,包括最新的 **DeepSeek-V2**,提供兼顾性能与价格的模型。[了解更多](https://www.deepseek.com/)
48
49
 
49
50
  同时,我们也在计划支持更多的模型服务商,如 Replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。
50
51
 
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "خطأ في طلب خدمة Anthropic AI، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
56
56
  "AzureBizError": "حدث خطأ في طلب خدمة Azure AI، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
57
57
  "BedrockBizError": "حدث خطأ في طلب خدمة Bedrock، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
58
+ "DeepSeekBizError": "خطأ في طلب خدمة DeepSeek، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
58
59
  "GoogleBizError": "حدث خطأ في طلب خدمة Google، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
59
60
  "GroqBizError": "حدث خطأ في خدمة Groq ، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
60
61
  "InvalidAccessCode": "كلمة المرور غير صحيحة أو فارغة، يرجى إدخال كلمة مرور الوصول الصحيحة أو إضافة مفتاح API مخصص",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "مفتاح Azure API غير صحيح أو فارغ، يرجى التحقق من مفتاح Azure API وإعادة المحاولة",
63
64
  "InvalidBedrockCredentials": "فشلت مصادقة Bedrock، يرجى التحقق من AccessKeyId/SecretAccessKey وإعادة المحاولة",
64
65
  "InvalidClerkUser": "عذرًا، لم تقم بتسجيل الدخول بعد، يرجى تسجيل الدخول أو التسجيل للمتابعة",
66
+ "InvalidDeepSeekAPIKey": "مفتاح DeepSeek API غير صحيح أو فارغ، يرجى التحقق من مفتاح DeepSeek API وإعادة المحاولة",
65
67
  "InvalidGoogleAPIKey": "مفتاح Google API غير صحيح أو فارغ، يرجى التحقق من مفتاح Google API وإعادة المحاولة",
66
68
  "InvalidGroqAPIKey": "مفتاح Groq API غير صحيح أو فارغ، يرجى التحقق من مفتاح Groq API وإعادة المحاولة",
67
69
  "InvalidMinimaxAPIKey": "مفتاح Minimax API غير صحيح أو فارغ، يرجى التحقق من مفتاح Minimax API وإعادة المحاولة",
@@ -61,6 +61,18 @@
61
61
  "title": "استخدام معلومات المصادقة الخاصة بـ Bedrock المخصصة"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "أدخل مفتاح API الخاص بـ DeepSeek",
68
+ "placeholder": "مفتاح API DeepSeek",
69
+ "title": "مفتاح API"
70
+ },
71
+ "unlock": {
72
+ "description": "قم بإدخال مفتاح API DeepSeek الخاص بك لبدء الجلسة. لن يتم تسجيل مفتاح الـ API الخاص بك",
73
+ "title": "استخدام مفتاح API خاص بـ DeepSeek"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Грешка при заявка към услугата Anthropic. Моля, отстранете неизправностите или опитайте отново въз основа на следната информация.",
56
56
  "AzureBizError": "Грешка при заявка към услугата Azure AI. Моля, отстранете неизправностите или опитайте отново въз основа на следната информация.",
57
57
  "BedrockBizError": "Грешка при заявка към услугата Bedrock. Моля, отстранете неизправностите или опитайте отново въз основа на следната информация.",
58
+ "DeepSeekBizError": "Грешка при заявка към услугата DeepSeek. Моля, проверете информацията по-долу и опитайте отново.",
58
59
  "GoogleBizError": "Грешка при заявка към услугата Google. Моля, отстранете неизправностите или опитайте отново въз основа на следната информация.",
59
60
  "GroqBizError": "Възникна грешка при заявка към услугата Groq. Моля, отстранете неизправностите въз основа на следната информация или опитайте отново.",
60
61
  "InvalidAccessCode": "Невалиден или празен код за достъп. Моля, въведете правилния код за достъп или добавете персонализиран API ключ.",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "API ключът на Azure е неправилен или празен. Моля, проверете API ключа на Azure и опитайте отново.",
63
64
  "InvalidBedrockCredentials": "Удостоверяването на Bedrock е неуспешно. Моля, проверете AccessKeyId/SecretAccessKey и опитайте отново.",
64
65
  "InvalidClerkUser": "很抱歉,你当前尚未登录,请先登录或注册账号后继续操作",
66
+ "InvalidDeepSeekAPIKey": "Невалиден ключ за достъп до DeepSeek API или е празен. Моля, проверете ключа за достъп до DeepSeek API и опитайте отново.",
65
67
  "InvalidGoogleAPIKey": "API ключът на Google е неправилен или празен. Моля, проверете API ключа на Google и опитайте отново.",
66
68
  "InvalidGroqAPIKey": "API ключът на Groq е неправилен или празен. Моля, проверете API ключа на Groq и опитайте отново.",
67
69
  "InvalidMinimaxAPIKey": "Невалиден или липсващ ключ за Minimax API, моля проверете ключа за Minimax API и опитайте отново",
@@ -61,6 +61,18 @@
61
61
  "title": "Използване на персонализирана информация за удостоверяване на Bedrock"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Въведете API ключ от DeepSeek",
68
+ "placeholder": "API ключ на DeepSeek",
69
+ "title": "API ключ"
70
+ },
71
+ "unlock": {
72
+ "description": "Само въведете вашия API ключ от DeepSeek, за да започнете сесията. Приложението няма да запази вашия API ключ",
73
+ "title": "Използване на персонализиран API ключ от DeepSeek"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Fehler beim Anfordern des Anthropic AI-Dienstes. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
56
56
  "AzureBizError": "Es ist ein Fehler bei der Anforderung des Azure AI-Dienstes aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
57
57
  "BedrockBizError": "Es ist ein Fehler bei der Anforderung des Bedrock-Dienstes aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
58
+ "DeepSeekBizError": "Fehler bei der Anforderung des DeepSeek-Dienstes. Bitte überprüfen Sie die folgenden Informationen und versuchen Sie es erneut.",
58
59
  "GoogleBizError": "Es ist ein Fehler bei der Anforderung des Google-Dienstes aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
59
60
  "GroqBizError": "Die Anfrage an den Groq-Dienst ist fehlgeschlagen. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
60
61
  "InvalidAccessCode": "Das Passwort ist ungültig oder leer. Bitte geben Sie das richtige Zugangspasswort ein oder fügen Sie einen benutzerdefinierten API-Schlüssel hinzu.",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "Der Azure API-Schlüssel ist ungültig oder leer. Bitte überprüfen Sie den Azure API-Schlüssel und versuchen Sie es erneut.",
63
64
  "InvalidBedrockCredentials": "Die Bedrock-Authentifizierung ist fehlgeschlagen. Bitte überprüfen Sie AccessKeyId/SecretAccessKey und versuchen Sie es erneut.",
64
65
  "InvalidClerkUser": "Entschuldigung, du bist derzeit nicht angemeldet. Bitte melde dich an oder registriere ein Konto, um fortzufahren.",
66
+ "InvalidDeepSeekAPIKey": "DeepSeek-API-Schlüssel ungültig oder leer. Bitte überprüfen Sie den DeepSeek-API-Schlüssel und versuchen Sie es erneut.",
65
67
  "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.",
66
68
  "InvalidGroqAPIKey": "Der Groq API-Schlüssel ist ungültig oder leer. Bitte überprüfen Sie den Groq API-Schlüssel und versuchen Sie es erneut.",
67
69
  "InvalidMinimaxAPIKey": "Ungültiger oder leerer Minimax-API-Schlüssel. Bitte überprüfen Sie den Minimax-API-Schlüssel und versuchen Sie es erneut.",
@@ -61,6 +61,18 @@
61
61
  "title": "Verwenden Sie benutzerdefinierte Bedrock-Authentifizierungsinformationen"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Geben Sie Ihren API-Schlüssel von DeepSeek ein",
68
+ "placeholder": "DeepSeek API-Schlüssel",
69
+ "title": "API-Schlüssel"
70
+ },
71
+ "unlock": {
72
+ "description": "Geben Sie Ihren DeepSeek API-Schlüssel ein, um die Sitzung zu starten. Die App speichert Ihren API-Schlüssel nicht.",
73
+ "title": "Verwenden Sie einen benutzerdefinierten DeepSeek API-Schlüssel"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Error requesting Anthropic service. Please troubleshoot or retry based on the following information.",
56
56
  "AzureBizError": "Error requesting Azure AI service. Please troubleshoot or retry based on the following information.",
57
57
  "BedrockBizError": "Error requesting Bedrock service. Please troubleshoot or retry based on the following information.",
58
+ "DeepSeekBizError": "Error requesting DeepSeek service, please troubleshoot or retry based on the following information",
58
59
  "GoogleBizError": "Error requesting Google service. Please troubleshoot or retry based on the following information.",
59
60
  "GroqBizError": "Error occurred while requesting Groq service. Please troubleshoot based on the following information or retry.",
60
61
  "InvalidAccessCode": "Invalid access code or empty. Please enter the correct access code or add a custom API Key.",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "Azure API Key is incorrect or empty. Please check the Azure API Key and retry.",
63
64
  "InvalidBedrockCredentials": "Bedrock authentication failed. Please check the AccessKeyId/SecretAccessKey and retry.",
64
65
  "InvalidClerkUser": "Sorry, you are not currently logged in. Please log in or register an account to continue.",
66
+ "InvalidDeepSeekAPIKey": "The DeepSeek API Key is incorrect or empty, please check the DeepSeek API Key and try again",
65
67
  "InvalidGoogleAPIKey": "Google API Key is incorrect or empty. Please check the Google API Key and retry.",
66
68
  "InvalidGroqAPIKey": "Groq API Key is incorrect or empty. Please check the Groq API Key and retry.",
67
69
  "InvalidMinimaxAPIKey": "Incorrect or empty Minimax API Key, please check the Minimax API Key and try again",
@@ -61,6 +61,18 @@
61
61
  "title": "Use Custom Bedrock Authentication Information"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Enter your API Key from DeepSeek",
68
+ "placeholder": "DeepSeek API Key",
69
+ "title": "API Key"
70
+ },
71
+ "unlock": {
72
+ "description": "Enter your DeepSeek API Key to start the session. The app will not store your API Key.",
73
+ "title": "Use Custom DeepSeek API Key"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Se ha producido un error al solicitar el servicio de inteligencia artificial de Anthropic. Por favor, revisa la siguiente información o inténtalo de nuevo.",
56
56
  "AzureBizError": "Se produjo un error al solicitar el servicio de Azure AI, por favor, verifica la siguiente información o inténtalo de nuevo",
57
57
  "BedrockBizError": "Se produjo un error al solicitar el servicio de Bedrock, por favor, verifica la siguiente información o inténtalo de nuevo",
58
+ "DeepSeekBizError": "Error al solicitar el servicio de DeepSeek. Por favor, revisa la siguiente información e inténtalo de nuevo.",
58
59
  "GoogleBizError": "Se produjo un error al solicitar el servicio de Google, por favor, verifica la siguiente información o inténtalo de nuevo",
59
60
  "GroqBizError": "Se produjo un error al solicitar el servicio Groq. Por favor, revise la siguiente información o inténtelo de nuevo",
60
61
  "InvalidAccessCode": "La contraseña no es válida o está vacía. Por favor, introduce una contraseña de acceso válida o añade una clave API personalizada",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "La clave de API de Azure es incorrecta o está vacía, por favor, verifica la clave de API de Azure e inténtalo de nuevo",
63
64
  "InvalidBedrockCredentials": "La autenticación de Bedrock no se ha completado con éxito, por favor, verifica AccessKeyId/SecretAccessKey e inténtalo de nuevo",
64
65
  "InvalidClerkUser": "Lo siento mucho, actualmente no has iniciado sesión. Por favor, inicia sesión o regístrate antes de continuar.",
66
+ "InvalidDeepSeekAPIKey": "La clave de API de DeepSeek no es válida o está vacía. Por favor, revisa la clave de API de DeepSeek e inténtalo de nuevo.",
65
67
  "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",
66
68
  "InvalidGroqAPIKey": "La clave de API de Groq es incorrecta o está vacía. Por favor, revisa la clave de API de Groq e inténtalo de nuevo.",
67
69
  "InvalidMinimaxAPIKey": "Clave de API de Minimax incorrecta o vacía, por favor, revise la clave de API de Minimax e inténtelo de nuevo",
@@ -61,6 +61,18 @@
61
61
  "title": "Usar información de autenticación de Bedrock personalizada"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Introduce tu clave de API de DeepSeek",
68
+ "placeholder": "Clave de API de DeepSeek",
69
+ "title": "Clave de API"
70
+ },
71
+ "unlock": {
72
+ "description": "Ingresa tu clave de API de DeepSeek para comenzar la sesión. La aplicación no guardará tu clave de API",
73
+ "title": "Usar clave de API personalizada de DeepSeek"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Erreur commerciale lors de la demande de service Anthropic AI. Veuillez vérifier les informations ci-dessous ou réessayer.",
56
56
  "AzureBizError": "Erreur lors de la demande de service Azure AI, veuillez vérifier les informations ci-dessous ou réessayer",
57
57
  "BedrockBizError": "Erreur lors de la demande de service Bedrock, veuillez vérifier les informations ci-dessous ou réessayer",
58
+ "DeepSeekBizError": "Erreur commerciale lors de la demande de service DeepSeek, veuillez suivre les informations ci-dessous pour dépanner ou réessayer",
58
59
  "GoogleBizError": "Erreur lors de la demande de service Google, veuillez vérifier les informations ci-dessous ou réessayer",
59
60
  "GroqBizError": "Une erreur s'est produite lors de la demande de service Groq. Veuillez vérifier les informations ci-dessous ou réessayer.",
60
61
  "InvalidAccessCode": "Le mot de passe est incorrect ou vide. Veuillez saisir le mot de passe d'accès correct ou ajouter une clé API personnalisée.",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "Clé API Azure incorrecte ou vide, veuillez vérifier la clé API Azure et réessayer",
63
64
  "InvalidBedrockCredentials": "L'authentification Bedrock a échoué, veuillez vérifier AccessKeyId/SecretAccessKey et réessayer",
64
65
  "InvalidClerkUser": "Désolé, vous n'êtes pas actuellement connecté. Veuillez vous connecter ou vous inscrire avant de continuer.",
66
+ "InvalidDeepSeekAPIKey": "Clé d'API DeepSeek incorrecte ou manquante, veuillez vérifier la clé d'API DeepSeek et réessayer",
65
67
  "InvalidGoogleAPIKey": "Clé API Google incorrecte ou vide, veuillez vérifier la clé API Google et réessayer",
66
68
  "InvalidGroqAPIKey": "Clé API Groq incorrecte ou vide, veuillez vérifier la clé API Groq et réessayer",
67
69
  "InvalidMinimaxAPIKey": "Clé API Minimax incorrecte ou vide, veuillez vérifier la clé API Minimax et réessayer",
@@ -61,6 +61,18 @@
61
61
  "title": "Utiliser des informations d'authentification Bedrock personnalisées"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Enter your API Key from DeepSeek",
68
+ "placeholder": "DeepSeek API Key",
69
+ "title": "API Key"
70
+ },
71
+ "unlock": {
72
+ "description": "Enter your DeepSeek API Key to start the session. The app will not store your API Key.",
73
+ "title": "Use Custom DeepSeek API Key"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Si è verificato un errore durante la richiesta del servizio Anthropic AI. Si prega di controllare le informazioni seguenti o riprovare.",
56
56
  "AzureBizError": "Errore nella richiesta del servizio Azure AI, controlla le informazioni seguenti o riprova",
57
57
  "BedrockBizError": "Errore nella richiesta del servizio Bedrock, controlla le informazioni seguenti o riprova",
58
+ "DeepSeekBizError": "Errore di business DeepSeek, controlla le informazioni seguenti o riprova",
58
59
  "GoogleBizError": "Errore nella richiesta del servizio Google, controlla le informazioni seguenti o riprova",
59
60
  "GroqBizError": "Errore del servizio Groq, controlla le informazioni seguenti o riprova",
60
61
  "InvalidAccessCode": "Password incorrect or empty, please enter the correct access password, or add a custom API Key",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "Chiave API Azure non corretta o vuota, controlla la chiave API Azure e riprova",
63
64
  "InvalidBedrockCredentials": "Autenticazione Bedrock non riuscita, controlla AccessKeyId/SecretAccessKey e riprova",
64
65
  "InvalidClerkUser": "Spiacenti, al momento non hai effettuato l'accesso. Per favore, effettua l'accesso o registrati prima di continuare.",
66
+ "InvalidDeepSeekAPIKey": "Chiave API DeepSeek non valida o vuota, controlla la chiave API DeepSeek e riprova",
65
67
  "InvalidGoogleAPIKey": "Chiave API Google non corretta o vuota, controlla la chiave API Google e riprova",
66
68
  "InvalidGroqAPIKey": "Chiave API Groq non valida o vuota, controlla la chiave API Groq e riprova",
67
69
  "InvalidMinimaxAPIKey": "Chiave API Minimax non valida o vuota, controllare la chiave API Minimax e riprovare",
@@ -61,6 +61,18 @@
61
61
  "title": "Usa le informazioni di autenticazione Bedrock personalizzate"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "Inserisci la chiave API di DeepSeek",
68
+ "placeholder": "Chiave API di DeepSeek",
69
+ "title": "Chiave API"
70
+ },
71
+ "unlock": {
72
+ "description": "Inserisci la tua chiave API di DeepSeek per avviare la sessione. L'applicazione non memorizzerà la tua chiave API.",
73
+ "title": "Usa una chiave API personalizzata di DeepSeek"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {
@@ -55,6 +55,7 @@
55
55
  "AnthropicBizError": "Anthropic AIサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再度お試しください。",
56
56
  "AzureBizError": "Azure AIサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再試行してください。",
57
57
  "BedrockBizError": "Bedrockサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再試行してください。",
58
+ "DeepSeekBizError": "DeepSeekサービスのリクエスト中にエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再度お試しください。",
58
59
  "GoogleBizError": "Googleサービスのリクエストでエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再試行してください。",
59
60
  "GroqBizError": "Groqサービスのリクエストでエラーが発生しました。以下の情報を確認して再試行してください。",
60
61
  "InvalidAccessCode": "パスワードが正しくないか空です。正しいアクセスパスワードを入力するか、カスタムAPIキーを追加してください",
@@ -62,6 +63,7 @@
62
63
  "InvalidAzureAPIKey": "Azure APIキーが正しくないか空です。Azure APIキーを確認してから再試行してください。",
63
64
  "InvalidBedrockCredentials": "Bedrockの認証に失敗しました。AccessKeyId/SecretAccessKeyを確認してから再試行してください。",
64
65
  "InvalidClerkUser": "申し訳ありませんが、現在ログインしていません。続行するにはログインまたはアカウント登録を行ってください",
66
+ "InvalidDeepSeekAPIKey": "DeepSeek APIキーが正しくないか空です。DeepSeek APIキーを確認してからもう一度お試しください。",
65
67
  "InvalidGoogleAPIKey": "Google APIキーが正しくないか空です。Google APIキーを確認してから再試行してください。",
66
68
  "InvalidGroqAPIKey": "Groq APIキーが正しくないか空です。Groq APIキーを確認して再試行してください。",
67
69
  "InvalidMinimaxAPIKey": "Minimax APIキーが正しくないか空です。Minimax APIキーを確認して再試行してください。",
@@ -61,6 +61,18 @@
61
61
  "title": "使用カスタム Bedrock 認証情報"
62
62
  }
63
63
  },
64
+ "deepseek": {
65
+ "title": "DeepSeek",
66
+ "token": {
67
+ "desc": "DeepSeek の API キーを入力してください",
68
+ "placeholder": "DeepSeek API キー",
69
+ "title": "API キー"
70
+ },
71
+ "unlock": {
72
+ "description": "DeepSeek の API キーを入力するとセッションが開始されます。アプリは API キーを記録しません",
73
+ "title": "カスタム DeepSeek API キーを使用"
74
+ }
75
+ },
64
76
  "google": {
65
77
  "title": "Google",
66
78
  "token": {