@lobehub/chat 1.19.21 → 1.19.23
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.19.23](https://github.com/lobehub/lobe-chat/compare/v1.19.22...v1.19.23)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-23**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add spark max-32k model.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add spark max-32k model, closes [#4071](https://github.com/lobehub/lobe-chat/issues/4071) ([c11b57b](https://github.com/lobehub/lobe-chat/commit/c11b57b))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.19.22](https://github.com/lobehub/lobe-chat/compare/v1.19.21...v1.19.22)
|
31
|
+
|
32
|
+
<sup>Released on **2024-09-22**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix ollama model download panel.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Fix ollama model download panel, closes [#4070](https://github.com/lobehub/lobe-chat/issues/4070) ([fc33336](https://github.com/lobehub/lobe-chat/commit/fc33336))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.19.21](https://github.com/lobehub/lobe-chat/compare/v1.19.20...v1.19.21)
|
6
56
|
|
7
57
|
<sup>Released on **2024-09-21**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.19.
|
3
|
+
"version": "1.19.23",
|
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",
|
@@ -298,7 +298,7 @@
|
|
298
298
|
"vitest": "~1.2.2",
|
299
299
|
"vitest-canvas-mock": "^0.3.3"
|
300
300
|
},
|
301
|
-
"packageManager": "pnpm@9.
|
301
|
+
"packageManager": "pnpm@9.11.0",
|
302
302
|
"publishConfig": {
|
303
303
|
"access": "public",
|
304
304
|
"registry": "https://registry.npmjs.org"
|
@@ -26,18 +26,18 @@ const Spark: ModelProviderCard = {
|
|
26
26
|
},
|
27
27
|
{
|
28
28
|
description:
|
29
|
-
'Spark Pro
|
30
|
-
displayName: 'Spark Pro
|
29
|
+
'Spark Pro 128K 配置了特大上下文处理能力,能够处理多达128K的上下文信息,特别适合需通篇分析和长期逻辑关联处理的长文内容,可在复杂文本沟通中提供流畅一致的逻辑与多样的引用支持。',
|
30
|
+
displayName: 'Spark Pro 128K',
|
31
31
|
enabled: true,
|
32
32
|
functionCall: false,
|
33
33
|
id: 'Pro-128k',
|
34
34
|
maxOutput: 4096,
|
35
|
-
tokens:
|
35
|
+
tokens: 131_072,
|
36
36
|
},
|
37
37
|
{
|
38
38
|
description:
|
39
|
-
'
|
40
|
-
displayName: '
|
39
|
+
'Spark Max 为功能最为全面的版本,支持联网搜索及众多内置插件。其全面优化的核心能力以及系统角色设定和函数调用功能,使其在各种复杂应用场景中的表现极为优异和出色。',
|
40
|
+
displayName: 'Spark 3.5 Max',
|
41
41
|
enabled: true,
|
42
42
|
functionCall: false,
|
43
43
|
id: 'generalv3.5',
|
@@ -46,8 +46,18 @@ const Spark: ModelProviderCard = {
|
|
46
46
|
},
|
47
47
|
{
|
48
48
|
description:
|
49
|
-
'
|
50
|
-
displayName: '
|
49
|
+
'Spark Max 32K 配置了大上下文处理能力,更强的上下文理解和逻辑推理能力,支持32K tokens的文本输入,适用于长文档阅读、私有知识问答等场景',
|
50
|
+
displayName: 'Spark 3.5 Max 32K',
|
51
|
+
enabled: true,
|
52
|
+
functionCall: false,
|
53
|
+
id: 'Max-32k',
|
54
|
+
maxOutput: 8192,
|
55
|
+
tokens: 32_768,
|
56
|
+
},
|
57
|
+
{
|
58
|
+
description:
|
59
|
+
'Spark Ultra 是星火大模型系列中最为强大的版本,在升级联网搜索链路同时,提升对文本内容的理解和总结能力。它是用于提升办公生产力和准确响应需求的全方位解决方案,是引领行业的智能产品。',
|
60
|
+
displayName: 'Spark 4.0 Ultra',
|
51
61
|
enabled: true,
|
52
62
|
functionCall: false,
|
53
63
|
id: '4.0Ultra',
|
@@ -26,7 +26,7 @@ const OllamaModelForm = memo<OllamaModelFormProps>(({ id, model }) => {
|
|
26
26
|
const [total, setTotal] = useState(0);
|
27
27
|
const { remainingTime, downloadSpeed } = useDownloadMonitor(total, completed);
|
28
28
|
const percent = useMemo(() => {
|
29
|
-
return total ? Number(((completed / total) * 100).toFixed(
|
29
|
+
return total ? Number(((completed / total) * 100).toFixed(1)) : 0;
|
30
30
|
}, [completed, total]);
|
31
31
|
|
32
32
|
const [delAndRegenerateMessage, deleteMessage] = useChatStore((s) => [
|
@@ -114,8 +114,8 @@ const OllamaModelForm = memo<OllamaModelFormProps>(({ id, model }) => {
|
|
114
114
|
!total
|
115
115
|
? t('ollama.unlock.starting')
|
116
116
|
: t('ollama.unlock.downloaded', {
|
117
|
-
completed: formatSize(completed),
|
118
|
-
total: formatSize(total),
|
117
|
+
completed: formatSize(completed, 2),
|
118
|
+
total: formatSize(total, 2),
|
119
119
|
})}
|
120
120
|
</Button>
|
121
121
|
{isDownloading ? (
|
@@ -23,7 +23,7 @@ interface OllamaErrorResponse {
|
|
23
23
|
error: OllamaError;
|
24
24
|
}
|
25
25
|
|
26
|
-
const UNRESOLVED_MODEL_REGEXP = /model
|
26
|
+
const UNRESOLVED_MODEL_REGEXP = /model "([\w+,-_]+)" not found/;
|
27
27
|
|
28
28
|
const OllamaBizError = memo<ChatMessage>(({ error, id }) => {
|
29
29
|
const errorBody: OllamaErrorResponse = (error as any)?.body;
|