@lobehub/chat 0.115.7 → 0.115.8
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 0.115.8](https://github.com/lobehub/lobe-chat/compare/v0.115.7...v0.115.8)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-12-24**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix CUSTOM_MODEL `-` operator not working.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix CUSTOM_MODEL `-` operator not working, closes [#791](https://github.com/lobehub/lobe-chat/issues/791) ([26b968f](https://github.com/lobehub/lobe-chat/commit/26b968f))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.115.7](https://github.com/lobehub/lobe-chat/compare/v0.115.6...v0.115.7)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-12-23**</sup>
|
package/README.md
CHANGED
|
@@ -206,14 +206,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
206
206
|
|
|
207
207
|
<!-- AGENT LIST -->
|
|
208
208
|
|
|
209
|
-
| Recent Submits | Description
|
|
210
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
211
|
-
| [Facebook Ads Expert](https://chat-preview.lobehub.com/market?agent=facebook-ads-expert)<br/><sup>By **[alissonryan](https://github.com/alissonryan)** on **2023-12-20**</sup> | Create a Facebook Ads with a expert<br/>`copywriting` `facebook-ads` `lead-generation`
|
|
212
|
-
| [Dream Painter](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A dream artist who can bring your dreams into reality.<br/>`txt-2-img` `painter`
|
|
213
|
-
| [
|
|
214
|
-
| [
|
|
215
|
-
|
|
216
|
-
> 📊 Total agents: [<kbd>**
|
|
209
|
+
| Recent Submits | Description |
|
|
210
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
211
|
+
| [Facebook Ads Expert](https://chat-preview.lobehub.com/market?agent=facebook-ads-expert)<br/><sup>By **[alissonryan](https://github.com/alissonryan)** on **2023-12-20**</sup> | Create a Facebook Ads with a expert<br/>`copywriting` `facebook-ads` `lead-generation` |
|
|
212
|
+
| [Dream Painter](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A dream artist who can bring your dreams into reality.<br/>`txt-2-img` `painter` |
|
|
213
|
+
| [News Hub](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | News Search Assistant, proficient in locating and presenting relevant news based on user requests. Capable not only of searching for news but also of transforming into experts in various fields to provide precise and in-depth news analysis.<br/>`news` `search` `helper` |
|
|
214
|
+
| [Research Assistant](https://chat-preview.lobehub.com/market?agent=research-assistant)<br/><sup>By **[ccsen](https://github.com/ccsen)** on **2023-12-19**</sup> | Capable of answering questions, conducting research, drafting content, and more, utilizing scientific research papers.<br/>`research-assistant` `literature-retrieval` `writing` `scientific-research` `citation` |
|
|
215
|
+
|
|
216
|
+
> 📊 Total agents: [<kbd>**77**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
217
217
|
|
|
218
218
|
<!-- AGENT LIST -->
|
|
219
219
|
|
package/README.zh-CN.md
CHANGED
|
@@ -183,14 +183,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
183
183
|
|
|
184
184
|
<!-- AGENT LIST -->
|
|
185
185
|
|
|
186
|
-
| 最近新增 | 助手说明
|
|
187
|
-
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
188
|
-
| [Facebook 广告专家](https://chat-preview.lobehub.com/market?agent=facebook-ads-expert)<br/><sup>By **[alissonryan](https://github.com/alissonryan)** on **2023-12-20**</sup> | 与专家一起创建 Facebook 广告<br/>`文案撰写` `facebook广告` `潜在客户生成`
|
|
189
|
-
| [梦境画家](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一位能将你的梦想变成现实的梦境艺术家。<br/>`txt-2-img` `painter`
|
|
190
|
-
| [
|
|
191
|
-
| [
|
|
192
|
-
|
|
193
|
-
> 📊 Total agents: [<kbd>**
|
|
186
|
+
| 最近新增 | 助手说明 |
|
|
187
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
188
|
+
| [Facebook 广告专家](https://chat-preview.lobehub.com/market?agent=facebook-ads-expert)<br/><sup>By **[alissonryan](https://github.com/alissonryan)** on **2023-12-20**</sup> | 与专家一起创建 Facebook 广告<br/>`文案撰写` `facebook广告` `潜在客户生成` |
|
|
189
|
+
| [梦境画家](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一位能将你的梦想变成现实的梦境艺术家。<br/>`txt-2-img` `painter` |
|
|
190
|
+
| [新闻搜索助手](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 新闻搜索助手,精通根据用户需求查找和呈现相关新闻。不仅能够搜索新闻,还可以根据用户的要求转变为不同领域的专家,提供精确深入的新闻解读<br/>`新闻` `搜索` `助手` |
|
|
191
|
+
| [研究助理](https://chat-preview.lobehub.com/market?agent=research-assistant)<br/><sup>By **[ccsen](https://github.com/ccsen)** on **2023-12-19**</sup> | 能够回答问题,进行研究,起草内容等,利用科学研究论文。<br/>`research-assistant` `literature-retrieval` `writing` `scientific-research` `citation` |
|
|
192
|
+
|
|
193
|
+
> 📊 Total agents: [<kbd>**77**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
194
194
|
|
|
195
195
|
<!-- AGENT LIST -->
|
|
196
196
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.115.
|
|
3
|
+
"version": "0.115.8",
|
|
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",
|
|
@@ -94,6 +94,48 @@ describe('settingsSelectors', () => {
|
|
|
94
94
|
expect(result).toMatchSnapshot();
|
|
95
95
|
});
|
|
96
96
|
|
|
97
|
+
it('should delete model', () => {
|
|
98
|
+
const s = {
|
|
99
|
+
serverConfig: {
|
|
100
|
+
customModelName: '-gpt-4',
|
|
101
|
+
},
|
|
102
|
+
settings: {
|
|
103
|
+
languageModel: {
|
|
104
|
+
openAI: {},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
} as unknown as GlobalStore;
|
|
108
|
+
|
|
109
|
+
const result = settingsSelectors.modelList(s);
|
|
110
|
+
|
|
111
|
+
expect(result).toEqual([
|
|
112
|
+
{
|
|
113
|
+
displayName: 'gpt-3.5-turbo',
|
|
114
|
+
name: 'gpt-3.5-turbo',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'gpt-3.5-turbo-1106',
|
|
118
|
+
name: 'gpt-3.5-turbo-1106',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
displayName: 'gpt-3.5-turbo-16k',
|
|
122
|
+
name: 'gpt-3.5-turbo-16k',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'gpt-4-32k',
|
|
126
|
+
name: 'gpt-4-32k',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'gpt-4-1106-preview',
|
|
130
|
+
name: 'gpt-4-1106-preview',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'gpt-4-vision-preview',
|
|
134
|
+
name: 'gpt-4-vision-preview',
|
|
135
|
+
},
|
|
136
|
+
]);
|
|
137
|
+
});
|
|
138
|
+
|
|
97
139
|
it('only add the model', () => {
|
|
98
140
|
const s = {
|
|
99
141
|
serverConfig: {},
|
|
@@ -31,6 +31,7 @@ const openAIProxyUrlSelectors = (s: GlobalStore) => s.settings.languageModel.ope
|
|
|
31
31
|
const modelListSelectors = (s: GlobalStore) => {
|
|
32
32
|
let models: CustomModels = [];
|
|
33
33
|
|
|
34
|
+
const removedModels: string[] = [];
|
|
34
35
|
const modelNames = [
|
|
35
36
|
...DEFAULT_OPENAI_MODEL_LIST,
|
|
36
37
|
...(s.serverConfig.customModelName || '').split(/[,,]/).filter(Boolean),
|
|
@@ -47,6 +48,7 @@ const modelListSelectors = (s: GlobalStore) => {
|
|
|
47
48
|
if (name === 'all') {
|
|
48
49
|
models = [];
|
|
49
50
|
}
|
|
51
|
+
removedModels.push(name);
|
|
50
52
|
continue;
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -62,7 +64,7 @@ const modelListSelectors = (s: GlobalStore) => {
|
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
return models;
|
|
67
|
+
return models.filter((m) => !removedModels.includes(m.name));
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
export const exportSettings = (s: GlobalStore) => {
|