@lobehub/chat 0.60.2 → 0.60.4
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 +50 -0
- package/package.json +1 -1
- package/src/locales/default/error.ts +1 -1
- package/src/store/global/store.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.60.4](https://github.com/lobehub/lobe-chat/compare/v0.60.3...v0.60.4)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-08-26**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: 优化文案.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: 优化文案 ([9a1e004](https://github.com/lobehub/lobe-chat/commit/9a1e004))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.60.3](https://github.com/lobehub/lobe-chat/compare/v0.60.2...v0.60.3)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2023-08-26**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix global state merge error.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix global state merge error ([cbc2fc8](https://github.com/lobehub/lobe-chat/commit/cbc2fc8))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.60.2](https://github.com/lobehub/lobe-chat/compare/v0.60.1...v0.60.2)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2023-08-26**</sup>
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
[PluginErrorType.PluginApiParamsError]:
|
|
37
37
|
'很抱歉,该插件请求的入参校验未通过,请检查入参与 Api 描述信息是否匹配',
|
|
38
38
|
[PluginErrorType.PluginSettingsInvalid]:
|
|
39
|
-
'
|
|
39
|
+
'该插件需要正确配置后才可以使用,请检查你的配置是否正确',
|
|
40
40
|
|
|
41
41
|
[ChatErrorType.InvalidAccessCode]:
|
|
42
42
|
'密码不正确或为空,请输入正确的访问密码,或者添加自定义 OpenAI API Key',
|
|
@@ -28,9 +28,11 @@ type GlobalPersist = Pick<GlobalStore, 'preference' | 'settings'>;
|
|
|
28
28
|
|
|
29
29
|
const persistOptions: PersistOptions<GlobalStore, GlobalPersist> = {
|
|
30
30
|
merge: (persistedState, currentState) => {
|
|
31
|
+
const state = persistedState as GlobalPersist;
|
|
31
32
|
return {
|
|
32
33
|
...currentState,
|
|
33
|
-
|
|
34
|
+
...state,
|
|
35
|
+
settings: produce(state.settings, (draft) => {
|
|
34
36
|
if (!draft.defaultAgent) {
|
|
35
37
|
draft.defaultAgent = DEFAULT_AGENT;
|
|
36
38
|
}
|