@lobehub/chat 1.36.41 → 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 CHANGED
@@ -2,6 +2,31 @@
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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 1.36.41](https://github.com/lobehub/lobe-chat/compare/v1.36.40...v1.36.41)
6
31
 
7
32
  <sup>Released on **2024-12-21**</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>**48**</kbd>](https://lobechat.com/discover/plugins)
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>**48**</kbd>](https://lobechat.com/discover/plugins)
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>**48**</kbd>](https://lobechat.com/discover/plugins)
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,13 @@
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
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.36.41",
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",
@@ -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,