diff --git a/CHANGELOG.md b/CHANGELOG.md index 96416b546a32..f89096d2b4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ # Changelog +### [Version 1.45.15](https://github.com/lobehub/lobe-chat/compare/v1.45.14...v1.45.15) + +Released on **2025-01-14** + +#### 🐛 Bug Fixes + +- **misc**: Fix pull models error in new ai provider. + +
+ +
+Improvements and Fixes + +#### What's fixed + +- **misc**: Fix pull models error in new ai provider, closes [#5441](https://github.com/lobehub/lobe-chat/issues/5441) ([1726d85](https://github.com/lobehub/lobe-chat/commit/1726d85)) + +
+ +
+ +[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) + +
+ ### [Version 1.45.14](https://github.com/lobehub/lobe-chat/compare/v1.45.13...v1.45.14) Released on **2025-01-14** diff --git a/changelog/v1.json b/changelog/v1.json index af0545265cac..e62b0341eb96 100644 --- a/changelog/v1.json +++ b/changelog/v1.json @@ -1,4 +1,9 @@ [ + { + "children": {}, + "date": "2025-01-14", + "version": "1.45.14" + }, { "children": { "improvements": ["Improve model config form modal."] diff --git a/package.json b/package.json index e59fcbfd3411..9a39e46ae658 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lobehub/chat", - "version": "1.45.14", + "version": "1.45.15", "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", diff --git a/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts b/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts index 111b3bf42afb..e2b70de94997 100644 --- a/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +++ b/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts @@ -281,6 +281,7 @@ export const LobeOpenAICompatibleFactory = = any> const toReleasedAt = () => { if (!item.created) return; + dayjs.extend(utc); // guarantee item.created in Date String format if ( @@ -299,8 +300,6 @@ export const LobeOpenAICompatibleFactory = = any> const knownModel = LOBE_DEFAULT_MODEL_LIST.find((model) => model.id === item.id); if (knownModel) { - dayjs.extend(utc); - const releasedAt = knownModel.releasedAt ?? toReleasedAt(); return { ...knownModel, releasedAt };