@lobehub/chat 0.54.3 → 0.54.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 CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.54.4](https://github.com/lobehub/lobe-chat/compare/v0.54.3...v0.54.4)
6
+
7
+ <sup>Released on **2023-08-21**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix not cannot change setting error.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix not cannot change setting error, closes [#86](https://github.com/lobehub/lobe-chat/issues/86) ([6405c28](https://github.com/lobehub/lobe-chat/commit/6405c28))
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.54.3](https://github.com/lobehub/lobe-chat/compare/v0.54.2...v0.54.3)
6
31
 
7
32
  <sup>Released on **2023-08-21**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.54.3",
3
+ "version": "0.54.4",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -52,7 +52,7 @@ export const createAgentSlice: StateCreator<
52
52
  setAgentConfig: (config) => {
53
53
  const settings = produce(get().settings, (draft: GlobalSettings) => {
54
54
  const oldConfig = draft.defaultAgent.config as LobeAgentConfig;
55
- draft.defaultAgent.config = merge(oldConfig, config);
55
+ draft.defaultAgent.config = merge({}, oldConfig, config);
56
56
  });
57
57
 
58
58
  set({ settings }, false, t('setAgentConfig', config));
@@ -60,7 +60,7 @@ export const createAgentSlice: StateCreator<
60
60
  setAgentMeta: (meta) => {
61
61
  const settings = produce(get().settings, (draft) => {
62
62
  const oldMeta = draft.defaultAgent.meta as MetaData;
63
- draft.defaultAgent.meta = merge(oldMeta, meta);
63
+ draft.defaultAgent.meta = merge({}, oldMeta, meta);
64
64
  });
65
65
 
66
66
  set({ settings }, false, t('setAgentMeta', meta));
@@ -61,7 +61,7 @@ export const createSettingsSlice: StateCreator<
61
61
 
62
62
  setSettings: (settings) => {
63
63
  const oldSetting = get().settings;
64
- set({ settings: merge(oldSetting, settings) }, false, t('setSettings', settings));
64
+ set({ settings: merge({}, oldSetting, settings) }, false, t('setSettings', settings));
65
65
  },
66
66
  switchThemeMode: (themeMode) => {
67
67
  get().setSettings({ themeMode });