@lobehub/chat 1.134.4 → 1.134.6

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,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.134.6](https://github.com/lobehub/lobe-chat/compare/v1.134.5...v1.134.6)
6
+
7
+ <sup>Released on **2025-10-05**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
22
+ ### [Version 1.134.5](https://github.com/lobehub/lobe-chat/compare/v1.134.4...v1.134.5)
23
+
24
+ <sup>Released on **2025-10-05**</sup>
25
+
26
+ #### 🐛 Bug Fixes
27
+
28
+ - **database**: Prevent empty array insertion in aiModel batch operations.
29
+
30
+ <br/>
31
+
32
+ <details>
33
+ <summary><kbd>Improvements and Fixes</kbd></summary>
34
+
35
+ #### What's fixed
36
+
37
+ - **database**: Prevent empty array insertion in aiModel batch operations, closes [#9491](https://github.com/lobehub/lobe-chat/issues/9491) [#9429](https://github.com/lobehub/lobe-chat/issues/9429) [#9429](https://github.com/lobehub/lobe-chat/issues/9429) ([eb50c8b](https://github.com/lobehub/lobe-chat/commit/eb50c8b))
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.134.4](https://github.com/lobehub/lobe-chat/compare/v1.134.3...v1.134.4)
6
48
 
7
49
  <sup>Released on **2025-10-05**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,14 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-10-05",
5
+ "version": "1.134.6"
6
+ },
7
+ {
8
+ "children": {},
9
+ "date": "2025-10-05",
10
+ "version": "1.134.5"
11
+ },
2
12
  {
3
13
  "children": {
4
14
  "improvements": [
@@ -318,6 +318,24 @@ table message_chunks {
318
318
  }
319
319
  }
320
320
 
321
+ table message_groups {
322
+ id varchar(255) [pk, not null]
323
+ topic_id text
324
+ user_id text [not null]
325
+ parent_group_id varchar(255)
326
+ parent_message_id text
327
+ title varchar(255)
328
+ description text
329
+ client_id varchar(255)
330
+ accessed_at "timestamp with time zone" [not null, default: `now()`]
331
+ created_at "timestamp with time zone" [not null, default: `now()`]
332
+ updated_at "timestamp with time zone" [not null, default: `now()`]
333
+
334
+ indexes {
335
+ (client_id, user_id) [name: 'message_groups_client_id_user_id_unique', unique]
336
+ }
337
+ }
338
+
321
339
  table message_plugins {
322
340
  id text [pk, not null]
323
341
  tool_call_id text
@@ -411,6 +429,7 @@ table messages {
411
429
  agent_id text
412
430
  group_id text
413
431
  target_id text
432
+ message_group_id varchar(255)
414
433
  accessed_at "timestamp with time zone" [not null, default: `now()`]
415
434
  created_at "timestamp with time zone" [not null, default: `now()`]
416
435
  updated_at "timestamp with time zone" [not null, default: `now()`]
@@ -996,6 +1015,12 @@ ref: generations.generation_batch_id > generation_batches.id
996
1015
 
997
1016
  ref: generations.async_task_id - async_tasks.id
998
1017
 
1018
+ ref: message_groups.user_id - users.id
1019
+
1020
+ ref: message_groups.topic_id - topics.id
1021
+
1022
+ ref: message_groups.parent_group_id > message_groups.id
1023
+
999
1024
  ref: messages_files.file_id > files.id
1000
1025
 
1001
1026
  ref: messages_files.message_id > messages.id
@@ -1008,6 +1033,8 @@ ref: messages.topic_id - topics.id
1008
1033
 
1009
1034
  ref: threads.source_message_id - messages.id
1010
1035
 
1036
+ ref: messages.message_group_id > message_groups.id
1037
+
1011
1038
  ref: sessions.group_id - session_groups.id
1012
1039
 
1013
1040
  ref: topic_documents.document_id > documents.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.134.4",
3
+ "version": "1.134.6",
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",
@@ -379,8 +379,7 @@
379
379
  },
380
380
  "pnpm": {
381
381
  "onlyBuiltDependencies": [
382
- "@vercel/speed-insights",
383
- "better-sqlite3"
382
+ "@vercel/speed-insights"
384
383
  ],
385
384
  "overrides": {
386
385
  "mdast-util-gfm-autolink-literal": "2.0.0"
@@ -0,0 +1,21 @@
1
+ CREATE TABLE IF NOT EXISTS "message_groups" (
2
+ "id" varchar(255) PRIMARY KEY NOT NULL,
3
+ "topic_id" text,
4
+ "user_id" text NOT NULL,
5
+ "parent_group_id" varchar(255),
6
+ "parent_message_id" text,
7
+ "title" varchar(255),
8
+ "description" text,
9
+ "client_id" varchar(255),
10
+ "accessed_at" timestamp with time zone DEFAULT now() NOT NULL,
11
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
12
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL
13
+ );
14
+ --> statement-breakpoint
15
+ ALTER TABLE "messages" ADD COLUMN IF NOT EXISTS "message_group_id" varchar(255);--> statement-breakpoint
16
+ ALTER TABLE "message_groups" ADD CONSTRAINT "message_groups_topic_id_topics_id_fk" FOREIGN KEY ("topic_id") REFERENCES "public"."topics"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
17
+ ALTER TABLE "message_groups" ADD CONSTRAINT "message_groups_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
18
+ ALTER TABLE "message_groups" ADD CONSTRAINT "message_groups_parent_group_id_message_groups_id_fk" FOREIGN KEY ("parent_group_id") REFERENCES "public"."message_groups"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
19
+ ALTER TABLE "message_groups" ADD CONSTRAINT "message_groups_parent_message_id_messages_id_fk" FOREIGN KEY ("parent_message_id") REFERENCES "public"."messages"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
20
+ CREATE UNIQUE INDEX IF NOT EXISTS "message_groups_client_id_user_id_unique" ON "message_groups" USING btree ("client_id","user_id");--> statement-breakpoint
21
+ ALTER TABLE "messages" ADD CONSTRAINT "messages_message_group_id_message_groups_id_fk" FOREIGN KEY ("message_group_id") REFERENCES "public"."message_groups"("id") ON DELETE cascade ON UPDATE no action;