@lobehub/chat 1.116.0 → 1.116.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/.github/workflows/claude.yml +1 -1
- package/CHANGELOG.md +17 -0
- package/CLAUDE.md +1 -1
- package/changelog/v1.json +5 -0
- package/docs/development/database-schema.dbml +44 -0
- package/docs/usage/providers/bfl.mdx +1 -1
- package/docs/usage/providers/bfl.zh-CN.mdx +1 -1
- package/package.json +1 -1
- package/packages/database/migrations/0030_add_group_chat.sql +36 -0
- package/packages/database/migrations/meta/0030_snapshot.json +6417 -0
- package/packages/database/migrations/meta/_journal.json +7 -0
- package/packages/database/src/core/migrations.json +19 -0
- package/packages/database/src/models/__tests__/topic.test.ts +3 -1
- package/packages/database/src/repositories/tableViewer/index.test.ts +1 -1
- package/packages/database/src/schemas/chatGroup.ts +98 -0
- package/packages/database/src/schemas/index.ts +1 -0
- package/packages/database/src/schemas/message.ts +4 -1
- package/packages/database/src/schemas/relations.ts +26 -0
- package/packages/database/src/schemas/topic.ts +2 -0
- package/packages/database/src/types/chatGroup.ts +9 -0
- package/packages/database/src/utils/idGenerator.ts +1 -0
- package/packages/model-runtime/src/utils/modelParse.ts +17 -8
- package/src/features/FileViewer/Renderer/PDF/index.tsx +2 -2
@@ -41,7 +41,7 @@ jobs:
|
|
41
41
|
actions: read
|
42
42
|
|
43
43
|
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
|
44
|
-
model: 'claude-opus-4-1-20250805'
|
44
|
+
# model: 'claude-opus-4-1-20250805'
|
45
45
|
allowed_bots: 'bot'
|
46
46
|
|
47
47
|
# Optional: Customize the trigger phrase (default: @claude)
|
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.116.1](https://github.com/lobehub/lobe-chat/compare/v1.116.0...v1.116.1)
|
6
|
+
|
7
|
+
<sup>Released on **2025-08-27**</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
|
+
[](#readme-top)
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
5
22
|
## [Version 1.116.0](https://github.com/lobehub/lobe-chat/compare/v1.115.0...v1.116.0)
|
6
23
|
|
7
24
|
<sup>Released on **2025-08-27**</sup>
|
package/CLAUDE.md
CHANGED
@@ -24,7 +24,7 @@ read @.cursor/rules/project-structure.mdc
|
|
24
24
|
This repository adopts a monorepo structure.
|
25
25
|
|
26
26
|
- Use `pnpm` as the primary package manager for dependency management
|
27
|
-
- Use `bun` to run npm scripts
|
27
|
+
- Use `bun` to run npm scripts
|
28
28
|
- Use `bunx` to run executable npm packages
|
29
29
|
|
30
30
|
### TypeScript Code Style Guide
|
package/changelog/v1.json
CHANGED
@@ -129,6 +129,39 @@ table async_tasks {
|
|
129
129
|
updated_at "timestamp with time zone" [not null, default: `now()`]
|
130
130
|
}
|
131
131
|
|
132
|
+
table chat_groups {
|
133
|
+
id text [pk, not null]
|
134
|
+
title text
|
135
|
+
description text
|
136
|
+
config jsonb
|
137
|
+
client_id text
|
138
|
+
user_id text [not null]
|
139
|
+
pinned boolean [default: false]
|
140
|
+
accessed_at "timestamp with time zone" [not null, default: `now()`]
|
141
|
+
created_at "timestamp with time zone" [not null, default: `now()`]
|
142
|
+
updated_at "timestamp with time zone" [not null, default: `now()`]
|
143
|
+
|
144
|
+
indexes {
|
145
|
+
(client_id, user_id) [name: 'chat_groups_client_id_user_id_unique', unique]
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
table chat_groups_agents {
|
150
|
+
chat_group_id text [not null]
|
151
|
+
agent_id text [not null]
|
152
|
+
user_id text [not null]
|
153
|
+
enabled boolean [default: true]
|
154
|
+
order integer [default: 0]
|
155
|
+
role text [default: 'participant']
|
156
|
+
accessed_at "timestamp with time zone" [not null, default: `now()`]
|
157
|
+
created_at "timestamp with time zone" [not null, default: `now()`]
|
158
|
+
updated_at "timestamp with time zone" [not null, default: `now()`]
|
159
|
+
|
160
|
+
indexes {
|
161
|
+
(chat_group_id, agent_id) [pk]
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
132
165
|
table document_chunks {
|
133
166
|
document_id varchar(30) [not null]
|
134
167
|
chunk_id uuid [not null]
|
@@ -372,6 +405,8 @@ table messages {
|
|
372
405
|
parent_id text
|
373
406
|
quota_id text
|
374
407
|
agent_id text
|
408
|
+
group_id text
|
409
|
+
target_id text
|
375
410
|
accessed_at "timestamp with time zone" [not null, default: `now()`]
|
376
411
|
created_at "timestamp with time zone" [not null, default: `now()`]
|
377
412
|
updated_at "timestamp with time zone" [not null, default: `now()`]
|
@@ -838,6 +873,7 @@ table topics {
|
|
838
873
|
title text
|
839
874
|
favorite boolean [default: false]
|
840
875
|
session_id text
|
876
|
+
group_id text
|
841
877
|
user_id text [not null]
|
842
878
|
client_id text
|
843
879
|
history_summary text
|
@@ -909,6 +945,14 @@ ref: agents_to_sessions.session_id > sessions.id
|
|
909
945
|
|
910
946
|
ref: agents_to_sessions.agent_id > agents.id
|
911
947
|
|
948
|
+
ref: chat_groups_agents.chat_group_id > chat_groups.id
|
949
|
+
|
950
|
+
ref: chat_groups_agents.agent_id > agents.id
|
951
|
+
|
952
|
+
ref: chat_groups_agents.user_id - users.id
|
953
|
+
|
954
|
+
ref: chat_groups.user_id - users.id
|
955
|
+
|
912
956
|
ref: unstructured_chunks.file_id - files.id
|
913
957
|
|
914
958
|
ref: document_chunks.document_id > documents.id
|
@@ -12,7 +12,7 @@ tags:
|
|
12
12
|
|
13
13
|
# Using Black Forest Labs in LobeChat
|
14
14
|
|
15
|
-
<Image alt={'Using Black Forest Labs in LobeChat'} cover src={'https://hub-apac-1.lobeobjects.space/docs/
|
15
|
+
<Image alt={'Using Black Forest Labs in LobeChat'} cover src={'https://hub-apac-1.lobeobjects.space/docs/c7274a5b037227f042ad7558f535b5ea.png'} />
|
16
16
|
|
17
17
|
[Black Forest Labs](https://bfl.ai/) is currently the world's top-tier AI image generation research lab, having developed the FLUX series of high-quality image generation models and the FLUX Kontext series of image editing models. This document will guide you on how to use Black Forest Labs in LobeChat:
|
18
18
|
|
@@ -12,7 +12,7 @@ tags:
|
|
12
12
|
|
13
13
|
# 在 LobeChat 中使用 Black Forest Labs
|
14
14
|
|
15
|
-
<Image alt={'在 LobeChat 中使用 Black Forest Labs'} cover src={'https://hub-apac-1.lobeobjects.space/docs/
|
15
|
+
<Image alt={'在 LobeChat 中使用 Black Forest Labs'} cover src={'https://hub-apac-1.lobeobjects.space/docs/c7274a5b037227f042ad7558f535b5ea.png'} />
|
16
16
|
|
17
17
|
[Black Forest Labs](https://bfl.ai/) 是当前世界最顶级的 AI 图像生成实验室团队,研发了 FLUX 系列高质量图像生成模型,FLUX Kontext 系列图像编辑模型。本文将指导你如何在 LobeChat 中使用 Black Forest Labs:
|
18
18
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.116.
|
3
|
+
"version": "1.116.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",
|
@@ -0,0 +1,36 @@
|
|
1
|
+
CREATE TABLE IF NOT EXISTS "chat_groups" (
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
3
|
+
"title" text,
|
4
|
+
"description" text,
|
5
|
+
"config" jsonb,
|
6
|
+
"client_id" text,
|
7
|
+
"user_id" text NOT NULL,
|
8
|
+
"pinned" boolean DEFAULT false,
|
9
|
+
"accessed_at" timestamp with time zone DEFAULT now() NOT NULL,
|
10
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
11
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
12
|
+
);
|
13
|
+
--> statement-breakpoint
|
14
|
+
CREATE TABLE IF NOT EXISTS "chat_groups_agents" (
|
15
|
+
"chat_group_id" text NOT NULL,
|
16
|
+
"agent_id" text NOT NULL,
|
17
|
+
"user_id" text NOT NULL,
|
18
|
+
"enabled" boolean DEFAULT true,
|
19
|
+
"order" integer DEFAULT 0,
|
20
|
+
"role" text DEFAULT 'participant',
|
21
|
+
"accessed_at" timestamp with time zone DEFAULT now() NOT NULL,
|
22
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
23
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
|
24
|
+
CONSTRAINT "chat_groups_agents_chat_group_id_agent_id_pk" PRIMARY KEY("chat_group_id","agent_id")
|
25
|
+
);
|
26
|
+
--> statement-breakpoint
|
27
|
+
ALTER TABLE "messages" ADD COLUMN IF NOT EXISTS "group_id" text;--> statement-breakpoint
|
28
|
+
ALTER TABLE "messages" ADD COLUMN IF NOT EXISTS "target_id" text;--> statement-breakpoint
|
29
|
+
ALTER TABLE "topics" ADD COLUMN IF NOT EXISTS "group_id" text;--> statement-breakpoint
|
30
|
+
ALTER TABLE "chat_groups" ADD CONSTRAINT "chat_groups_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
31
|
+
ALTER TABLE "chat_groups_agents" ADD CONSTRAINT "chat_groups_agents_chat_group_id_chat_groups_id_fk" FOREIGN KEY ("chat_group_id") REFERENCES "public"."chat_groups"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
32
|
+
ALTER TABLE "chat_groups_agents" ADD CONSTRAINT "chat_groups_agents_agent_id_agents_id_fk" FOREIGN KEY ("agent_id") REFERENCES "public"."agents"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
33
|
+
ALTER TABLE "chat_groups_agents" ADD CONSTRAINT "chat_groups_agents_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
34
|
+
CREATE UNIQUE INDEX "chat_groups_client_id_user_id_unique" ON "chat_groups" USING btree ("client_id","user_id");--> statement-breakpoint
|
35
|
+
ALTER TABLE "messages" ADD CONSTRAINT "messages_group_id_chat_groups_id_fk" FOREIGN KEY ("group_id") REFERENCES "public"."chat_groups"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
36
|
+
ALTER TABLE "topics" ADD CONSTRAINT "topics_group_id_chat_groups_id_fk" FOREIGN KEY ("group_id") REFERENCES "public"."chat_groups"("id") ON DELETE cascade ON UPDATE no action;
|