@lobehub/chat 1.92.1 → 1.92.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,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.92.3](https://github.com/lobehub/lobe-chat/compare/v1.92.2...v1.92.3)
6
+
7
+ <sup>Released on **2025-06-08**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix client s3 getObject throw error.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Support OpenRouter Claude 4 reasoning.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### What's fixed
23
+
24
+ - **misc**: Fix client s3 getObject throw error, closes [#8009](https://github.com/lobehub/lobe-chat/issues/8009) ([b91ca8c](https://github.com/lobehub/lobe-chat/commit/b91ca8c))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Support OpenRouter Claude 4 reasoning, closes [#8087](https://github.com/lobehub/lobe-chat/issues/8087) ([039be1d](https://github.com/lobehub/lobe-chat/commit/039be1d))
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
+
38
+ ### [Version 1.92.2](https://github.com/lobehub/lobe-chat/compare/v1.92.1...v1.92.2)
39
+
40
+ <sup>Released on **2025-06-07**</sup>
41
+
42
+ #### 💄 Styles
43
+
44
+ - **misc**: Add support to azureopenai embedding.
45
+
46
+ <br/>
47
+
48
+ <details>
49
+ <summary><kbd>Improvements and Fixes</kbd></summary>
50
+
51
+ #### Styles
52
+
53
+ - **misc**: Add support to azureopenai embedding, closes [#8075](https://github.com/lobehub/lobe-chat/issues/8075) ([0725f94](https://github.com/lobehub/lobe-chat/commit/0725f94))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ### [Version 1.92.1](https://github.com/lobehub/lobe-chat/compare/v1.92.0...v1.92.1)
6
64
 
7
65
  <sup>Released on **2025-06-07**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,25 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix client s3 getObject throw error."
6
+ ],
7
+ "improvements": [
8
+ "Support OpenRouter Claude 4 reasoning."
9
+ ]
10
+ },
11
+ "date": "2025-06-08",
12
+ "version": "1.92.3"
13
+ },
14
+ {
15
+ "children": {
16
+ "improvements": [
17
+ "Add support to azureopenai embedding."
18
+ ]
19
+ },
20
+ "date": "2025-06-07",
21
+ "version": "1.92.2"
22
+ },
2
23
  {
3
24
  "children": {
4
25
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.92.1",
3
+ "version": "1.92.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",
@@ -121,7 +121,7 @@
121
121
  "dependencies": {
122
122
  "@ant-design/icons": "^5.6.1",
123
123
  "@ant-design/pro-components": "^2.8.7",
124
- "@anthropic-ai/sdk": "^0.51.0",
124
+ "@anthropic-ai/sdk": "^0.53.0",
125
125
  "@auth/core": "^0.38.0",
126
126
  "@aws-sdk/client-bedrock-runtime": "^3.821.0",
127
127
  "@aws-sdk/client-s3": "^3.821.0",
@@ -660,6 +660,50 @@ const openrouterChatModels: AIChatModelCard[] = [
660
660
  },
661
661
  type: 'chat',
662
662
  },
663
+ {
664
+ abilities: {
665
+ functionCall: true,
666
+ reasoning: true,
667
+ vision: true,
668
+ },
669
+ contextWindowTokens: 200_000,
670
+ description:
671
+ 'Claude Sonnet 4 可以产生近乎即时的响应或延长的逐步思考,用户可以清晰地看到这些过程。API 用户还可以对模型思考的时间进行细致的控制',
672
+ displayName: 'Claude Sonnet 4',
673
+ id: 'anthropic/claude-sonnet-4',
674
+ maxOutput: 64_000,
675
+ pricing: {
676
+ input: 3,
677
+ output: 15,
678
+ },
679
+ releasedAt: '2025-05-23',
680
+ settings: {
681
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
682
+ },
683
+ type: 'chat',
684
+ },
685
+ {
686
+ abilities: {
687
+ functionCall: true,
688
+ reasoning: true,
689
+ vision: true,
690
+ },
691
+ contextWindowTokens: 200_000,
692
+ description:
693
+ 'Claude Opus 4 是 Anthropic 用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
694
+ displayName: 'Claude Opus 4',
695
+ id: 'anthropic/claude-opus-4',
696
+ maxOutput: 32_000,
697
+ pricing: {
698
+ input: 15,
699
+ output: 75,
700
+ },
701
+ releasedAt: '2025-05-23',
702
+ settings: {
703
+ extendParams: ['enableReasoning', 'reasoningBudgetToken'],
704
+ },
705
+ type: 'chat',
706
+ },
663
707
  {
664
708
  abilities: {
665
709
  functionCall: true,
@@ -0,0 +1,49 @@
1
+ CREATE TABLE "rbac_permissions" (
2
+ "id" integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (sequence name "rbac_permissions_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
3
+ "code" text NOT NULL,
4
+ "name" text NOT NULL,
5
+ "description" text,
6
+ "category" text NOT NULL,
7
+ "is_active" boolean DEFAULT true NOT NULL,
8
+ "accessed_at" timestamp with time zone DEFAULT now() NOT NULL,
9
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
10
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
11
+ CONSTRAINT "rbac_permissions_code_unique" UNIQUE("code")
12
+ );
13
+ --> statement-breakpoint
14
+ CREATE TABLE "rbac_role_permissions" (
15
+ "role_id" integer NOT NULL,
16
+ "permission_id" integer NOT NULL,
17
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
18
+ CONSTRAINT "rbac_role_permissions_role_id_permission_id_pk" PRIMARY KEY("role_id","permission_id")
19
+ );
20
+ --> statement-breakpoint
21
+ CREATE TABLE "rbac_roles" (
22
+ "id" integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (sequence name "rbac_roles_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
23
+ "name" text NOT NULL,
24
+ "display_name" text NOT NULL,
25
+ "description" text,
26
+ "is_system" boolean DEFAULT false NOT NULL,
27
+ "is_active" boolean DEFAULT true NOT NULL,
28
+ "accessed_at" timestamp with time zone DEFAULT now() NOT NULL,
29
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
30
+ "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
31
+ CONSTRAINT "rbac_roles_name_unique" UNIQUE("name")
32
+ );
33
+ --> statement-breakpoint
34
+ CREATE TABLE "rbac_user_roles" (
35
+ "user_id" text NOT NULL,
36
+ "role_id" integer NOT NULL,
37
+ "created_at" timestamp with time zone DEFAULT now() NOT NULL,
38
+ "expires_at" timestamp with time zone,
39
+ CONSTRAINT "rbac_user_roles_user_id_role_id_pk" PRIMARY KEY("user_id","role_id")
40
+ );
41
+ --> statement-breakpoint
42
+ ALTER TABLE "rbac_role_permissions" ADD CONSTRAINT "rbac_role_permissions_role_id_rbac_roles_id_fk" FOREIGN KEY ("role_id") REFERENCES "public"."rbac_roles"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
43
+ ALTER TABLE "rbac_role_permissions" ADD CONSTRAINT "rbac_role_permissions_permission_id_rbac_permissions_id_fk" FOREIGN KEY ("permission_id") REFERENCES "public"."rbac_permissions"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
44
+ ALTER TABLE "rbac_user_roles" ADD CONSTRAINT "rbac_user_roles_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
45
+ ALTER TABLE "rbac_user_roles" ADD CONSTRAINT "rbac_user_roles_role_id_rbac_roles_id_fk" FOREIGN KEY ("role_id") REFERENCES "public"."rbac_roles"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
46
+ CREATE INDEX "rbac_role_permissions_role_id_idx" ON "rbac_role_permissions" USING btree ("role_id");--> statement-breakpoint
47
+ CREATE INDEX "rbac_role_permissions_permission_id_idx" ON "rbac_role_permissions" USING btree ("permission_id");--> statement-breakpoint
48
+ CREATE INDEX "rbac_user_roles_user_id_idx" ON "rbac_user_roles" USING btree ("user_id");--> statement-breakpoint
49
+ CREATE INDEX "rbac_user_roles_role_id_idx" ON "rbac_user_roles" USING btree ("role_id");