@lobehub/chat 0.122.4 → 0.122.5
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/package.json +1 -1
- package/src/store/chat/slices/tool/action.ts +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.122.5](https://github.com/lobehub/lobe-chat/compare/v0.122.4...v0.122.5)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-01-31**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: The plugin has a hallucination and gets stuck.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: The plugin has a hallucination and gets stuck, closes [#1191](https://github.com/lobehub/lobe-chat/issues/1191) ([0189759](https://github.com/lobehub/lobe-chat/commit/0189759))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.122.4](https://github.com/lobehub/lobe-chat/compare/v0.122.3...v0.122.4)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-01-30**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.5",
|
|
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",
|
|
@@ -177,6 +177,8 @@ export const chatPlugin: StateCreator<
|
|
|
177
177
|
invokeStandaloneTypePlugin,
|
|
178
178
|
invokeBuiltinTool,
|
|
179
179
|
refreshMessages,
|
|
180
|
+
resendMessage,
|
|
181
|
+
deleteMessage,
|
|
180
182
|
} = get();
|
|
181
183
|
|
|
182
184
|
let payload = { apiName: '', identifier: '' } as ChatPluginPayload;
|
|
@@ -199,6 +201,13 @@ export const chatPlugin: StateCreator<
|
|
|
199
201
|
type: (type ?? 'default') as any,
|
|
200
202
|
};
|
|
201
203
|
|
|
204
|
+
// fix https://github.com/lobehub/lobe-chat/issues/1094, remove and retry after experiencing plugin illusion
|
|
205
|
+
if (!apiName) {
|
|
206
|
+
resendMessage(id);
|
|
207
|
+
deleteMessage(id);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
|
|
202
211
|
// if the apiName is md5, try to find the correct apiName in the plugins
|
|
203
212
|
if (apiName.startsWith(PLUGIN_SCHEMA_API_MD5_PREFIX)) {
|
|
204
213
|
const md5 = apiName.replace(PLUGIN_SCHEMA_API_MD5_PREFIX, '');
|