@lobehub/chat 1.128.3 → 1.128.4
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 +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +2 -2
- package/packages/model-runtime/src/core/streams/openai/openai.test.ts +2 -2
- package/packages/model-runtime/src/core/streams/openai/openai.ts +3 -2
- package/packages/model-runtime/src/core/streams/openai/responsesStream.ts +3 -2
- package/src/app/[variants]/(main)/discover/(list)/(home)/Client.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.128.4](https://github.com/lobehub/lobe-chat/compare/v1.128.3...v1.128.4)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-09-13**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix discover plugin link.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix discover plugin link, closes [#9240](https://github.com/lobehub/lobe-chat/issues/9240) ([cfb2246](https://github.com/lobehub/lobe-chat/commit/cfb2246))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.128.3](https://github.com/lobehub/lobe-chat/compare/v1.128.2...v1.128.3)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-09-13**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.128.
|
|
3
|
+
"version": "1.128.4",
|
|
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",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@electric-sql/pglite": "0.2.17",
|
|
138
138
|
"@emotion/react": "^11.14.0",
|
|
139
139
|
"@fal-ai/client": "^1.6.2",
|
|
140
|
-
"@formkit/auto-animate": "^0.
|
|
140
|
+
"@formkit/auto-animate": "^0.9.0",
|
|
141
141
|
"@google/genai": "^1.19.0",
|
|
142
142
|
"@huggingface/inference": "^2.8.1",
|
|
143
143
|
"@icons-pack/react-simple-icons": "9.6.0",
|
|
@@ -396,7 +396,7 @@ describe('OpenAIStream', () => {
|
|
|
396
396
|
expect(chunks).toEqual([
|
|
397
397
|
'id: first_chunk_error\n',
|
|
398
398
|
'event: error\n',
|
|
399
|
-
`data: {"body":{"errorType":"ProviderBizError","message":"Test error"},"type":"ProviderBizError"}\n\n`,
|
|
399
|
+
`data: {"body":{"errorType":"ProviderBizError","message":"Test error"},"message":"Test error","type":"ProviderBizError"}\n\n`,
|
|
400
400
|
]);
|
|
401
401
|
});
|
|
402
402
|
|
|
@@ -427,7 +427,7 @@ describe('OpenAIStream', () => {
|
|
|
427
427
|
expect(chunks).toEqual([
|
|
428
428
|
'id: first_chunk_error\n',
|
|
429
429
|
'event: error\n',
|
|
430
|
-
`data: {"body":{"message":"Custom error","errorType":"PermissionDenied","provider":"grok"},"type":"PermissionDenied"}\n\n`,
|
|
430
|
+
`data: {"body":{"message":"Custom error","errorType":"PermissionDenied","provider":"grok"},"message":"Custom error","type":"PermissionDenied"}\n\n`,
|
|
431
431
|
]);
|
|
432
432
|
});
|
|
433
433
|
|
|
@@ -57,8 +57,9 @@ const transformOpenAIStream = (
|
|
|
57
57
|
|
|
58
58
|
const errorData = {
|
|
59
59
|
body: chunk,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
message: 'message' in chunk ? typeof chunk.message === 'string' ? chunk.message : JSON.stringify(chunk) : JSON.stringify(chunk),
|
|
61
|
+
type: 'errorType' in chunk ? chunk.errorType as typeof AgentRuntimeErrorType.ProviderBizError : AgentRuntimeErrorType.ProviderBizError,
|
|
62
|
+
} satisfies ChatMessageError;
|
|
62
63
|
return { data: errorData, id: 'first_chunk_error', type: 'error' };
|
|
63
64
|
}
|
|
64
65
|
|
|
@@ -45,8 +45,9 @@ const transformOpenAIStream = (
|
|
|
45
45
|
|
|
46
46
|
const errorData = {
|
|
47
47
|
body: chunk,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
message: 'message' in chunk ? typeof chunk.message === 'string' ? chunk.message : JSON.stringify(chunk) : JSON.stringify(chunk),
|
|
49
|
+
type: 'errorType' in chunk ? chunk.errorType as typeof AgentRuntimeErrorType.ProviderBizError : AgentRuntimeErrorType.ProviderBizError,
|
|
50
|
+
} satisfies ChatMessageError;
|
|
50
51
|
return { data: errorData, id: 'first_chunk_error', type: 'error' };
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -34,7 +34,7 @@ const Client = memo<{ mobile?: boolean }>(() => {
|
|
|
34
34
|
</Title>
|
|
35
35
|
<AssistantList data={assistantList.items} rows={4} />
|
|
36
36
|
<div />
|
|
37
|
-
<Title more={t('home.more')} moreLink={'/discover/
|
|
37
|
+
<Title more={t('home.more')} moreLink={'/discover/mcp'}>
|
|
38
38
|
{t('home.featuredTools')}
|
|
39
39
|
</Title>
|
|
40
40
|
<McpList data={mcpList.items} rows={4} />
|