@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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Allow copy/edit when generate error."
6
+ ]
7
+ },
8
+ "date": "2025-04-30",
9
+ "version": "1.84.11"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.84.10",
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 <ActionIconGroup items={[regenerate, del]} onActionClick={onActionClick} />;
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 = thinking?.budget_tokens === 0 ? 1 : (thinking?.budget_tokens || undefined)
44
+ const thinkingBudget =
45
+ thinking?.budget_tokens === 0 ? 1 : thinking?.budget_tokens || undefined;
45
46
 
46
47
  return {
47
48
  ...rest,
48
- ...( ['qwen3'].some(keyword => model.toLowerCase().includes(keyword))
49
- ? {
50
- enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
51
- thinking_budget: thinkingBudget === undefined ? undefined : Math.min(Math.max(thinkingBudget, 1), 32_768),
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: max_tokens === undefined
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;