@lobehub/chat 1.31.0 → 1.31.2

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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.31.2](https://github.com/lobehub/lobe-chat/compare/v1.31.1...v1.31.2)
6
+
7
+ <sup>Released on **2024-11-12**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Update deepseek model.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update deepseek model, closes [#4674](https://github.com/lobehub/lobe-chat/issues/4674) ([5ab2986](https://github.com/lobehub/lobe-chat/commit/5ab2986))
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
+
30
+ ### [Version 1.31.1](https://github.com/lobehub/lobe-chat/compare/v1.31.0...v1.31.1)
31
+
32
+ <sup>Released on **2024-11-12**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Fix Windows always showing scrollbar.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Fix Windows always showing scrollbar, closes [#4502](https://github.com/lobehub/lobe-chat/issues/4502) ([780a2a9](https://github.com/lobehub/lobe-chat/commit/780a2a9))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ## [Version 1.31.0](https://github.com/lobehub/lobe-chat/compare/v1.30.0...v1.31.0)
6
56
 
7
57
  <sup>Released on **2024-11-11**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.31.0",
3
+ "version": "1.31.2",
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",
@@ -24,6 +24,8 @@ const FileList = memo(() => {
24
24
  const showFileList = useFileStore(fileChatSelectors.chatUploadFileListHasItem);
25
25
  const { styles } = useStyles();
26
26
 
27
+ if (!inputFilesList.length) return null;
28
+
27
29
  return (
28
30
  <Flexbox
29
31
  className={styles.container}
@@ -11,12 +11,13 @@ const DeepSeek: ModelProviderCard = {
11
11
  functionCall: true,
12
12
  id: 'deepseek-chat',
13
13
  pricing: {
14
- cachedInput: 0.014,
15
- input: 0.14,
16
- output: 0.28,
14
+ cachedInput: 0.1,
15
+ currency: 'CNY',
16
+ input: 1,
17
+ output: 2,
17
18
  },
18
19
  releasedAt: '2024-09-05',
19
- tokens: 128_000,
20
+ tokens: 64_000,
20
21
  },
21
22
  ],
22
23
  checkModel: 'deepseek-chat',
@@ -37,6 +37,23 @@ exports[`parseModelString > duplicate naming model 1`] = `
37
37
  }
38
38
  `;
39
39
 
40
+ exports[`parseModelString > empty string model 1`] = `
41
+ {
42
+ "add": [
43
+ {
44
+ "displayName": "gpt-4-turbo",
45
+ "id": "gpt-4-1106-preview",
46
+ },
47
+ {
48
+ "displayName": undefined,
49
+ "id": "claude-2",
50
+ },
51
+ ],
52
+ "removeAll": false,
53
+ "removed": [],
54
+ }
55
+ `;
56
+
40
57
  exports[`parseModelString > only add the model 1`] = `
41
58
  {
42
59
  "add": [
@@ -25,6 +25,11 @@ describe('parseModelString', () => {
25
25
  expect(result).toMatchSnapshot();
26
26
  });
27
27
 
28
+ it('empty string model', () => {
29
+ const result = parseModelString('gpt-4-1106-preview=gpt-4-turbo,, ,\n ,+claude-2');
30
+ expect(result).toMatchSnapshot();
31
+ });
32
+
28
33
  describe('extension capabilities', () => {
29
34
  it('with token', () => {
30
35
  const result = parseModelString('chatglm-6b=ChatGLM 6B<4096>');
@@ -34,6 +34,11 @@ export const parseModelString = (modelString: string = '', withDeploymentName =
34
34
  continue;
35
35
  }
36
36
 
37
+ // remove empty model name
38
+ if (!item.trim().length) {
39
+ continue;
40
+ }
41
+
37
42
  // Remove duplicate model entries.
38
43
  const existingIndex = models.findIndex(({ id: n }) => n === id);
39
44
  if (existingIndex !== -1) {