@lobehub/chat 1.2.7 → 1.2.8

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 1.2.8](https://github.com/lobehub/lobe-chat/compare/v1.2.7...v1.2.8)
6
+
7
+ <sup>Released on **2024-07-03**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Allow builtin tools to trigger AI message.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Allow builtin tools to trigger AI message, closes [#3135](https://github.com/lobehub/lobe-chat/issues/3135) ([6c4c8f7](https://github.com/lobehub/lobe-chat/commit/6c4c8f7))
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 1.2.7](https://github.com/lobehub/lobe-chat/compare/v1.2.6...v1.2.7)
6
31
 
7
32
  <sup>Released on **2024-07-03**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
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",
@@ -106,7 +106,7 @@
106
106
  "@azure/openai": "1.0.0-beta.12",
107
107
  "@cfworker/json-schema": "^1.12.8",
108
108
  "@clerk/localizations": "2.0.0",
109
- "@clerk/nextjs": "^5.1.6",
109
+ "@clerk/nextjs": "5.1.6",
110
110
  "@clerk/themes": "^2.1.10",
111
111
  "@google/generative-ai": "^0.13.0",
112
112
  "@icons-pack/react-simple-icons": "^9.5.0",
@@ -117,7 +117,7 @@ export const chatPlugin: StateCreator<
117
117
 
118
118
  if (!content) return;
119
119
 
120
- await action(id, content);
120
+ return await action(id, content);
121
121
  },
122
122
 
123
123
  invokeDefaultTypePlugin: async (id, payload) => {
@@ -220,7 +220,7 @@ export const chatPlugin: StateCreator<
220
220
  // trigger the plugin call
221
221
  const data = await get().internal_invokeDifferentTypePlugin(id, payload);
222
222
 
223
- if (payload.type === 'default' && data) {
223
+ if ((payload.type === 'default' || payload.type === 'builtin') && data) {
224
224
  shouldCreateMessage = true;
225
225
  latestToolId = id;
226
226
  }