@lobehub/chat 1.126.0 → 1.126.1
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.126.1](https://github.com/lobehub/lobe-chat/compare/v1.126.0...v1.126.1)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-09-09**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix Assistant List error message.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix Assistant List error message, closes [#9178](https://github.com/lobehub/lobe-chat/issues/9178) ([3519cb2](https://github.com/lobehub/lobe-chat/commit/3519cb2))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 1.126.0](https://github.com/lobehub/lobe-chat/compare/v1.125.0...v1.126.0)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-09-08**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.126.
|
|
3
|
+
"version": "1.126.1",
|
|
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",
|
|
@@ -101,6 +101,7 @@ describe('AssistantStore', () => {
|
|
|
101
101
|
ok: true,
|
|
102
102
|
status: 200,
|
|
103
103
|
json: () => Promise.resolve({ ...mockAgents }),
|
|
104
|
+
clone: () => ({ json: () => Promise.resolve({ ...mockAgents }) }),
|
|
104
105
|
});
|
|
105
106
|
|
|
106
107
|
// @ts-expect-error
|
|
@@ -131,6 +132,7 @@ describe('AssistantStore', () => {
|
|
|
131
132
|
ok: true,
|
|
132
133
|
status: 200,
|
|
133
134
|
json: () => Promise.resolve({ ...mockAgents }),
|
|
135
|
+
clone: () => ({ json: () => Promise.resolve({ ...mockAgents }) }),
|
|
134
136
|
});
|
|
135
137
|
|
|
136
138
|
// @ts-expect-error
|
|
@@ -167,6 +169,7 @@ describe('AssistantStore', () => {
|
|
|
167
169
|
status: 200,
|
|
168
170
|
ok: true,
|
|
169
171
|
json: () => Promise.resolve({ ...mockAgents }),
|
|
172
|
+
clone: () => ({ json: () => Promise.resolve({ ...mockAgents }) }),
|
|
170
173
|
});
|
|
171
174
|
|
|
172
175
|
global.fetch = fetchMock as any;
|
|
@@ -26,9 +26,8 @@ export class AssistantStore {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
getAgentIndex = async (locale: Locales = DEFAULT_LANG): Promise<any[]> => {
|
|
29
|
+
let res: Response;
|
|
29
30
|
try {
|
|
30
|
-
let res: Response;
|
|
31
|
-
|
|
32
31
|
res = await fetch(this.getAgentIndexUrl(locale as any), {
|
|
33
32
|
cache: 'force-cache',
|
|
34
33
|
next: { revalidate: CacheRevalidate.List, tags: [CacheTag.Discover, CacheTag.Assistants] },
|
|
@@ -49,7 +48,7 @@ export class AssistantStore {
|
|
|
49
48
|
return [];
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
const data: any = await res.json();
|
|
51
|
+
const data: any = await res.clone().json();
|
|
53
52
|
|
|
54
53
|
if (EdgeConfig.isEnabled()) {
|
|
55
54
|
// Get the assistant whitelist from Edge Config
|
|
@@ -75,8 +74,11 @@ export class AssistantStore {
|
|
|
75
74
|
return [];
|
|
76
75
|
}
|
|
77
76
|
|
|
78
|
-
console.error(
|
|
77
|
+
console.error(`[AgentIndexFetchError] failed to fetch agent index, error detail:`);
|
|
79
78
|
console.error(e);
|
|
79
|
+
if (res!) {
|
|
80
|
+
console.error(`status code: ${res?.status}`, await res.text());
|
|
81
|
+
}
|
|
80
82
|
|
|
81
83
|
throw e;
|
|
82
84
|
}
|
package/src/services/discover.ts
CHANGED
|
@@ -55,12 +55,15 @@ class DiscoverService {
|
|
|
55
55
|
|
|
56
56
|
getAssistantList = async (params: AssistantQueryParams = {}): Promise<AssistantListResponse> => {
|
|
57
57
|
const locale = globalHelpers.getCurrentLanguage();
|
|
58
|
-
return lambdaClient.market.getAssistantList.query(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
return lambdaClient.market.getAssistantList.query(
|
|
59
|
+
{
|
|
60
|
+
...params,
|
|
61
|
+
locale,
|
|
62
|
+
page: params.page ? Number(params.page) : 1,
|
|
63
|
+
pageSize: params.pageSize ? Number(params.pageSize) : 20,
|
|
64
|
+
},
|
|
65
|
+
{ context: { showNotification: false } },
|
|
66
|
+
);
|
|
64
67
|
};
|
|
65
68
|
|
|
66
69
|
// ============================== MCP Market ==============================
|