@lobehub/chat 1.29.4 → 1.29.6
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 +50 -0
- package/package.json +3 -3
- package/src/app/loading/index.tsx +15 -0
- package/src/app/page.tsx +1 -15
- package/src/config/modelProviders/bedrock.ts +14 -0
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +5 -1
- /package/src/app/{(loading) → loading}/Client.tsx +0 -0
- /package/src/app/{(loading) → loading}/Redirect.tsx +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.29.6](https://github.com/lobehub/lobe-chat/compare/v1.29.5...v1.29.6)
|
6
|
+
|
7
|
+
<sup>Released on **2024-11-10**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add Sonnet 3.5 v2 inference model to BedRock.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add Sonnet 3.5 v2 inference model to BedRock, closes [#4652](https://github.com/lobehub/lobe-chat/issues/4652) ([1a8584d](https://github.com/lobehub/lobe-chat/commit/1a8584d))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.29.5](https://github.com/lobehub/lobe-chat/compare/v1.29.4...v1.29.5)
|
31
|
+
|
32
|
+
<sup>Released on **2024-11-10**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix summary range.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Fix summary range, closes [#4664](https://github.com/lobehub/lobe-chat/issues/4664) ([140c301](https://github.com/lobehub/lobe-chat/commit/140c301))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.29.4](https://github.com/lobehub/lobe-chat/compare/v1.29.3...v1.29.4)
|
6
56
|
|
7
57
|
<sup>Released on **2024-11-09**</sup>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.29.
|
3
|
+
"version": "1.29.6",
|
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",
|
@@ -102,7 +102,7 @@
|
|
102
102
|
"dependencies": {
|
103
103
|
"@ant-design/icons": "^5.5.1",
|
104
104
|
"@ant-design/pro-components": "^2.7.18",
|
105
|
-
"@anthropic-ai/sdk": "^0.
|
105
|
+
"@anthropic-ai/sdk": "^0.32.0",
|
106
106
|
"@auth/core": "^0.37.0",
|
107
107
|
"@aws-sdk/client-bedrock-runtime": "^3.675.0",
|
108
108
|
"@aws-sdk/client-s3": "^3.675.0",
|
@@ -271,7 +271,7 @@
|
|
271
271
|
"consola": "^3.2.3",
|
272
272
|
"dotenv": "^16.4.5",
|
273
273
|
"dpdm-fast": "^1.0.4",
|
274
|
-
"drizzle-kit": "^0.
|
274
|
+
"drizzle-kit": "^0.28.0",
|
275
275
|
"eslint": "^8.57.1",
|
276
276
|
"eslint-plugin-mdx": "^2.3.4",
|
277
277
|
"eslint-plugin-unused-imports": "4.0.1",
|
package/src/app/page.tsx
CHANGED
@@ -2,22 +2,8 @@ import { Metadata } from 'next';
|
|
2
2
|
|
3
3
|
import { getCanonicalUrl } from '@/server/utils/url';
|
4
4
|
|
5
|
-
import Client from './(loading)/Client';
|
6
|
-
import Redirect from './(loading)/Redirect';
|
7
|
-
|
8
5
|
export const metadata: Metadata = {
|
9
6
|
alternates: { canonical: getCanonicalUrl('/') },
|
10
7
|
};
|
11
8
|
|
12
|
-
|
13
|
-
return (
|
14
|
-
<>
|
15
|
-
<Client />
|
16
|
-
<Redirect />
|
17
|
-
</>
|
18
|
-
);
|
19
|
-
};
|
20
|
-
|
21
|
-
Page.displayName = 'Loading';
|
22
|
-
|
23
|
-
export default Page;
|
9
|
+
export { default } from '@/app/loading';
|
@@ -40,6 +40,20 @@ const Bedrock: ModelProviderCard = {
|
|
40
40
|
tokens: 200_000,
|
41
41
|
vision: true,
|
42
42
|
},
|
43
|
+
{
|
44
|
+
description:
|
45
|
+
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
|
46
|
+
displayName: 'Claude 3.5 Sonnet v2 (Inference profile)',
|
47
|
+
enabled: true,
|
48
|
+
functionCall: true,
|
49
|
+
id: 'us.anthropic.claude-3-5-sonnet-20241022-v2:0',
|
50
|
+
pricing: {
|
51
|
+
input: 3,
|
52
|
+
output: 15,
|
53
|
+
},
|
54
|
+
tokens: 200_000,
|
55
|
+
vision: true,
|
56
|
+
},
|
43
57
|
{
|
44
58
|
description:
|
45
59
|
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
|
@@ -332,7 +332,11 @@ export const generateAIChat: StateCreator<
|
|
332
332
|
chatConfig.enableCompressHistory &&
|
333
333
|
originalMessages.length > historyCount
|
334
334
|
) {
|
335
|
-
|
335
|
+
// after generation: [u1,a1,u2,a2,u3,a3]
|
336
|
+
// but the `originalMessages` is still: [u1,a1,u2,a2,u3]
|
337
|
+
// So if historyCount=2, we need to summary [u1,a1,u2,a2]
|
338
|
+
// because user find UI is [u1,a1,u2,a2 | u3,a3]
|
339
|
+
const historyMessages = originalMessages.slice(0, -historyCount + 1);
|
336
340
|
|
337
341
|
await get().internal_summaryHistory(historyMessages);
|
338
342
|
}
|
File without changes
|
File without changes
|