@lobehub/chat 0.107.6 → 0.107.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 CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.107.7](https://github.com/lobehub/lobe-chat/compare/v0.107.6...v0.107.7)
6
+
7
+ <sup>Released on **2023-11-30**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Improve plugin message display.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Improve plugin message display ([208200a](https://github.com/lobehub/lobe-chat/commit/208200a))
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.107.6](https://github.com/lobehub/lobe-chat/compare/v0.107.5...v0.107.6)
6
31
 
7
32
  <sup>Released on **2023-11-30**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.107.6",
3
+ "version": "0.107.7",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -274,7 +274,7 @@ export const chatMessage: StateCreator<
274
274
  }
275
275
 
276
276
  await refreshMessages();
277
- triggerFunctionCall(functionId);
277
+ await triggerFunctionCall(functionId);
278
278
  }
279
279
  },
280
280
  dispatchMessage: (payload) => {
@@ -79,16 +79,17 @@ export const chatPlugin: StateCreator<
79
79
  identifier,
80
80
  type: (type ?? 'default') as any,
81
81
  };
82
-
83
- await messageService.updateMessageContent(id, '');
84
- await refreshMessages();
85
82
  } else {
86
83
  if (message.plugin) payload = message.plugin;
87
84
  }
88
85
 
89
86
  if (!payload.apiName) return;
90
87
 
91
- await messageService.updateMessage(id, { plugin: payload, role: 'function' });
88
+ await messageService.updateMessage(id, {
89
+ content: !!message.content ? '' : undefined,
90
+ plugin: payload,
91
+ role: 'function',
92
+ });
92
93
  await refreshMessages();
93
94
 
94
95
  if (payload.type === 'standalone') {