@lobehub/chat 0.152.6 → 0.152.7
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.
- package/CHANGELOG.md +25 -0
- package/docs/self-hosting/advanced/settings-url-share.mdx +100 -0
- package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +100 -0
- package/locales/ar/common.json +1 -0
- package/locales/ar/setting.json +4 -1
- package/locales/bg-BG/common.json +1 -0
- package/locales/bg-BG/setting.json +4 -1
- package/locales/de-DE/common.json +1 -0
- package/locales/de-DE/setting.json +4 -1
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/setting.json +4 -1
- package/locales/es-ES/common.json +1 -0
- package/locales/es-ES/setting.json +4 -1
- package/locales/fr-FR/common.json +1 -0
- package/locales/fr-FR/setting.json +4 -1
- package/locales/it-IT/common.json +1 -0
- package/locales/it-IT/setting.json +4 -1
- package/locales/ja-JP/common.json +1 -0
- package/locales/ja-JP/setting.json +4 -1
- package/locales/ko-KR/common.json +1 -0
- package/locales/ko-KR/setting.json +4 -1
- package/locales/nl-NL/common.json +1 -0
- package/locales/nl-NL/setting.json +4 -1
- package/locales/pl-PL/common.json +1 -0
- package/locales/pl-PL/setting.json +4 -1
- package/locales/pt-BR/common.json +1 -0
- package/locales/pt-BR/setting.json +4 -1
- package/locales/ru-RU/common.json +1 -0
- package/locales/ru-RU/setting.json +4 -1
- package/locales/tr-TR/common.json +1 -0
- package/locales/tr-TR/setting.json +4 -1
- package/locales/vi-VN/common.json +1 -0
- package/locales/vi-VN/setting.json +4 -1
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/setting.json +4 -1
- package/locales/zh-TW/common.json +1 -0
- package/locales/zh-TW/setting.json +4 -1
- package/package.json +1 -1
- package/src/app/(main)/(mobile)/me/features/AvatarBanner.tsx +52 -0
- package/src/app/(main)/(mobile)/me/features/Cate.tsx +35 -0
- package/src/app/(main)/(mobile)/me/features/ExtraCate.tsx +26 -0
- package/src/app/(main)/(mobile)/me/features/useExtraCate.tsx +62 -0
- package/src/app/(main)/(mobile)/me/layout.tsx +11 -0
- package/src/app/(main)/(mobile)/me/loading.tsx +17 -0
- package/src/app/(main)/(mobile)/me/page.tsx +31 -0
- package/src/app/(main)/@nav/_layout/Desktop/index.tsx +1 -1
- package/src/app/(main)/@nav/_layout/Mobile.tsx +3 -3
- package/src/app/(main)/chat/(mobile)/features/SessionHeader.tsx +1 -1
- package/src/app/(main)/chat/_layout/Desktop/index.tsx +6 -8
- package/src/app/(main)/chat/_layout/Mobile/index.tsx +5 -3
- package/src/app/(main)/chat/_layout/type.ts +5 -0
- package/src/app/(main)/chat/features/SettingButton.tsx +3 -4
- package/src/app/(main)/chat/layout.ts +5 -2
- package/src/app/(main)/chat/settings/{(desktop) → _layout/Desktop}/Header.tsx +2 -0
- package/src/app/(main)/chat/settings/_layout/Desktop/index.tsx +28 -0
- package/src/app/(main)/chat/settings/{(mobile) → _layout/Mobile}/Header.tsx +3 -2
- package/src/app/(main)/chat/settings/_layout/Mobile/index.tsx +15 -0
- package/src/app/(main)/chat/settings/error.tsx +5 -0
- package/src/app/(main)/chat/settings/features/HeaderContent.tsx +15 -9
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +2 -0
- package/src/app/(main)/chat/settings/features/SubmitAgentButton/index.tsx +16 -8
- package/src/app/(main)/chat/settings/layout.tsx +9 -2
- package/src/app/(main)/chat/settings/loading.tsx +3 -0
- package/src/app/(main)/chat/settings/not-found.tsx +3 -0
- package/src/app/(main)/chat/settings/page.tsx +2 -9
- package/src/app/(main)/market/@detail/default.tsx +1 -10
- package/src/app/(main)/market/{@detail/_layout/Desktop.tsx → _layout/Desktop/DetailSidebar.tsx} +2 -2
- package/src/app/(main)/market/_layout/Desktop/index.tsx +2 -1
- package/src/app/(main)/market/{@detail/_layout/Mobile.tsx → _layout/Mobile/DetailModal.tsx} +2 -2
- package/src/app/(main)/market/_layout/Mobile/index.tsx +3 -1
- package/src/app/(main)/settings/@category/default.tsx +16 -0
- package/src/app/(main)/settings/@category/features/CategoryContent.tsx +33 -0
- package/src/app/(main)/settings/@category/features/UpgradeAlert.tsx +38 -0
- package/src/app/(main)/settings/_layout/Desktop/Header.tsx +78 -23
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +39 -27
- package/src/app/(main)/settings/_layout/Desktop/index.tsx +41 -17
- package/src/app/(main)/settings/_layout/Mobile/{SubSettingHeader.tsx → Header.tsx} +3 -1
- package/src/app/(main)/settings/_layout/Mobile/index.tsx +7 -18
- package/src/app/(main)/settings/_layout/type.ts +6 -0
- package/src/app/(main)/settings/about/features/AboutList.tsx +134 -0
- package/src/app/(main)/settings/about/features/Analytics.tsx +42 -0
- package/src/app/(main)/settings/about/index.tsx +46 -0
- package/src/app/(main)/settings/about/page.tsx +13 -33
- package/src/app/(main)/settings/agent/{Agent.tsx → index.tsx} +8 -4
- package/src/app/(main)/settings/agent/page.tsx +8 -16
- package/src/app/(main)/settings/common/{Common.tsx → features/Common.tsx} +6 -4
- package/src/app/(main)/settings/common/{Theme.tsx → features/Theme/index.tsx} +8 -6
- package/src/app/(main)/settings/common/index.tsx +11 -16
- package/src/app/(main)/settings/common/page.tsx +8 -7
- package/src/app/(main)/settings/error.tsx +5 -0
- package/src/app/(main)/settings/features/Footer.tsx +2 -0
- package/src/app/(main)/settings/features/UpgradeAlert.tsx +21 -13
- package/src/app/(main)/settings/hooks/useCategory.tsx +54 -0
- package/src/app/(main)/settings/hooks/useSyncSettings.ts +2 -2
- package/src/app/(main)/settings/layout.ts +4 -1
- package/src/app/(main)/settings/llm/Anthropic/index.tsx +4 -8
- package/src/app/(main)/settings/llm/Azure/index.tsx +3 -1
- package/src/app/(main)/settings/llm/Bedrock/index.tsx +3 -1
- package/src/app/(main)/settings/llm/Google/index.tsx +4 -2
- package/src/app/(main)/settings/llm/Groq/index.tsx +3 -1
- package/src/app/(main)/settings/llm/Minimax/index.tsx +3 -9
- package/src/app/(main)/settings/llm/Mistral/index.tsx +3 -9
- package/src/app/(main)/settings/llm/Moonshot/index.tsx +3 -1
- package/src/app/(main)/settings/llm/Ollama/index.tsx +3 -1
- package/src/app/(main)/settings/llm/OpenAI/index.tsx +2 -0
- package/src/app/(main)/settings/llm/OpenRouter/index.tsx +3 -9
- package/src/app/(main)/settings/llm/Perplexity/index.tsx +3 -9
- package/src/app/(main)/settings/llm/TogetherAI/index.tsx +3 -9
- package/src/app/(main)/settings/llm/ZeroOne/index.tsx +3 -9
- package/src/app/(main)/settings/llm/Zhipu/index.tsx +3 -10
- package/src/app/(main)/settings/llm/components/Checker.tsx +2 -0
- package/src/app/(main)/settings/llm/components/Footer.tsx +26 -0
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +29 -3
- package/src/app/(main)/settings/llm/index.tsx +11 -23
- package/src/app/(main)/settings/llm/page.tsx +15 -0
- package/src/app/(main)/settings/loading.tsx +9 -0
- package/src/app/(main)/settings/not-found.tsx +3 -0
- package/src/app/(main)/settings/page.tsx +2 -14
- package/src/app/(main)/settings/sync/{DeviceInfo → features/DeviceInfo}/Card.tsx +6 -5
- package/src/app/(main)/settings/sync/features/DeviceInfo/DeviceName.tsx +63 -0
- package/src/app/(main)/settings/sync/{components → features/DeviceInfo}/SystemIcon.tsx +6 -14
- package/src/app/(main)/settings/sync/{DeviceInfo → features/DeviceInfo}/index.tsx +22 -36
- package/src/app/(main)/settings/sync/{WebRTC → features/WebRTC}/ChannelNameInput.tsx +3 -3
- package/src/app/(main)/settings/sync/{WebRTC → features/WebRTC}/index.tsx +10 -9
- package/src/app/(main)/settings/sync/index.tsx +17 -0
- package/src/app/(main)/settings/sync/page.tsx +11 -15
- package/src/app/(main)/settings/tts/features/OpenAI.tsx +54 -0
- package/src/app/(main)/settings/tts/{TTS/index.tsx → features/STT.tsx} +11 -27
- package/src/app/(main)/settings/tts/index.tsx +15 -0
- package/src/app/(main)/settings/tts/page.tsx +8 -16
- package/src/app/layout.tsx +6 -2
- package/src/components/BrandWatermark/index.tsx +39 -0
- package/src/components/Cell/Divider.tsx +19 -0
- package/src/components/Cell/index.tsx +38 -0
- package/src/components/Menu/index.tsx +97 -0
- package/src/components/SkeletonLoading/index.tsx +21 -0
- package/src/const/url.ts +2 -0
- package/src/features/AgentSetting/AgentChat/index.tsx +135 -0
- package/src/features/AgentSetting/AgentMeta/index.tsx +4 -3
- package/src/features/AgentSetting/AgentModal/index.tsx +95 -0
- package/src/features/AgentSetting/AgentPlugin/index.tsx +65 -66
- package/src/features/AgentSetting/AgentPrompt/index.tsx +101 -47
- package/src/features/AgentSetting/AgentTTS/index.tsx +4 -0
- package/src/features/AgentSetting/StoreUpdater.tsx +2 -0
- package/src/features/AgentSetting/index.tsx +6 -6
- package/src/features/AgentSetting/store/index.ts +2 -0
- package/src/features/AvatarWithUpload/index.tsx +2 -0
- package/src/hooks/useQuery.test.ts +20 -0
- package/src/hooks/useQuery.ts +7 -0
- package/src/hooks/useQueryRoute.test.ts +86 -0
- package/src/hooks/useQueryRoute.ts +46 -0
- package/src/locales/default/common.ts +1 -0
- package/src/locales/default/setting.ts +3 -0
- package/src/store/global/initialState.ts +1 -0
- package/src/store/user/slices/common/action.test.ts +1 -1
- package/src/app/(main)/chat/settings/(desktop)/index.tsx +0 -23
- package/src/app/(main)/chat/settings/(mobile)/index.tsx +0 -16
- package/src/app/(main)/settings/(desktop)/index.tsx +0 -23
- package/src/app/(main)/settings/(mobile)/features/AvatarBanner.tsx +0 -68
- package/src/app/(main)/settings/(mobile)/features/ExtraList.tsx +0 -65
- package/src/app/(main)/settings/(mobile)/index.tsx +0 -53
- package/src/app/(main)/settings/about/AboutList.tsx +0 -53
- package/src/app/(main)/settings/about/Analytics.tsx +0 -40
- package/src/app/(main)/settings/about/style.ts +0 -22
- package/src/app/(main)/settings/agent/loading.tsx +0 -3
- package/src/app/(main)/settings/common/loading.tsx +0 -3
- package/src/app/(main)/settings/features/SettingList/index.tsx +0 -47
- package/src/app/(main)/settings/llm/layout.tsx +0 -11
- package/src/app/(main)/settings/llm/loading.tsx +0 -3
- package/src/app/(main)/settings/sync/DeviceInfo/DeviceName.tsx +0 -66
- package/src/app/(main)/settings/sync/PageTitle.tsx +0 -11
- package/src/app/(main)/settings/sync/layout.tsx +0 -12
- package/src/app/(main)/settings/sync/loading.tsx +0 -3
- package/src/app/(main)/settings/tts/loading.tsx +0 -3
- package/src/features/AgentSetting/AgentConfig/index.tsx +0 -202
- package/src/features/AgentSetting/AgentConfig/useSyncConfig.ts +0 -23
- /package/src/app/(main)/settings/{features/SettingList → about/features}/Item.tsx +0 -0
- /package/src/app/(main)/settings/{features → common/features/Theme}/ThemeSwatches/ThemeSwatchesNeutral.tsx +0 -0
- /package/src/app/(main)/settings/{features → common/features/Theme}/ThemeSwatches/ThemeSwatchesPrimary.tsx +0 -0
- /package/src/app/(main)/settings/{features → common/features/Theme}/ThemeSwatches/index.ts +0 -0
- /package/src/app/(main)/settings/sync/{Alert.tsx → features/Alert.tsx} +0 -0
- /package/src/app/(main)/settings/sync/{components → features/WebRTC}/SyncSwitch/index.css +0 -0
- /package/src/app/(main)/settings/sync/{components → features/WebRTC}/SyncSwitch/index.tsx +0 -0
- /package/src/app/(main)/settings/sync/{util.ts → features/WebRTC/generateRandomRoomName.ts} +0 -0
- /package/src/app/(main)/settings/tts/{TTS/options.ts → features/const.ts} +0 -0
- /package/src/features/AgentSetting/{AgentConfig → AgentModal}/ModelSelect.tsx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.152.7](https://github.com/lobehub/lobe-chat/compare/v0.152.6...v0.152.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-02**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Refactor setting layout and improve setting design.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Refactor setting layout and improve setting design, closes [#2344](https://github.com/lobehub/lobe-chat/issues/2344) ([fa16721](https://github.com/lobehub/lobe-chat/commit/fa16721))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.152.6](https://github.com/lobehub/lobe-chat/compare/v0.152.5...v0.152.6)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-05-02**</sup>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Share settings via URL
|
|
2
|
+
|
|
3
|
+
LobeChat support import settings from external URL to quickly set up LobeChat configuration.
|
|
4
|
+
|
|
5
|
+
The currently supported settings are:
|
|
6
|
+
|
|
7
|
+
- `languageModel`: Language model settings
|
|
8
|
+
|
|
9
|
+
## Import from URL
|
|
10
|
+
|
|
11
|
+
Use the following URL format to import settings parameters from an external URL:
|
|
12
|
+
|
|
13
|
+
```plaintext
|
|
14
|
+
https://lobehub.com/?settings=<settings object in JSON format>
|
|
15
|
+
https://lobehub.com/?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Example of settings in JSON format:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"languageModel": {
|
|
23
|
+
"openai": {
|
|
24
|
+
"apiKey": "user-key"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Export settings to URL
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
// Generate settings to export to URL
|
|
34
|
+
const settings = {
|
|
35
|
+
languageModel: {
|
|
36
|
+
openai: {
|
|
37
|
+
apiKey: 'user-key',
|
|
38
|
+
endpoint: 'https://lobehub.com/v1'
|
|
39
|
+
},
|
|
40
|
+
}};
|
|
41
|
+
// Convert settings to a JSON formatted string
|
|
42
|
+
const url = `/?settings=${JSON.stringify(settings)}`;
|
|
43
|
+
console.log(url);
|
|
44
|
+
// /?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
<Callout type={'warning'}>
|
|
48
|
+
LobeChat does not verify the correctness of the settings parameters in the URL, nor provide encryption or decryption methods. Please use with caution.
|
|
49
|
+
</Callout>
|
|
50
|
+
|
|
51
|
+
## Parameter schema
|
|
52
|
+
|
|
53
|
+
### languageModel
|
|
54
|
+
|
|
55
|
+
- Property name and type
|
|
56
|
+
|
|
57
|
+
| Property name | Type |
|
|
58
|
+
|---------------|--------------------------------|
|
|
59
|
+
| anthropic | GeneralModelProviderConfig |
|
|
60
|
+
| azure | AzureOpenAIConfig |
|
|
61
|
+
| bedrock | AWSBedrockConfig |
|
|
62
|
+
| google | GeneralModelProviderConfig |
|
|
63
|
+
| groq | GeneralModelProviderConfig |
|
|
64
|
+
| minimax | GeneralModelProviderConfig |
|
|
65
|
+
| mistral | GeneralModelProviderConfig |
|
|
66
|
+
| moonshot | GeneralModelProviderConfig |
|
|
67
|
+
| ollama | GeneralModelProviderConfig |
|
|
68
|
+
| openai | GeneralModelProviderConfig |
|
|
69
|
+
| openrouter | GeneralModelProviderConfig |
|
|
70
|
+
| perplexity | GeneralModelProviderConfig |
|
|
71
|
+
| togetherai | GeneralModelProviderConfig |
|
|
72
|
+
| zeroone | GeneralModelProviderConfig |
|
|
73
|
+
| zhipu | GeneralModelProviderConfig |
|
|
74
|
+
|
|
75
|
+
- Type `GeneralModelProviderConfig`
|
|
76
|
+
|
|
77
|
+
| Property name | Type | Description |
|
|
78
|
+
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
|
|
79
|
+
| apiKey | string | The API key for the model provider. |
|
|
80
|
+
| autoFetchModelLists | boolean | Whether to automatically fetch model lists. |
|
|
81
|
+
| enabled | boolean | Whether the model provider is enabled. |
|
|
82
|
+
| enabledModels | string[] | null | The IDs of the enabled models. |
|
|
83
|
+
| endpoint | string | The endpoint for the model provider. |
|
|
84
|
+
| fetchOnClient | boolean | Whether to fetch on the client. |
|
|
85
|
+
|
|
86
|
+
- Type `AzureOpenAIConfig`
|
|
87
|
+
> Inherits the fields from `GeneralModelProviderConfig`
|
|
88
|
+
|
|
89
|
+
| Property name | Type | Description |
|
|
90
|
+
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
|
|
91
|
+
| apiVersion | string | The API version for Azure OpenAI. |
|
|
92
|
+
|
|
93
|
+
- Type `AWSBedrockConfig`
|
|
94
|
+
> Inherits all fields from `GeneralModelProviderConfig` except `apiKey, endpoint`
|
|
95
|
+
|
|
96
|
+
| Property name | Type | Description |
|
|
97
|
+
| accessKeyId | string | The access key ID for AWS Bedrock. |
|
|
98
|
+
| region | string | The region for AWS Bedrock. |
|
|
99
|
+
| secretAccessKey | string | The secret access key for AWS Bedrock. |
|
|
100
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# URL 分享设置参数
|
|
2
|
+
|
|
3
|
+
LobeChat 支持从外部 URL 导入设置参数,以便于快速设置 LobeChat 的配置。
|
|
4
|
+
|
|
5
|
+
目前支持的设置项有:
|
|
6
|
+
|
|
7
|
+
- `languageModel`:语言模型设置
|
|
8
|
+
|
|
9
|
+
## 从 URL 中导入
|
|
10
|
+
|
|
11
|
+
使用以下 URL 格式,可以从外部 URL 导入设置参数:
|
|
12
|
+
|
|
13
|
+
```plaintext
|
|
14
|
+
https://lobehub.com/?settings=<JSON格式的设置对象>
|
|
15
|
+
https://lobehub.com/?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
JSON格式的设置示例:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"languageModel": {
|
|
23
|
+
"openai": {
|
|
24
|
+
"apiKey": "user-key"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 将设置导出到 URL
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
// 生成要导出到 URL 的设置
|
|
34
|
+
const settings = {
|
|
35
|
+
languageModel: {
|
|
36
|
+
openai: {
|
|
37
|
+
apiKey: 'user-key',
|
|
38
|
+
endpoint: 'https://lobehub.com/v1'
|
|
39
|
+
},
|
|
40
|
+
}};
|
|
41
|
+
// 将设置转为 JSON 格式的字符串
|
|
42
|
+
const url = `/?settings=${JSON.stringify(settings)}`;
|
|
43
|
+
console.log(url);
|
|
44
|
+
// /?settings={"languageModel":{"openai":{"apiKey":"user-key","endpoint":"https://lobehub.com/v1"}}}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
<Callout type={'warning'}>
|
|
48
|
+
LobeChat 不对 URL 中的设置参数进行正确性校验,也不提供加密、解密方法,请谨慎使用。
|
|
49
|
+
</Callout>
|
|
50
|
+
|
|
51
|
+
## 参数格式
|
|
52
|
+
|
|
53
|
+
### languageModel
|
|
54
|
+
|
|
55
|
+
- 参数及其类型
|
|
56
|
+
|
|
57
|
+
| 参数名称 | 类型 |
|
|
58
|
+
|---------------|--------------------------------|
|
|
59
|
+
| anthropic | GeneralModelProviderConfig |
|
|
60
|
+
| azure | AzureOpenAIConfig |
|
|
61
|
+
| bedrock | AWSBedrockConfig |
|
|
62
|
+
| google | GeneralModelProviderConfig |
|
|
63
|
+
| groq | GeneralModelProviderConfig |
|
|
64
|
+
| minimax | GeneralModelProviderConfig |
|
|
65
|
+
| mistral | GeneralModelProviderConfig |
|
|
66
|
+
| moonshot | GeneralModelProviderConfig |
|
|
67
|
+
| ollama | GeneralModelProviderConfig |
|
|
68
|
+
| openai | GeneralModelProviderConfig |
|
|
69
|
+
| openrouter | GeneralModelProviderConfig |
|
|
70
|
+
| perplexity | GeneralModelProviderConfig |
|
|
71
|
+
| togetherai | GeneralModelProviderConfig |
|
|
72
|
+
| zeroone | GeneralModelProviderConfig |
|
|
73
|
+
| zhipu | GeneralModelProviderConfig |
|
|
74
|
+
|
|
75
|
+
- 类型 `GeneralModelProviderConfig`
|
|
76
|
+
|
|
77
|
+
| 参数 | TS 类型 | 描述 |
|
|
78
|
+
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
|
|
79
|
+
| apiKey | string | 模型的 API 密钥。 |
|
|
80
|
+
| autoFetchModelLists | boolean | 是否自动获取模型列表。 |
|
|
81
|
+
| enabled | boolean | 是否启用该模型。 |
|
|
82
|
+
| enabledModels | string[] | 启用的模型的 ID。 |
|
|
83
|
+
| endpoint | string | 模型API端点。 |
|
|
84
|
+
| fetchOnClient | boolean | 是否在客户端发起请求,默认在服务端发起请求。 |
|
|
85
|
+
|
|
86
|
+
- 类型 `AzureOpenAIConfig`
|
|
87
|
+
> 继承 `GeneralModelProviderConfig` 中的字段
|
|
88
|
+
|
|
89
|
+
| 参数 | TS 类型 | 描述 |
|
|
90
|
+
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
|
|
91
|
+
| apiVersion | string | Azure OpenAI 的 API 版本。 |
|
|
92
|
+
|
|
93
|
+
- 类型 `AWSBedrockConfig`
|
|
94
|
+
> 继承 `GeneralModelProviderConfig` 中除 `apiKey, endpoint` 外的所有字段
|
|
95
|
+
|
|
96
|
+
| 参数 | TS 类型 | 描述 |
|
|
97
|
+
|-----------------------|--------------------------|-----------------------------------------------------------------------------|
|
|
98
|
+
| accessKeyId | string | AWS Bedrock 的访问密钥 ID。 |
|
|
99
|
+
| region | string | AWS Bedrock 的区域。 |
|
|
100
|
+
| secretAccessKey | string | AWS Bedrock 的访问密钥。 |
|
package/locales/ar/common.json
CHANGED
package/locales/ar/setting.json
CHANGED
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "إعدادات التفضيلات والنماذج.",
|
|
30
31
|
"global": "إعدادات عامة",
|
|
31
32
|
"session": "إعدادات الجلسة",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "إعداد الشخصية وتفضيلات الجلسة.",
|
|
34
|
+
"sessionWithName": "إعدادات الجلسة · {{name}}",
|
|
35
|
+
"title": "إعدادات"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Предпочитания и настройки на модела.",
|
|
30
31
|
"global": "Глобални настройки",
|
|
31
32
|
"session": "Настройки на сесията",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Задаване на роля и предпочитания за сесия.",
|
|
34
|
+
"sessionWithName": "Настройки на сесията · {{name}}",
|
|
35
|
+
"title": "Настройки"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Präferenzen und Modellkonfigurationen.",
|
|
30
31
|
"global": "Global Einstellungen",
|
|
31
32
|
"session": "Sitzungseinstellungen",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Rollenkonfiguration und Sitzungspräferenzen.",
|
|
34
|
+
"sessionWithName": "Sitzungseinstellungen · {{name}}",
|
|
35
|
+
"title": "Einstellungen"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Preferences and model settings.",
|
|
30
31
|
"global": "Global Settings",
|
|
31
32
|
"session": "Session Settings",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Role settings and session preferences.",
|
|
34
|
+
"sessionWithName": "Session Settings · {{name}}",
|
|
35
|
+
"title": "Settings"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Preferencias y configuración del modelo.",
|
|
30
31
|
"global": "Configuración global",
|
|
31
32
|
"session": "Configuración de la sesión",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Configuración de roles y preferencias de sesión.",
|
|
34
|
+
"sessionWithName": "Configuración de la sesión · {{name}}",
|
|
35
|
+
"title": "Configuración"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Préférences et paramètres du modèle.",
|
|
30
31
|
"global": "Paramètres globaux",
|
|
31
32
|
"session": "Paramètres de session",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Paramètres de personnage et préférences de session.",
|
|
34
|
+
"sessionWithName": "Paramètres de session · {{name}}",
|
|
35
|
+
"title": "Paramètres"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Preferenze e impostazioni del modello.",
|
|
30
31
|
"global": "Impostazioni globali",
|
|
31
32
|
"session": "Impostazioni della sessione",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Impostazioni del personaggio e preferenze di sessione.",
|
|
34
|
+
"sessionWithName": "Impostazioni della sessione · {{name}}",
|
|
35
|
+
"title": "Impostazioni"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "設定優先順位和模型設置。",
|
|
30
31
|
"global": "グローバル設定",
|
|
31
32
|
"session": "セッション設定",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "キャラクター設定とセッションの好み。",
|
|
34
|
+
"sessionWithName": "セッション設定 · {{name}}",
|
|
35
|
+
"title": "設定"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "설정 및 모델 설정.",
|
|
30
31
|
"global": "전역 설정",
|
|
31
32
|
"session": "세션 설정",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "캐릭터 설정 및 세션 환경 설정.",
|
|
34
|
+
"sessionWithName": "세션 설정 · {{name}}",
|
|
35
|
+
"title": "설정"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Voorkeuren en modelinstellingen.",
|
|
30
31
|
"global": "Algemene instellingen",
|
|
31
32
|
"session": "Sessie-instellingen",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Rolinstellingen en sessievoorkeuren.",
|
|
34
|
+
"sessionWithName": "Sessie-instellingen · {{name}}",
|
|
35
|
+
"title": "Instellingen"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Preferencje i ustawienia modelu.",
|
|
30
31
|
"global": "Ustawienia globalne",
|
|
31
32
|
"session": "Ustawienia sesji",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Ustawienia postaci i preferencje sesji.",
|
|
34
|
+
"sessionWithName": "Ustawienia sesji · {{name}}",
|
|
35
|
+
"title": "Ustawienia"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Preferências e configurações do modelo.",
|
|
30
31
|
"global": "Configurações Globais",
|
|
31
32
|
"session": "Configurações de Sessão",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Configurações de personagem e preferências de sessão.",
|
|
34
|
+
"sessionWithName": "Configurações de Sessão · {{name}}",
|
|
35
|
+
"title": "Configurações"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Настройки предпочтений и моделей.",
|
|
30
31
|
"global": "Глобальные настройки",
|
|
31
32
|
"session": "Настройки сеанса",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Настройки персонажа и предпочтения сессии.",
|
|
34
|
+
"sessionWithName": "Настройки сеанса · {{name}}",
|
|
35
|
+
"title": "Настройки"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Tercihler ve model ayarları.",
|
|
30
31
|
"global": "Genel Ayarlar",
|
|
31
32
|
"session": "Oturum Ayarları",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Karakter ayarları ve oturum tercihleri.",
|
|
34
|
+
"sessionWithName": "Oturum Ayarları · {{name}}",
|
|
35
|
+
"title": "Ayarlar"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "Thiết lập Ưu tiên và Mô hình.",
|
|
30
31
|
"global": "Cài đặt toàn cầu",
|
|
31
32
|
"session": "Cài đặt cuộc trò chuyện",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "Thiết lập nhân vật và ưu tiên phiên hội thoại.",
|
|
34
|
+
"sessionWithName": "Cài đặt cuộc trò chuyện · {{name}}",
|
|
35
|
+
"title": "Cài đặt"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "偏好与模型设置",
|
|
30
31
|
"global": "全局设置",
|
|
31
32
|
"session": "会话设置",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "角色设定与会话偏好",
|
|
34
|
+
"sessionWithName": "会话设置 · {{name}}",
|
|
35
|
+
"title": "设置"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
|
@@ -27,9 +27,12 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"header": {
|
|
30
|
+
"desc": "偏好與模型設定",
|
|
30
31
|
"global": "全域設定",
|
|
31
32
|
"session": "對話設定",
|
|
32
|
-
"
|
|
33
|
+
"sessionDesc": "角色設定與會話偏好",
|
|
34
|
+
"sessionWithName": "對話設定 · {{name}}",
|
|
35
|
+
"title": "設定"
|
|
33
36
|
},
|
|
34
37
|
"llm": {
|
|
35
38
|
"checker": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.152.
|
|
3
|
+
"version": "0.152.7",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|