@lobehub/chat 0.64.1 → 0.65.0

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.65.0](https://github.com/lobehub/lobe-chat/compare/v0.64.1...v0.65.0)
6
+
7
+ <sup>Released on **2023-08-29**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: 支持本地插件自定义 gateway.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: 支持本地插件自定义 gateway, closes [#129](https://github.com/lobehub/lobe-chat/issues/129) ([770048a](https://github.com/lobehub/lobe-chat/commit/770048a))
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.64.1](https://github.com/lobehub/lobe-chat/compare/v0.64.0...v0.64.1)
6
31
 
7
32
  <sup>Released on **2023-08-29**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.64.1",
3
+ "version": "0.65.0",
4
4
  "description": "Lobe Chat is an open-source chatbot client using LangChain, Typescript and Next.js",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -66,8 +66,8 @@
66
66
  "@emoji-mart/data": "^1",
67
67
  "@emoji-mart/react": "^1",
68
68
  "@icons-pack/react-simple-icons": "^9",
69
- "@lobehub/chat-plugin-sdk": "latest",
70
- "@lobehub/chat-plugins-gateway": "latest",
69
+ "@lobehub/chat-plugin-sdk": "^1.13.0",
70
+ "@lobehub/chat-plugins-gateway": "^1.5.0",
71
71
  "@lobehub/ui": "latest",
72
72
  "@vercel/analytics": "^1",
73
73
  "ahooks": "^3",
@@ -6,4 +6,4 @@ export const config = {
6
6
  runtime: 'edge',
7
7
  };
8
8
 
9
- export default createLobeChatPluginGateway(PLUGINS_INDEX_URL);
9
+ export default createLobeChatPluginGateway({ pluginsIndexUrl: PLUGINS_INDEX_URL });
@@ -22,7 +22,9 @@ export const fetchPlugin = async (
22
22
  const settings = pluginSelectors.getPluginSettingsById(params.identifier)(s);
23
23
  const manifest = pluginSelectors.getPluginManifestById(params.identifier)(s);
24
24
 
25
- const res = await fetch(URLS.plugins, {
25
+ const gatewayURL = manifest?.gateway;
26
+
27
+ const res = await fetch(gatewayURL ?? URLS.plugins, {
26
28
  body: JSON.stringify({ ...params, manifest }),
27
29
  headers: createHeadersWithPluginSettings(settings),
28
30
  method: 'POST',