@lobehub/chat 1.19.21 → 1.19.22
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 1.19.22](https://github.com/lobehub/lobe-chat/compare/v1.19.21...v1.19.22)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-22**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix ollama model download panel.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **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))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.19.21](https://github.com/lobehub/lobe-chat/compare/v1.19.20...v1.19.21)
|
6
31
|
|
7
32
|
<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.22",
|
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",
|
@@ -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;
|