@lobehub/chat 1.36.40 → 1.36.42
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 +50 -0
- package/README.ja-JP.md +1 -1
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/changelog/v1.json +18 -0
- package/next.config.mjs +6 -0
- package/package.json +2 -2
- package/src/components/Analytics/ReactScan.tsx +1 -1
- package/src/libs/agent-runtime/huggingface/index.ts +4 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.36.42](https://github.com/lobehub/lobe-chat/compare/v1.36.41...v1.36.42)
|
6
|
+
|
7
|
+
<sup>Released on **2024-12-21**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix HUGGINGFACE endpoint url.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix HUGGINGFACE endpoint url, closes [#5099](https://github.com/lobehub/lobe-chat/issues/5099) ([abc80dc](https://github.com/lobehub/lobe-chat/commit/abc80dc))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.36.41](https://github.com/lobehub/lobe-chat/compare/v1.36.40...v1.36.41)
|
31
|
+
|
32
|
+
<sup>Released on **2024-12-21**</sup>
|
33
|
+
|
34
|
+
#### ♻ Code Refactoring
|
35
|
+
|
36
|
+
- **misc**: Upgrade react scan.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### Code refactoring
|
44
|
+
|
45
|
+
- **misc**: Upgrade react scan, closes [#5104](https://github.com/lobehub/lobe-chat/issues/5104) ([eed69dd](https://github.com/lobehub/lobe-chat/commit/eed69dd))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.36.40](https://github.com/lobehub/lobe-chat/compare/v1.36.39...v1.36.40)
|
6
56
|
|
7
57
|
<sup>Released on **2024-12-20**</sup>
|
package/README.ja-JP.md
CHANGED
@@ -270,7 +270,7 @@ LobeChat のプラグインエコシステムは、そのコア機能の重要
|
|
270
270
|
| [Tongyi Wanxiang 画像生成器](https://lobechat.com/discover/plugin/alps-tongyi-image)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | このプラグインは、Alibaba の Tongyi Wanxiang モデルを使用して、テキストプロンプトに基づいて画像を生成します。<br/>`画像` `トンギ` `ワンシャン` |
|
271
271
|
| [ショッピングツール](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | eBay や AliExpress で商品を検索し、eBay のイベントやクーポンを見つけます。迅速な例を取得します。<br/>`ショッピング` `e-bay` `ali-express` `クーポン` |
|
272
272
|
|
273
|
-
> 📊 Total plugins: [<kbd>**
|
273
|
+
> 📊 Total plugins: [<kbd>**47**</kbd>](https://lobechat.com/discover/plugins)
|
274
274
|
|
275
275
|
<!-- PLUGIN LIST -->
|
276
276
|
|
package/README.md
CHANGED
@@ -287,7 +287,7 @@ In addition, these plugins are not limited to news aggregation, but can also ext
|
|
287
287
|
| [Tongyi wanxiang Image Generator](https://lobechat.com/discover/plugin/alps-tongyi-image)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | This plugin uses Alibaba's Tongyi Wanxiang model to generate images based on text prompts.<br/>`image` `tongyi` `wanxiang` |
|
288
288
|
| [Shopping tools](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | Search for products on eBay & AliExpress, find eBay events & coupons. Get prompt examples.<br/>`shopping` `e-bay` `ali-express` `coupons` |
|
289
289
|
|
290
|
-
> 📊 Total plugins: [<kbd>**
|
290
|
+
> 📊 Total plugins: [<kbd>**47**</kbd>](https://lobechat.com/discover/plugins)
|
291
291
|
|
292
292
|
<!-- PLUGIN LIST -->
|
293
293
|
|
package/README.zh-CN.md
CHANGED
@@ -280,7 +280,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
280
280
|
| [通义万象图像生成器](https://lobechat.com/discover/plugin/alps-tongyi-image)<br/><sup>By **YoungTx** on **2024-08-09**</sup> | 此插件使用阿里巴巴的通义万象模型根据文本提示生成图像。<br/>`图像` `通义` `万象` |
|
281
281
|
| [购物工具](https://lobechat.com/discover/plugin/ShoppingTools)<br/><sup>By **shoppingtools** on **2024-07-19**</sup> | 在 eBay 和 AliExpress 上搜索产品,查找 eBay 活动和优惠券。获取快速示例。<br/>`购物` `e-bay` `ali-express` `优惠券` |
|
282
282
|
|
283
|
-
> 📊 Total plugins: [<kbd>**
|
283
|
+
> 📊 Total plugins: [<kbd>**47**</kbd>](https://lobechat.com/discover/plugins)
|
284
284
|
|
285
285
|
<!-- PLUGIN LIST -->
|
286
286
|
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Fix HUGGINGFACE endpoint url."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2024-12-21",
|
9
|
+
"version": "1.36.42"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"improvements": [
|
14
|
+
"Upgrade react scan."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2024-12-21",
|
18
|
+
"version": "1.36.41"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"improvements": [
|
package/next.config.mjs
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
import analyzer from '@next/bundle-analyzer';
|
2
2
|
import { withSentryConfig } from '@sentry/nextjs';
|
3
3
|
import withSerwistInit from '@serwist/next';
|
4
|
+
import ReactComponentName from 'react-scan/react-component-name/webpack';
|
4
5
|
|
5
6
|
const isProd = process.env.NODE_ENV === 'production';
|
6
7
|
const buildWithDocker = process.env.DOCKER === 'true';
|
8
|
+
const enableReactScan = !!process.env.REACT_SCAN_MONITOR_API_KEY;
|
7
9
|
|
8
10
|
// if you need to proxy the api endpoint to remote server
|
9
11
|
const API_PROXY_ENDPOINT = process.env.API_PROXY_ENDPOINT || '';
|
@@ -178,6 +180,10 @@ const nextConfig = {
|
|
178
180
|
layers: true,
|
179
181
|
};
|
180
182
|
|
183
|
+
if (enableReactScan) {
|
184
|
+
config.plugins.push(ReactComponentName({}));
|
185
|
+
}
|
186
|
+
|
181
187
|
// to fix shikiji compile error
|
182
188
|
// refs: https://github.com/antfu/shikiji/issues/23
|
183
189
|
config.module.rules.push({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.36.
|
3
|
+
"version": "1.36.42",
|
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",
|
@@ -202,7 +202,7 @@
|
|
202
202
|
"react-layout-kit": "^1.9.0",
|
203
203
|
"react-lazy-load": "^4.0.1",
|
204
204
|
"react-pdf": "^9.2.1",
|
205
|
-
"react-scan": "^0.0.
|
205
|
+
"react-scan": "^0.0.51",
|
206
206
|
"react-virtuoso": "^4.12.0",
|
207
207
|
"react-wrap-balancer": "^1.1.1",
|
208
208
|
"remark": "^14.0.3",
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { HfInference } from '@huggingface/inference';
|
2
|
+
import urlJoin from 'url-join';
|
2
3
|
|
3
4
|
import { AgentRuntimeErrorType } from '../error';
|
4
5
|
import { ModelProvider } from '../types';
|
@@ -23,7 +24,9 @@ export const LobeHuggingFaceAI = LobeOpenAICompatibleFactory({
|
|
23
24
|
createChatCompletionStream: (client: HfInference, payload, instance) => {
|
24
25
|
const { max_tokens = 4096} = payload;
|
25
26
|
const hfRes = client.chatCompletionStream({
|
26
|
-
endpointUrl: instance.baseURL
|
27
|
+
endpointUrl: instance.baseURL
|
28
|
+
? urlJoin(instance.baseURL, payload.model)
|
29
|
+
: instance.baseURL,
|
27
30
|
max_tokens: max_tokens,
|
28
31
|
messages: payload.messages,
|
29
32
|
model: payload.model,
|