@lobehub/chat 1.62.4 → 1.62.5

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.62.5](https://github.com/lobehub/lobe-chat/compare/v1.62.4...v1.62.5)
6
+
7
+ <sup>Released on **2025-02-21**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix default agent loading.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix default agent loading, closes [#6393](https://github.com/lobehub/lobe-chat/issues/6393) ([7841122](https://github.com/lobehub/lobe-chat/commit/7841122))
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.62.4](https://github.com/lobehub/lobe-chat/compare/v1.62.3...v1.62.4)
6
31
 
7
32
  <sup>Released on **2025-02-20**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix default agent loading."
6
+ ]
7
+ },
8
+ "date": "2025-02-21",
9
+ "version": "1.62.5"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.62.4",
3
+ "version": "1.62.5",
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",
@@ -129,7 +129,7 @@
129
129
  "@lobehub/chat-plugins-gateway": "^1.9.0",
130
130
  "@lobehub/icons": "^1.73.1",
131
131
  "@lobehub/tts": "^1.28.0",
132
- "@lobehub/ui": "^1.165.0",
132
+ "@lobehub/ui": "^1.165.2",
133
133
  "@neondatabase/serverless": "^0.10.4",
134
134
  "@next/third-parties": "^15.1.4",
135
135
  "@react-spring/web": "^9.7.5",
@@ -224,7 +224,7 @@
224
224
  "shiki": "^1.26.1",
225
225
  "stripe": "^16.12.0",
226
226
  "superjson": "^2.2.2",
227
- "svix": "~1.57.0",
227
+ "svix": "^1.59.1",
228
228
  "swr": "^2.3.0",
229
229
  "systemjs": "^6.15.1",
230
230
  "ts-md5": "^1.3.1",
@@ -12,11 +12,12 @@ const Page = memo(() => {
12
12
  const config = useUserStore(settingsSelectors.defaultAgentConfig, isEqual);
13
13
  const meta = useUserStore(settingsSelectors.defaultAgentMeta, isEqual);
14
14
  const [updateAgent] = useUserStore((s) => [s.updateDefaultAgent]);
15
-
15
+ const isUserStateInit = useUserStore((s) => s.isUserStateInit);
16
16
  return (
17
17
  <AgentSettings
18
18
  config={config}
19
19
  id={INBOX_SESSION_ID}
20
+ loading={!isUserStateInit}
20
21
  meta={meta}
21
22
  onConfigChange={(config) => {
22
23
  updateAgent({ config });
@@ -175,6 +175,7 @@ const Item = memo<ChatListItemProps>(
175
175
  citations: item?.role === 'user' ? undefined : item?.search?.citations,
176
176
  components,
177
177
  customRender: markdownCustomRender,
178
+ enableCustomFootnotes: item?.role === 'assistant',
178
179
  rehypePlugins: item?.role === 'user' ? undefined : rehypePlugins,
179
180
  remarkPlugins: item?.role === 'user' ? undefined : remarkPlugins,
180
181
  showCitations:
@@ -62,6 +62,12 @@ describe('createErrorResponse', () => {
62
62
  expect(response.status).toBe(400);
63
63
  });
64
64
 
65
+ it('returns a 400 status for SubscriptionKeyMismatch error type', () => {
66
+ const errorType = ChatErrorType.SubscriptionKeyMismatch;
67
+ const response = createErrorResponse(errorType);
68
+ expect(response.status).toBe(400);
69
+ });
70
+
65
71
  describe('Provider Biz Error', () => {
66
72
  it('returns a 471 status for ProviderBizError error type', () => {
67
73
  const errorType = AgentRuntimeErrorType.ProviderBizError;