@lobehub/chat 1.84.10 → 1.84.11
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.84.11](https://github.com/lobehub/lobe-chat/compare/v1.84.10...v1.84.11)
|
6
|
+
|
7
|
+
<sup>Released on **2025-04-30**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Allow copy/edit when generate error.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Allow copy/edit when generate error, closes [#7664](https://github.com/lobehub/lobe-chat/issues/7664) ([f518650](https://github.com/lobehub/lobe-chat/commit/f518650))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.84.10](https://github.com/lobehub/lobe-chat/compare/v1.84.9...v1.84.10)
|
6
31
|
|
7
32
|
<sup>Released on **2025-04-30**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.84.
|
3
|
+
"version": "1.84.11",
|
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",
|
@@ -5,7 +5,15 @@ import { memo } from 'react';
|
|
5
5
|
import { useChatListActionsBar } from '../hooks/useChatListActionsBar';
|
6
6
|
|
7
7
|
export const ErrorActionsBar = memo<ChatActionsBarProps>(({ onActionClick }) => {
|
8
|
-
const { regenerate, del } = useChatListActionsBar();
|
8
|
+
const { regenerate, copy, edit, del } = useChatListActionsBar();
|
9
9
|
|
10
|
-
return
|
10
|
+
return (
|
11
|
+
<ActionIconGroup
|
12
|
+
items={[regenerate, del]}
|
13
|
+
menu={{
|
14
|
+
items: [edit, copy],
|
15
|
+
}}
|
16
|
+
onActionClick={onActionClick}
|
17
|
+
/>
|
18
|
+
);
|
11
19
|
});
|
@@ -41,19 +41,22 @@ export const LobeSiliconCloudAI = LobeOpenAICompatibleFactory({
|
|
41
41
|
},
|
42
42
|
handlePayload: (payload) => {
|
43
43
|
const { max_tokens, model, thinking, ...rest } = payload;
|
44
|
-
const thinkingBudget =
|
44
|
+
const thinkingBudget =
|
45
|
+
thinking?.budget_tokens === 0 ? 1 : thinking?.budget_tokens || undefined;
|
45
46
|
|
46
47
|
return {
|
47
48
|
...rest,
|
48
|
-
...(
|
49
|
-
? {
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
...(['qwen3'].some((keyword) => model.toLowerCase().includes(keyword))
|
50
|
+
? {
|
51
|
+
enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
|
52
|
+
thinking_budget:
|
53
|
+
thinkingBudget === undefined
|
54
|
+
? undefined
|
55
|
+
: Math.min(Math.max(thinkingBudget, 1), 32_768),
|
56
|
+
}
|
53
57
|
: {}),
|
54
|
-
max_tokens:
|
55
|
-
? undefined
|
56
|
-
: Math.min(Math.max(max_tokens, 1), 16_384),
|
58
|
+
max_tokens:
|
59
|
+
max_tokens === undefined ? undefined : Math.min(Math.max(max_tokens, 1), 16_384),
|
57
60
|
model,
|
58
61
|
stream: !payload.tools,
|
59
62
|
} as any;
|