From abc80dcfd900620d5d50a852bf57cce380b88aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B4=E7=B1=B3=E6=B2=B9=E7=9B=90=E7=9A=84=E6=A2=A6?= =?UTF-8?q?=E6=83=B3?= <107172917+chai-mi@users.noreply.github.com> Date: Sat, 21 Dec 2024 14:38:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20HUGGINGFACE=20e?= =?UTF-8?q?ndpoint=20url=20(#5099)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libs/agent-runtime/huggingface/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/agent-runtime/huggingface/index.ts b/src/libs/agent-runtime/huggingface/index.ts index b31a12b1af27..552652f9470a 100644 --- a/src/libs/agent-runtime/huggingface/index.ts +++ b/src/libs/agent-runtime/huggingface/index.ts @@ -1,4 +1,5 @@ import { HfInference } from '@huggingface/inference'; +import urlJoin from 'url-join'; import { AgentRuntimeErrorType } from '../error'; import { ModelProvider } from '../types'; @@ -23,7 +24,9 @@ export const LobeHuggingFaceAI = LobeOpenAICompatibleFactory({ createChatCompletionStream: (client: HfInference, payload, instance) => { const { max_tokens = 4096} = payload; const hfRes = client.chatCompletionStream({ - endpointUrl: instance.baseURL, + endpointUrl: instance.baseURL + ? urlJoin(instance.baseURL, payload.model) + : instance.baseURL, max_tokens: max_tokens, messages: payload.messages, model: payload.model, From 4e53a69337da632a46ac0e05d2dcd6dc9af58310 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 21 Dec 2024 06:45:53 +0000 Subject: [PATCH 2/3] :bookmark: chore(release): v1.36.42 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [Version 1.36.42](https://github.com/lobehub/lobe-chat/compare/v1.36.41...v1.36.42) Released on **2024-12-21** #### 🐛 Bug Fixes - **misc**: Fix HUGGINGFACE endpoint url.
Improvements and Fixes #### What's fixed * **misc**: Fix HUGGINGFACE endpoint url, closes [#5099](https://github.com/lobehub/lobe-chat/issues/5099) ([abc80dc](https://github.com/lobehub/lobe-chat/commit/abc80dc))
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
--- CHANGELOG.md | 25 +++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9467b22a8210..16e54d885ae3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ # Changelog +### [Version 1.36.42](https://github.com/lobehub/lobe-chat/compare/v1.36.41...v1.36.42) + +Released on **2024-12-21** + +#### 🐛 Bug Fixes + +- **misc**: Fix HUGGINGFACE endpoint url. + +
+ +
+Improvements and Fixes + +#### What's fixed + +- **misc**: Fix HUGGINGFACE endpoint url, closes [#5099](https://github.com/lobehub/lobe-chat/issues/5099) ([abc80dc](https://github.com/lobehub/lobe-chat/commit/abc80dc)) + +
+ +
+ +[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) + +
+ ### [Version 1.36.41](https://github.com/lobehub/lobe-chat/compare/v1.36.40...v1.36.41) Released on **2024-12-21** diff --git a/package.json b/package.json index f1e2c16031a5..fd4dce7ed549 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lobehub/chat", - "version": "1.36.41", + "version": "1.36.42", "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.", "keywords": [ "framework", From 84f30848a7d1f50f5e70277607739b83f7ae0d2b Mon Sep 17 00:00:00 2001 From: lobehubbot Date: Sat, 21 Dec 2024 06:46:48 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9D=20docs(bot):=20Auto=20sync=20a?= =?UTF-8?q?gents=20&=20plugin=20to=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog/v1.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/changelog/v1.json b/changelog/v1.json index 26d6fa80e951..45535a76dcc3 100644 --- a/changelog/v1.json +++ b/changelog/v1.json @@ -1,4 +1,11 @@ [ + { + "children": { + "fixes": ["Fix HUGGINGFACE endpoint url."] + }, + "date": "2024-12-21", + "version": "1.36.42" + }, { "children": { "improvements": ["Upgrade react scan."]