@lobehub/chat 1.129.0 → 1.129.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,39 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.129.1](https://github.com/lobehub/lobe-chat/compare/v1.129.0...v1.129.1)
6
+
7
+ <sup>Released on **2025-09-16**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Improve db sql performance.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Update SiliconCloud reasoning models.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### Code refactoring
23
+
24
+ - **misc**: Improve db sql performance, closes [#9283](https://github.com/lobehub/lobe-chat/issues/9283) ([cee555a](https://github.com/lobehub/lobe-chat/commit/cee555a))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Update SiliconCloud reasoning models, closes [#9287](https://github.com/lobehub/lobe-chat/issues/9287) ([b47bb5b](https://github.com/lobehub/lobe-chat/commit/b47bb5b))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
5
38
  ## [Version 1.129.0](https://github.com/lobehub/lobe-chat/compare/v1.128.10...v1.129.0)
6
39
 
7
40
  <sup>Released on **2025-09-16**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Update SiliconCloud reasoning models."
6
+ ]
7
+ },
8
+ "date": "2025-09-16",
9
+ "version": "1.129.1"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
@@ -419,6 +419,9 @@ table messages {
419
419
  topic_id [name: 'messages_topic_id_idx']
420
420
  parent_id [name: 'messages_parent_id_idx']
421
421
  quota_id [name: 'messages_quota_id_idx']
422
+ user_id [name: 'messages_user_id_idx']
423
+ session_id [name: 'messages_session_id_idx']
424
+ thread_id [name: 'messages_thread_id_idx']
422
425
  }
423
426
  }
424
427
 
@@ -624,6 +627,7 @@ table chunks {
624
627
 
625
628
  indexes {
626
629
  (client_id, user_id) [name: 'chunks_client_id_user_id_unique', unique]
630
+ user_id [name: 'chunks_user_id_idx']
627
631
  }
628
632
  }
629
633
 
@@ -637,6 +641,7 @@ table embeddings {
637
641
 
638
642
  indexes {
639
643
  (client_id, user_id) [name: 'embeddings_client_id_user_id_unique', unique]
644
+ chunk_id [name: 'embeddings_chunk_id_idx']
640
645
  }
641
646
  }
642
647
 
@@ -836,6 +841,8 @@ table sessions {
836
841
  indexes {
837
842
  (slug, user_id) [name: 'slug_user_id_unique', unique]
838
843
  (client_id, user_id) [name: 'sessions_client_id_user_id_unique', unique]
844
+ user_id [name: 'sessions_user_id_idx']
845
+ (id, user_id) [name: 'sessions_id_user_id_idx']
839
846
  }
840
847
  }
841
848
 
@@ -886,6 +893,8 @@ table topics {
886
893
 
887
894
  indexes {
888
895
  (client_id, user_id) [name: 'topics_client_id_user_id_unique', unique]
896
+ user_id [name: 'topics_user_id_idx']
897
+ (id, user_id) [name: 'topics_id_user_id_idx']
889
898
  }
890
899
  }
891
900
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.129.0",
3
+ "version": "1.129.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",
@@ -1,6 +1,12 @@
1
- -- 将超过 1000 字符的 description 截断为 1000 字符
1
+ -- Truncate title to 255 characters if it exceeds the limit
2
+ UPDATE agents
3
+ SET title = LEFT(title, 255)
4
+ WHERE LENGTH(title) > 255;--> statement-breakpoint
5
+
6
+ -- Truncate description to 1000 characters if it exceeds the limit
2
7
  UPDATE agents
3
8
  SET description = LEFT(description, 1000)
4
9
  WHERE LENGTH(description) > 1000;--> statement-breakpoint
10
+
5
11
  CREATE INDEX IF NOT EXISTS "agents_title_idx" ON "agents" USING btree ("title");--> statement-breakpoint
6
12
  CREATE INDEX IF NOT EXISTS "agents_description_idx" ON "agents" USING btree ("description");
@@ -1,6 +1,2 @@
1
- -- 将超过 255 字符的 title 截断为 255 字符
2
- UPDATE agents
3
- SET title = LEFT(title, 255)
4
- WHERE LENGTH(title) > 255;--> statement-breakpoint
5
1
  ALTER TABLE "agents" ALTER COLUMN "title" SET DATA TYPE varchar(255);--> statement-breakpoint
6
2
  ALTER TABLE "agents" ALTER COLUMN "description" SET DATA TYPE varchar(1000);
@@ -0,0 +1,18 @@
1
+ -- 解决 chunks 表慢查询
2
+ CREATE INDEX IF NOT EXISTS "chunks_user_id_idx" ON "chunks" USING btree ("user_id");--> statement-breakpoint
3
+
4
+ -- 解决 topics 表批量删除慢查询
5
+ CREATE INDEX IF NOT EXISTS "topics_user_id_idx" ON "topics" USING btree ("user_id");--> statement-breakpoint
6
+ CREATE INDEX IF NOT EXISTS "topics_id_user_id_idx" ON "topics" USING btree ("id","user_id");--> statement-breakpoint
7
+
8
+ -- 解决 sessions 表删除慢查询
9
+ CREATE INDEX IF NOT EXISTS "sessions_user_id_idx" ON "sessions" USING btree ("user_id");--> statement-breakpoint
10
+ CREATE INDEX IF NOT EXISTS "sessions_id_user_id_idx" ON "sessions" USING btree ("id","user_id");--> statement-breakpoint
11
+
12
+ -- 解决 messages 表统计查询慢查询
13
+ CREATE INDEX IF NOT EXISTS "messages_user_id_idx" ON "messages" USING btree ("user_id");--> statement-breakpoint
14
+ CREATE INDEX IF NOT EXISTS "messages_session_id_idx" ON "messages" USING btree ("session_id");--> statement-breakpoint
15
+ CREATE INDEX IF NOT EXISTS "messages_thread_id_idx" ON "messages" USING btree ("thread_id");--> statement-breakpoint
16
+
17
+ -- 解决 embeddings 删除慢查询
18
+ CREATE INDEX IF NOT EXISTS "embeddings_chunk_id_idx" ON "embeddings" USING btree ("chunk_id");--> statement-breakpoint