@lobehub/chat 1.11.6 → 1.11.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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.11.8](https://github.com/lobehub/lobe-chat/compare/v1.11.7...v1.11.8)
6
+
7
+ <sup>Released on **2024-08-19**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Update zhipu models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update zhipu models, closes [#3509](https://github.com/lobehub/lobe-chat/issues/3509) ([e323b50](https://github.com/lobehub/lobe-chat/commit/e323b50))
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.11.7](https://github.com/lobehub/lobe-chat/compare/v1.11.6...v1.11.7)
31
+
32
+ <sup>Released on **2024-08-18**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix topic scroll issue.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix topic scroll issue, closes [#3505](https://github.com/lobehub/lobe-chat/issues/3505) ([c719c7a](https://github.com/lobehub/lobe-chat/commit/c719c7a))
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.11.6](https://github.com/lobehub/lobe-chat/compare/v1.11.5...v1.11.6)
6
56
 
7
57
  <sup>Released on **2024-08-18**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.11.6",
3
+ "version": "1.11.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",
@@ -204,7 +204,7 @@
204
204
  "systemjs": "^6.15.1",
205
205
  "ts-md5": "^1.3.1",
206
206
  "ua-parser-js": "^1.0.38",
207
- "unstructured-client": "^0.11.3",
207
+ "unstructured-client": "^0.15.0",
208
208
  "url-join": "^5.0.0",
209
209
  "use-merge-value": "^1.2.0",
210
210
  "utility-types": "^3.11.0",
@@ -283,7 +283,7 @@
283
283
  "vitest": "~1.2.2",
284
284
  "vitest-canvas-mock": "^0.3.3"
285
285
  },
286
- "packageManager": "pnpm@9.7.0",
286
+ "packageManager": "pnpm@9.7.1",
287
287
  "publishConfig": {
288
288
  "access": "public",
289
289
  "registry": "https://registry.npmjs.org"
@@ -15,7 +15,7 @@ import { useSessionStore } from '@/store/session';
15
15
  import { useUserStore } from '@/store/user';
16
16
  import { ChatTopic } from '@/types/topic';
17
17
 
18
- import { Placeholder, SkeletonList } from '../SkeletonList';
18
+ import { SkeletonList } from '../SkeletonList';
19
19
  import TopicItem from './TopicItem';
20
20
 
21
21
  const TopicListContent = memo(() => {
@@ -85,7 +85,7 @@ const TopicListContent = memo(() => {
85
85
  </Flexbox>
86
86
  )}
87
87
  <Virtuoso
88
- components={{ ScrollSeekPlaceholder: Placeholder }}
88
+ // components={{ ScrollSeekPlaceholder: Placeholder }}
89
89
  computeItemKey={(_, item) => item.id}
90
90
  data={topics}
91
91
  fixedItemHeight={44}
@@ -93,10 +93,10 @@ const TopicListContent = memo(() => {
93
93
  itemContent={itemContent}
94
94
  overscan={44 * 10}
95
95
  ref={virtuosoRef}
96
- scrollSeekConfiguration={{
97
- enter: (velocity) => Math.abs(velocity) > 350,
98
- exit: (velocity) => Math.abs(velocity) < 10,
99
- }}
96
+ // scrollSeekConfiguration={{
97
+ // enter: (velocity) => Math.abs(velocity) > 350,
98
+ // exit: (velocity) => Math.abs(velocity) < 10,
99
+ // }}
100
100
  />
101
101
  </>
102
102
  );
@@ -5,6 +5,14 @@ import { ModelProviderCard } from '@/types/llm';
5
5
  // ref https://open.bigmodel.cn/modelcenter/square
6
6
  const ZhiPu: ModelProviderCard = {
7
7
  chatModels: [
8
+ {
9
+ description: '超长输入:专为处理超长文本和记忆型任务设计',
10
+ displayName: 'GLM-4-Long',
11
+ enabled: true,
12
+ functionCall: true,
13
+ id: 'glm-4-long',
14
+ tokens: 1_024_000,
15
+ },
8
16
  {
9
17
  description:
10
18
  'GLM-4-AllTools 是专门为支持智能体和相关任务而进一步优化的模型版本。它能够自主理解用户的意图,规划复杂的指令,并能够调用一个或多个工具(例如网络浏览器、代码解释器和文本生图像)以完成复杂的任务。',
@@ -23,7 +31,7 @@ const ZhiPu: ModelProviderCard = {
23
31
  tokens: 128_000,
24
32
  },
25
33
  {
26
- description: '发布于20240116的最智能版本模型,目前已被 GLM-4-0520 版本超越',
34
+ description: '发布于2024年1月16日的旧版旗舰模型,目前已被 GLM-4-0520 版本超越', // deprecated on 2025-06
27
35
  displayName: 'GLM-4',
28
36
  functionCall: true,
29
37
  id: 'glm-4',
@@ -59,23 +67,26 @@ const ZhiPu: ModelProviderCard = {
59
67
  tokens: 2000,
60
68
  vision: true,
61
69
  },
62
- {
63
- description:
64
- '适用于对知识量、推理能力、创造力要求较高的场景,比如广告文案、小说写作、知识类写作、代码生成等', // Will be discontinued on December 31, 2024
65
- displayName: 'GLM-3-Turbo',
66
- functionCall: true,
67
- id: 'glm-3-turbo',
68
- tokens: 128_000,
69
- },
70
70
  {
71
71
  description:
72
72
  'CodeGeeX是一款强大的AI编程助手,提供智能问答和代码补全功能,支持多种编程语言,帮助开发者提高编程效率。',
73
73
  displayName: 'CodeGeeX-4',
74
- enabled: true,
75
- functionCall: false,
76
74
  id: 'codegeex-4',
77
75
  tokens: 128_000,
78
76
  },
77
+ {
78
+ description:
79
+ '支持基于人设的角色扮演、超长多轮的记忆、千人千面的角色对话,广泛应用于情感陪伴、游戏智能NPC、网红/明星/影视剧IP分身、数字人/虚拟主播、文字冒险游戏等拟人对话或游戏场景。',
80
+ displayName: 'CharGLM-3',
81
+ id: 'charglm-3',
82
+ tokens: 4096,
83
+ },
84
+ {
85
+ description: '心理模型:具备专业咨询能力,帮助用户理解情感并应对情绪问题',
86
+ displayName: 'Emohaa',
87
+ id: 'emohaa',
88
+ tokens: 8192,
89
+ },
79
90
  ],
80
91
  checkModel: 'glm-4-flash',
81
92
  id: 'zhipu',
@@ -9,6 +9,7 @@ export default defineConfig({
9
9
  coverage: {
10
10
  all: false,
11
11
  exclude: ['src/database/server/core/dbForTest.ts'],
12
+ include: ['src/database/server/**/*.ts'],
12
13
  provider: 'v8',
13
14
  reporter: ['text', 'json', 'lcov', 'text-summary'],
14
15
  reportsDirectory: './coverage/server',