From fe623e1acb32a5c119b87def43df2e4f000a64ec Mon Sep 17 00:00:00 2001 From: cklogic Date: Sat, 3 Feb 2024 00:24:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=92=84=20style:=20Update=20the=20gpt-?= =?UTF-8?q?4-1106-preview=20model=20to=20gpt-4-0125-preview=20(#1210)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Deployment/Docker-Deployment.md | 2 +- docs/Deployment/Docker-Deployment.zh-CN.md | 2 +- docs/Deployment/Environment-Variable.md | 4 ++-- docs/Deployment/Environment-Variable.zh-CN.md | 4 ++-- .../migrations/migrateSettingsToUser/fixtures/input.json | 2 +- .../migrations/migrateSettingsToUser/fixtures/output.json | 2 +- .../selectors/__snapshots__/modelProvider.test.ts.snap | 8 ++++---- .../slices/settings/selectors/modelProvider.test.ts | 8 ++++---- src/types/llm.ts | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/Deployment/Docker-Deployment.md b/docs/Deployment/Docker-Deployment.md index 3ba5c7ed3a14..7c9f93b5e6c7 100644 --- a/docs/Deployment/Docker-Deployment.md +++ b/docs/Deployment/Docker-Deployment.md @@ -81,7 +81,7 @@ First, create a `lobe.env` configuration file with various environment variables OPENAI_API_KEY=sk-xxxx OPENAI_PROXY_URL=https://api-proxy.com/v1 ACCESS_CODE=arthals2333 -CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-1106-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision +CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision ``` Then, you can use the following script to automatically update: diff --git a/docs/Deployment/Docker-Deployment.zh-CN.md b/docs/Deployment/Docker-Deployment.zh-CN.md index d798a68fe19c..1f66965eed6f 100644 --- a/docs/Deployment/Docker-Deployment.zh-CN.md +++ b/docs/Deployment/Docker-Deployment.zh-CN.md @@ -81,7 +81,7 @@ $ docker run -d -p 3210:3210 \ OPENAI_API_KEY=sk-xxxx OPENAI_PROXY_URL=https://api-proxy.com/v1 ACCESS_CODE=arthals2333 -CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-1106-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision +CUSTOM_MODELS=-gpt-4,-gpt-4-32k,-gpt-3.5-turbo-16k,gpt-3.5-turbo-1106=gpt-3.5-turbo-16k,gpt-4-0125-preview=gpt-4-turbo,gpt-4-vision-preview=gpt-4-vision ``` 然后,你可以使用以下脚本来自动更新: diff --git a/docs/Deployment/Environment-Variable.md b/docs/Deployment/Environment-Variable.md index 7af8923f0626..84e8ba7c1684 100644 --- a/docs/Deployment/Environment-Variable.md +++ b/docs/Deployment/Environment-Variable.md @@ -37,9 +37,9 @@ LobeChat provides additional configuration options during deployment, which can - Type: Optional - Description: Used to control the model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model, separated by commas. - Default: `-` -- Example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo` +- Example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo` -The above example adds `qwen-7b-chat` and `glm-6b` to the model list, removes `gpt-3.5-turbo` from the list, and displays the model name `gpt-4-1106-preview` as `gpt-4-turbo`. If you want to disable all models first and then enable specific models, you can use `-all,+gpt-3.5-turbo`, which means only `gpt-3.5-turbo` will be enabled. +The above example adds `qwen-7b-chat` and `glm-6b` to the model list, removes `gpt-3.5-turbo` from the list, and displays the model name `gpt-4-0125-preview` as `gpt-4-turbo`. If you want to disable all models first and then enable specific models, you can use `-all,+gpt-3.5-turbo`, which means only `gpt-3.5-turbo` will be enabled. ## OpenAI diff --git a/docs/Deployment/Environment-Variable.zh-CN.md b/docs/Deployment/Environment-Variable.zh-CN.md index a3e787d914a3..212eae9cc47d 100644 --- a/docs/Deployment/Environment-Variable.zh-CN.md +++ b/docs/Deployment/Environment-Variable.zh-CN.md @@ -37,9 +37,9 @@ LobeChat 在部署时提供了一些额外的配置项,使用环境变量进 - 类型:可选 - 描述:用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。 - 默认值:`-` -- 示例:`+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo` +- 示例:`+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo` -上面示例表示增加 `qwen-7b-chat` 和 `glm-6b` 到模型列表,而从列表中删除 `gpt-3.5-turbo`,并将 `gpt-4-1106-preview` 模型名字展示为 `gpt-4-turbo`。如果你想先禁用所有模型,再启用指定模型,可以使用 `-all,+gpt-3.5-turbo`,则表示仅启用 `gpt-3.5-turbo`。 +上面示例表示增加 `qwen-7b-chat` 和 `glm-6b` 到模型列表,而从列表中删除 `gpt-3.5-turbo`,并将 `gpt-4-0125-preview` 模型名字展示为 `gpt-4-turbo`。如果你想先禁用所有模型,再启用指定模型,可以使用 `-all,+gpt-3.5-turbo`,则表示仅启用 `gpt-3.5-turbo`。 ## OpenAI diff --git a/src/database/core/migrations/migrateSettingsToUser/fixtures/input.json b/src/database/core/migrations/migrateSettingsToUser/fixtures/input.json index 3ca07ed774bc..14087f9f5734 100644 --- a/src/database/core/migrations/migrateSettingsToUser/fixtures/input.json +++ b/src/database/core/migrations/migrateSettingsToUser/fixtures/input.json @@ -36,7 +36,7 @@ "gpt-3.5-turbo-16k", "gpt-4", "gpt-4-32k", - "gpt-4-1106-preview", + "gpt-4-0125-preview", "gpt-4-vision-preview" ], "customModelName": "+glm-4,+glm-4v", diff --git a/src/database/core/migrations/migrateSettingsToUser/fixtures/output.json b/src/database/core/migrations/migrateSettingsToUser/fixtures/output.json index a366875c6693..518c15c04680 100644 --- a/src/database/core/migrations/migrateSettingsToUser/fixtures/output.json +++ b/src/database/core/migrations/migrateSettingsToUser/fixtures/output.json @@ -39,7 +39,7 @@ "gpt-3.5-turbo-16k", "gpt-4", "gpt-4-32k", - "gpt-4-1106-preview", + "gpt-4-0125-preview", "gpt-4-vision-preview" ], "customModelName": "+glm-4,+glm-4v", diff --git a/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap b/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap index 629d8f577a54..cf2a0bae4cdb 100644 --- a/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap +++ b/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap @@ -12,7 +12,7 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > custom deletion, addition, and }, { "displayName": "gpt-4-32k", - "name": "gpt-4-1106-preview", + "name": "gpt-4-0125-preview", }, ] `; @@ -45,7 +45,7 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > duplicate naming model 1`] = ` }, { "displayName": "gpt-4-32k", - "name": "gpt-4-1106-preview", + "name": "gpt-4-0125-preview", }, ] `; @@ -73,8 +73,8 @@ exports[`modelProviderSelectors > CUSTOM_MODELS > only add the model 1`] = ` "name": "gpt-4-32k", }, { - "displayName": "gpt-4-1106-preview", - "name": "gpt-4-1106-preview", + "displayName": "gpt-4-0125-preview", + "name": "gpt-4-0125-preview", }, { "displayName": "gpt-4-vision-preview", diff --git a/src/store/global/slices/settings/selectors/modelProvider.test.ts b/src/store/global/slices/settings/selectors/modelProvider.test.ts index c045449e1e59..41e90a02780a 100644 --- a/src/store/global/slices/settings/selectors/modelProvider.test.ts +++ b/src/store/global/slices/settings/selectors/modelProvider.test.ts @@ -7,7 +7,7 @@ describe('modelProviderSelectors', () => { const s = { serverConfig: { customModelName: - '-all,+llama,+claude-2,-gpt-3.5-turbo,gpt-4-1106-preview=gpt-4-turbo,gpt-4-1106-preview=gpt-4-32k', + '-all,+llama,+claude-2,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo,gpt-4-0125-preview=gpt-4-32k', }, settings: { languageModel: { @@ -27,7 +27,7 @@ describe('modelProviderSelectors', () => { settings: { languageModel: { openAI: { - customModelName: 'gpt-4-1106-preview=gpt-4-turbo,gpt-4-1106-preview=gpt-4-32k', + customModelName: 'gpt-4-0125-preview=gpt-4-turbo,gpt-4-0125-preview=gpt-4-32k', }, }, }, @@ -70,8 +70,8 @@ describe('modelProviderSelectors', () => { name: 'gpt-4-32k', }, { - displayName: 'gpt-4-1106-preview', - name: 'gpt-4-1106-preview', + displayName: 'gpt-4-0125-preview', + name: 'gpt-4-0125-preview', }, { displayName: 'gpt-4-vision-preview', diff --git a/src/types/llm.ts b/src/types/llm.ts index dba33c2ef6c7..6a0ae4f7e893 100644 --- a/src/types/llm.ts +++ b/src/types/llm.ts @@ -13,7 +13,7 @@ export enum LanguageModel { */ GPT4 = 'gpt-4', GPT4_32K = 'gpt-4-32k', - GPT4_PREVIEW = 'gpt-4-1106-preview', + GPT4_PREVIEW = 'gpt-4-0125-preview', GPT4_VISION_PREVIEW = 'gpt-4-vision-preview', } From 0f64694fb6f67eff5f689e05f9b56474162778e3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 2 Feb 2024 16:26:37 +0000 Subject: [PATCH 2/3] :bookmark: chore(release): v0.122.7 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [Version 0.122.7](https://github.com/lobehub/lobe-chat/compare/v0.122.6...v0.122.7) Released on **2024-02-02** #### 💄 Styles - **misc**: Update the gpt-4-1106-preview model to gpt-4-0125-preview.
Improvements and Fixes #### Styles * **misc**: Update the gpt-4-1106-preview model to gpt-4-0125-preview, closes [#1210](https://github.com/lobehub/lobe-chat/issues/1210) ([fe623e1](https://github.com/lobehub/lobe-chat/commit/fe623e1))
[![](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 175d9af5fceb..f2b1b4c28768 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ # Changelog +### [Version 0.122.7](https://github.com/lobehub/lobe-chat/compare/v0.122.6...v0.122.7) + +Released on **2024-02-02** + +#### 💄 Styles + +- **misc**: Update the gpt-4-1106-preview model to gpt-4-0125-preview. + +
+ +
+Improvements and Fixes + +#### Styles + +- **misc**: Update the gpt-4-1106-preview model to gpt-4-0125-preview, closes [#1210](https://github.com/lobehub/lobe-chat/issues/1210) ([fe623e1](https://github.com/lobehub/lobe-chat/commit/fe623e1)) + +
+ +
+ +[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) + +
+ ### [Version 0.122.6](https://github.com/lobehub/lobe-chat/compare/v0.122.5...v0.122.6) Released on **2024-01-31** diff --git a/package.json b/package.json index f46934ed5e62..b7e94a2e20fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lobehub/chat", - "version": "0.122.6", + "version": "0.122.7", "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 2b720c2694c874e2aec7eb6f45be84a53e28d7a4 Mon Sep 17 00:00:00 2001 From: lobehubbot Date: Fri, 2 Feb 2024 16:27:10 +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 --- README.md | 16 ++++++++-------- README.zh-CN.md | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b2f9655665b0..beba6338ad83 100644 --- a/README.md +++ b/README.md @@ -186,14 +186,14 @@ e-commerce platform data access, and various third-party services. -| Recent Submits | Description | -| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [TokenInsights](https://chat-preview.lobehub.com/settings/agent)
By **feednews** on **2024-01-27** | Get realtime crypto price, BTC, ETH, BNB, and the latest insights.The latest coin news and airdrop opportunities.
`crypto` `btc` `eth` `bnb` | -| [Bilibili](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | Dive into Bilibili's vast content with features like keyword video search, replay access, interactive danmaku, trending video recommendations, and hot-search insights, all at your fingertips.
`video` `bilibili` `search` | -| [Steam](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | Obtain game information and user reviews from Steam.
`steam` `game` | -| [Current Time Assistant](https://chat-preview.lobehub.com/settings/agent)
By **cc** on **2024-01-26** | A plugin to provide current time information
`time` | - -> 📊 Total plugins: [**60**](https://github.com/lobehub/lobe-chat-plugins) +| Recent Submits | Description | +| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Social Search](https://chat-preview.lobehub.com/settings/agent)
By **say-apps** on **2024-02-02** | The Social Search provides access to tweets, users, followers, images, media and more.
`social` `twitter` `x` `search` | +| [TokenInsights](https://chat-preview.lobehub.com/settings/agent)
By **feednews** on **2024-01-27** | Get realtime crypto price, BTC, ETH, BNB, and the latest insights.The latest coin news and airdrop opportunities.
`crypto` `btc` `eth` `bnb` | +| [Bilibili](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | Dive into Bilibili's vast content with features like keyword video search, replay access, interactive danmaku, trending video recommendations, and hot-search insights, all at your fingertips.
`video` `bilibili` `search` | +| [Steam](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | Obtain game information and user reviews from Steam.
`steam` `game` | + +> 📊 Total plugins: [**61**](https://github.com/lobehub/lobe-chat-plugins) diff --git a/README.zh-CN.md b/README.zh-CN.md index c2621b244f6c..89a1e3a67550 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -172,12 +172,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地 | 最近新增 | 插件描述 | | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| [社交搜索](https://chat-preview.lobehub.com/settings/agent)
By **say-apps** on **2024-02-02** | 社交搜索提供访问推文、用户、关注者、图片、媒体等功能。
`社交` `推特` `x` `搜索` | | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)
By **feednews** on **2024-01-27** | 获取实时加密货币价格,BTC,ETH,BNB 和最新见解。最新的币新闻和空投机会。
`加密货币` `btc` `eth` `bnb` | | [哔哩哔哩](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | 通过关键词视频搜索、回放访问、互动弹幕、热门视频推荐和热搜洞察等功能,深入体验哔哩哔哩丰富的内容,尽在您的指尖。
`视频` `哔哩哔哩` `搜索` | | [Steam](https://chat-preview.lobehub.com/settings/agent)
By **LobeHub** on **2024-01-27** | 从 Steam 获取游戏信息和用户评论。
`steam` `game` | -| [当前时间助手](https://chat-preview.lobehub.com/settings/agent)
By **cc** on **2024-01-26** | 提供当前时间信息的插件
`时间` | -> 📊 Total plugins: [**60**](https://github.com/lobehub/lobe-chat-plugins) +> 📊 Total plugins: [**61**](https://github.com/lobehub/lobe-chat-plugins)