@lobehub/chat 1.66.2 → 1.66.3
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.66.3](https://github.com/lobehub/lobe-chat/compare/v1.66.2...v1.66.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-27**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix fetch assistants plugin error.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix fetch assistants plugin error, closes [#6576](https://github.com/lobehub/lobe-chat/issues/6576) ([9669a02](https://github.com/lobehub/lobe-chat/commit/9669a02))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.66.2](https://github.com/lobehub/lobe-chat/compare/v1.66.1...v1.66.2)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-27**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.66.
|
3
|
+
"version": "1.66.3",
|
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",
|
@@ -53,7 +53,7 @@ export class DiscoverService {
|
|
53
53
|
const json = await this.assistantStore.getAgentIndex(locale, revalidate);
|
54
54
|
|
55
55
|
// @ts-expect-error 目前类型不一致,未来要统一
|
56
|
-
return json.agents;
|
56
|
+
return json.agents ?? [];
|
57
57
|
};
|
58
58
|
|
59
59
|
getAssistantById = async (
|
@@ -131,21 +131,27 @@ export class DiscoverService {
|
|
131
131
|
};
|
132
132
|
|
133
133
|
getPluginList = async (locale: Locales): Promise<DiscoverPlugintem[]> => {
|
134
|
-
|
135
|
-
|
136
|
-
});
|
137
|
-
|
138
|
-
if (!res.ok) {
|
139
|
-
res = await fetch(this.pluginStore.getPluginIndexUrl(DEFAULT_LANG), {
|
134
|
+
try {
|
135
|
+
let res = await fetch(this.pluginStore.getPluginIndexUrl(locale), {
|
140
136
|
next: { revalidate: 12 * revalidate },
|
141
137
|
});
|
142
|
-
}
|
143
138
|
|
144
|
-
|
139
|
+
if (!res.ok) {
|
140
|
+
res = await fetch(this.pluginStore.getPluginIndexUrl(DEFAULT_LANG), {
|
141
|
+
next: { revalidate: 12 * revalidate },
|
142
|
+
});
|
143
|
+
}
|
144
|
+
|
145
|
+
if (!res.ok) return [];
|
145
146
|
|
146
|
-
|
147
|
+
const json = await res.json();
|
147
148
|
|
148
|
-
|
149
|
+
return json.plugins ?? [];
|
150
|
+
} catch (e) {
|
151
|
+
console.error('[getPluginListError] failed to fetch plugin list, error detail:');
|
152
|
+
console.error(e);
|
153
|
+
return [];
|
154
|
+
}
|
149
155
|
};
|
150
156
|
|
151
157
|
getPluginByIds = async (locale: Locales, identifiers: string[]): Promise<DiscoverPlugintem[]> => {
|