@lobehub/chat 0.145.11 → 0.145.13

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/CHANGELOG.md +58 -0
  2. package/locales/ar/common.json +1 -1
  3. package/locales/ar/error.json +7 -7
  4. package/locales/ar/setting.json +108 -108
  5. package/locales/bg-BG/common.json +1 -0
  6. package/locales/bg-BG/error.json +7 -1
  7. package/locales/bg-BG/setting.json +107 -91
  8. package/locales/de-DE/common.json +1 -1
  9. package/locales/de-DE/error.json +7 -7
  10. package/locales/de-DE/setting.json +106 -106
  11. package/locales/en-US/common.json +1 -1
  12. package/locales/en-US/error.json +7 -7
  13. package/locales/en-US/setting.json +66 -66
  14. package/locales/es-ES/common.json +1 -1
  15. package/locales/es-ES/error.json +7 -7
  16. package/locales/es-ES/setting.json +91 -91
  17. package/locales/fr-FR/common.json +1 -1
  18. package/locales/fr-FR/error.json +7 -7
  19. package/locales/fr-FR/setting.json +87 -87
  20. package/locales/it-IT/common.json +1 -1
  21. package/locales/it-IT/error.json +7 -7
  22. package/locales/it-IT/setting.json +111 -111
  23. package/locales/ja-JP/common.json +1 -1
  24. package/locales/ja-JP/error.json +7 -7
  25. package/locales/ja-JP/setting.json +101 -101
  26. package/locales/ko-KR/common.json +1 -1
  27. package/locales/ko-KR/error.json +7 -3
  28. package/locales/ko-KR/setting.json +82 -82
  29. package/locales/nl-NL/common.json +1 -1
  30. package/locales/nl-NL/error.json +10 -10
  31. package/locales/nl-NL/setting.json +112 -112
  32. package/locales/pl-PL/common.json +1 -1
  33. package/locales/pl-PL/error.json +12 -12
  34. package/locales/pl-PL/setting.json +102 -102
  35. package/locales/pt-BR/common.json +1 -1
  36. package/locales/pt-BR/error.json +7 -7
  37. package/locales/pt-BR/setting.json +104 -104
  38. package/locales/ru-RU/common.json +1 -1
  39. package/locales/ru-RU/error.json +7 -7
  40. package/locales/ru-RU/setting.json +113 -113
  41. package/locales/tr-TR/common.json +1 -1
  42. package/locales/tr-TR/error.json +7 -7
  43. package/locales/tr-TR/setting.json +113 -113
  44. package/locales/vi-VN/common.json +1 -1
  45. package/locales/vi-VN/error.json +7 -7
  46. package/locales/vi-VN/setting.json +81 -81
  47. package/locales/zh-CN/common.json +1 -1
  48. package/locales/zh-CN/error.json +6 -6
  49. package/locales/zh-CN/setting.json +39 -39
  50. package/locales/zh-TW/common.json +1 -1
  51. package/locales/zh-TW/error.json +7 -7
  52. package/locales/zh-TW/setting.json +70 -70
  53. package/package.json +1 -1
  54. package/src/app/api/auth/sso-providers/azure-ad.ts +1 -1
  55. package/src/app/settings/llm/Anthropic/index.tsx +3 -43
  56. package/src/app/settings/llm/Azure/index.tsx +10 -10
  57. package/src/app/settings/llm/Bedrock/index.tsx +9 -9
  58. package/src/app/settings/llm/Google/index.tsx +3 -29
  59. package/src/app/settings/llm/Groq/index.tsx +2 -28
  60. package/src/app/settings/llm/Mistral/index.tsx +2 -28
  61. package/src/app/settings/llm/Moonshot/index.tsx +2 -28
  62. package/src/app/settings/llm/Ollama/index.tsx +13 -32
  63. package/src/app/settings/llm/OpenAI/index.tsx +15 -17
  64. package/src/app/settings/llm/OpenRouter/index.tsx +3 -40
  65. package/src/app/settings/llm/Perplexity/index.tsx +2 -28
  66. package/src/app/settings/llm/TogetherAI/index.tsx +3 -44
  67. package/src/app/settings/llm/ZeroOne/index.tsx +2 -28
  68. package/src/app/settings/llm/Zhipu/index.tsx +2 -30
  69. package/src/app/settings/llm/components/ProviderConfig/index.tsx +73 -9
  70. package/src/app/settings/llm/const.ts +6 -0
  71. package/src/app/settings/tts/TTS/index.tsx +1 -1
  72. package/src/locales/default/error.ts +1 -1
  73. package/src/locales/default/setting.ts +30 -31
  74. package/src/locales/resources.ts +4 -0
@@ -31,7 +31,7 @@ export default {
31
31
  sessionWithName: '会话设置 · {{name}}',
32
32
  },
33
33
  llm: {
34
- Anthropic: {
34
+ anthropic: {
35
35
  endpoint: {
36
36
  desc: '除默认地址外,必须包含 http(s)://',
37
37
  placeholder: 'https://api.anthropic.com',
@@ -44,7 +44,7 @@ export default {
44
44
  title: 'API Key',
45
45
  },
46
46
  },
47
- AzureOpenAI: {
47
+ azure: {
48
48
  azureApiVersion: {
49
49
  desc: 'Azure 的 API 版本,遵循 YYYY-MM-DD 格式,查阅[最新版本](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)',
50
50
  fetch: '获取列表',
@@ -71,28 +71,34 @@ export default {
71
71
  title: 'API Key',
72
72
  },
73
73
  },
74
- Bedrock: {
74
+ bedrock: {
75
75
  accessKeyId: {
76
- desc: '填入Aws Access Key Id',
77
- placeholder: 'Aws Access Key Id',
78
- title: 'Aws Access Key Id',
76
+ desc: '填入AWS Access Key Id',
77
+ placeholder: 'AWS Access Key Id',
78
+ title: 'AWS Access Key Id',
79
79
  },
80
80
  checker: {
81
81
  desc: '测试 AccessKeyId / SecretAccessKey 是否填写正确',
82
82
  },
83
83
  region: {
84
- desc: '填入 Aws Region',
85
- placeholder: 'Aws Region',
86
- title: 'Aws Region',
84
+ desc: '填入 AWS Region',
85
+ placeholder: 'AWS Region',
86
+ title: 'AWS Region',
87
87
  },
88
88
  secretAccessKey: {
89
- desc: '填入 Aws Secret Access Key',
90
- placeholder: 'Aws Secret Access Key',
91
- title: 'Aws Secret Access Key',
89
+ desc: '填入 AWS Secret Access Key',
90
+ placeholder: 'AWS Secret Access Key',
91
+ title: 'AWS Secret Access Key',
92
92
  },
93
93
  title: 'Bedrock',
94
94
  },
95
- Google: {
95
+ checker: {
96
+ button: '检查',
97
+ desc: '测试 Api Key 与代理地址是否正确填写',
98
+ pass: '检查通过',
99
+ title: '连通性检查',
100
+ },
101
+ google: {
96
102
  title: 'Google',
97
103
  token: {
98
104
  desc: '填入来自 Google 的 API Key',
@@ -100,7 +106,7 @@ export default {
100
106
  title: 'API Key',
101
107
  },
102
108
  },
103
- Groq: {
109
+ groq: {
104
110
  title: 'Groq',
105
111
  token: {
106
112
  desc: '填入来自 Groq 的 API Key',
@@ -108,7 +114,7 @@ export default {
108
114
  title: 'API Key',
109
115
  },
110
116
  },
111
- Mistral: {
117
+ mistral: {
112
118
  title: 'Mistral AI',
113
119
  token: {
114
120
  desc: '填入来自 Mistral AI 的 API Key',
@@ -116,7 +122,7 @@ export default {
116
122
  title: 'API Key',
117
123
  },
118
124
  },
119
- Moonshot: {
125
+ moonshot: {
120
126
  title: '月之暗面',
121
127
  token: {
122
128
  desc: '填入来自 Moonshot AI 的 API Key',
@@ -124,7 +130,7 @@ export default {
124
130
  title: 'API Key',
125
131
  },
126
132
  },
127
- Ollama: {
133
+ ollama: {
128
134
  checker: {
129
135
  desc: '测试代理地址是否正确填写',
130
136
  },
@@ -140,7 +146,7 @@ export default {
140
146
  },
141
147
  title: 'Ollama',
142
148
  },
143
- OpenAI: {
149
+ openai: {
144
150
  azureApiVersion: {
145
151
  desc: 'Azure 的 API 版本,遵循 YYYY-MM-DD 格式,查阅[最新版本](https://learn.microsoft.com/zh-cn/azure/ai-services/openai/reference#chat-completions)',
146
152
  fetch: '获取列表',
@@ -178,7 +184,7 @@ export default {
178
184
  title: 'Azure OpenAI',
179
185
  },
180
186
  },
181
- OpenRouter: {
187
+ openrouter: {
182
188
  checker: {
183
189
  desc: '测试代理地址是否正确填写',
184
190
  },
@@ -194,7 +200,7 @@ export default {
194
200
  title: 'API Key',
195
201
  },
196
202
  },
197
- Perplexity: {
203
+ perplexity: {
198
204
  title: 'Perplexity',
199
205
  token: {
200
206
  desc: '填入来自 Perplexity AI 的 API Key',
@@ -202,7 +208,7 @@ export default {
202
208
  title: 'API Key',
203
209
  },
204
210
  },
205
- TogetherAI: {
211
+ togetherai: {
206
212
  checker: {
207
213
  desc: '测试代理地址是否正确填写',
208
214
  },
@@ -218,7 +224,8 @@ export default {
218
224
  title: 'API Key',
219
225
  },
220
226
  },
221
- ZeroOne: {
227
+ waitingForMore: '更多模型正在 <1>计划接入</1> 中,敬请期待 ✨',
228
+ zeroone: {
222
229
  title: '01.AI 零一万物',
223
230
  token: {
224
231
  desc: '填入来自 01.AI 零一万物的 API Key',
@@ -226,7 +233,7 @@ export default {
226
233
  title: 'API Key',
227
234
  },
228
235
  },
229
- Zhipu: {
236
+ zhipu: {
230
237
  title: '智谱',
231
238
  token: {
232
239
  desc: '填入来自智谱的 API Key',
@@ -234,14 +241,6 @@ export default {
234
241
  title: 'API Key',
235
242
  },
236
243
  },
237
-
238
- checker: {
239
- button: '检查',
240
- desc: '测试 Api Key 与代理地址是否正确填写',
241
- pass: '检查通过',
242
- title: '连通性检查',
243
- },
244
- waitingForMore: '更多模型正在 <1>计划接入</1> 中,敬请期待 ✨',
245
244
  },
246
245
  ollama: {
247
246
  download: {
@@ -33,6 +33,10 @@ export const normalizeLocale = (locale?: string) => {
33
33
  return 'de-DE';
34
34
  }
35
35
 
36
+ case 'ru': {
37
+ return 'ru-RU';
38
+ }
39
+
36
40
  case 'en': {
37
41
  return 'en-US';
38
42
  }