@lobehub/chat 1.22.25 → 1.22.27
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 +50 -0
- package/docs/self-hosting/server-database.mdx +6 -2
- package/package.json +1 -1
- package/src/app/(main)/discover/_layout/Desktop/Header.tsx +2 -1
- package/src/app/(main)/settings/llm/index.tsx +3 -1
- package/src/app/metadata.ts +10 -7
- package/src/config/modelProviders/bedrock.ts +14 -0
- package/src/const/branding.ts +6 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +5 -3
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.22.27](https://github.com/lobehub/lobe-chat/compare/v1.22.26...v1.22.27)
|
6
|
+
|
7
|
+
<sup>Released on **2024-10-25**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add bedrock claude-3.5-sonnect-v2.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add bedrock claude-3.5-sonnect-v2, closes [#4468](https://github.com/lobehub/lobe-chat/issues/4468) ([a7fc251](https://github.com/lobehub/lobe-chat/commit/a7fc251))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.22.26](https://github.com/lobehub/lobe-chat/compare/v1.22.25...v1.22.26)
|
31
|
+
|
32
|
+
<sup>Released on **2024-10-23**</sup>
|
33
|
+
|
34
|
+
#### 💄 Styles
|
35
|
+
|
36
|
+
- **misc**: Fix some custom branding detail.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### Styles
|
44
|
+
|
45
|
+
- **misc**: Fix some custom branding detail, closes [#4465](https://github.com/lobehub/lobe-chat/issues/4465) ([3fb1f6a](https://github.com/lobehub/lobe-chat/commit/3fb1f6a))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.22.25](https://github.com/lobehub/lobe-chat/compare/v1.22.24...v1.22.25)
|
6
56
|
|
7
57
|
<sup>Released on **2024-10-23**</sup>
|
@@ -7,6 +7,7 @@ tags:
|
|
7
7
|
- Postgres
|
8
8
|
- Deployment Guide
|
9
9
|
---
|
10
|
+
|
10
11
|
# Deploying Server-Side Database
|
11
12
|
|
12
13
|
LobeChat defaults to using a client-side database (IndexedDB) but also supports deploying a server-side database. LobeChat uses Postgres as the backend storage database.
|
@@ -97,7 +98,10 @@ In the server-side database mode, we need an authentication service to distingui
|
|
97
98
|
|
98
99
|
[Clerk](https://clerk.com?utm_source=lobehub&utm_medium=docs) is an authentication SaaS service that provides out-of-the-box authentication capabilities with high productization, low integration costs, and a great user experience. For those who offer SaaS products, Clerk is a good choice. Our official [LobeChat Cloud](https://lobechat.com) uses Clerk as the authentication service.
|
99
100
|
|
100
|
-
The integration of Clerk is relatively simple, requiring only the configuration of
|
101
|
+
The integration of Clerk is relatively simple, requiring only the configuration of these environment variables:
|
102
|
+
|
103
|
+
- `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY`, which can be obtained from the Clerk console
|
104
|
+
- `CLERK_WEBHOOK_SECRET`, which is generated by following these instructions: [Configure Clerk Authentication Service](/docs/self-hosting/advanced/auth/clerk#create-and-configure-webhook-in-clerk).
|
101
105
|
|
102
106
|
<Callout type={'tip'}>
|
103
107
|
In Vercel deployment mode, we recommend using Clerk as the authentication service for a better user experience.
|
@@ -137,4 +141,4 @@ For detailed configuration guidelines on S3, please refer to [S3 Object Storage]
|
|
137
141
|
|
138
142
|
The above is a detailed explanation of configuring LobeChat with a server-side database. You can configure it according to your actual situation and then choose a deployment platform that suits you to start deployment:
|
139
143
|
|
140
|
-
<PlatformCards urlPrefix={'server-database'} />
|
144
|
+
<PlatformCards urlPrefix={'server-database'} />
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.27",
|
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",
|
@@ -5,6 +5,7 @@ import Link from 'next/link';
|
|
5
5
|
import { memo } from 'react';
|
6
6
|
|
7
7
|
import { ProductLogo } from '@/components/Branding';
|
8
|
+
import { isCustomBranding } from '@/const/version';
|
8
9
|
|
9
10
|
import CreateButton from '../../features/CreateButton';
|
10
11
|
import StoreSearchBar from '../../features/StoreSearchBar';
|
@@ -17,7 +18,7 @@ const Header = memo(() => {
|
|
17
18
|
<ProductLogo extra={'Discover'} size={36} type={'text'} />
|
18
19
|
</Link>
|
19
20
|
}
|
20
|
-
right={<CreateButton />}
|
21
|
+
right={!isCustomBranding && <CreateButton />}
|
21
22
|
style={{
|
22
23
|
position: 'relative',
|
23
24
|
zIndex: 10,
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
import { Flexbox } from 'react-layout-kit';
|
4
4
|
|
5
|
+
import { isCustomBranding } from '@/const/version';
|
6
|
+
|
5
7
|
import { useProviderList } from './ProviderList/providers';
|
6
8
|
import ProviderConfig from './components/ProviderConfig';
|
7
9
|
import Footer from './features/Footer';
|
@@ -14,7 +16,7 @@ const Page = () => {
|
|
14
16
|
{list.map(({ id, ...res }) => (
|
15
17
|
<ProviderConfig id={id as any} key={id} {...res} />
|
16
18
|
))}
|
17
|
-
<Footer />
|
19
|
+
{!isCustomBranding && <Footer />}
|
18
20
|
</Flexbox>
|
19
21
|
);
|
20
22
|
};
|
package/src/app/metadata.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Metadata } from 'next';
|
2
2
|
|
3
3
|
import { appEnv } from '@/config/app';
|
4
|
-
import { BRANDING_NAME } from '@/const/branding';
|
4
|
+
import { BRANDING_LOGO_URL, BRANDING_NAME, ORG_NAME } from '@/const/branding';
|
5
5
|
import { OFFICIAL_URL, OG_URL } from '@/const/url';
|
6
|
+
import { isCustomBranding, isCustomORG } from '@/const/version';
|
6
7
|
import { translation } from '@/server/translation';
|
7
8
|
|
8
9
|
const BASE_PATH = appEnv.NEXT_PUBLIC_BASE_PATH;
|
@@ -22,11 +23,13 @@ export const generateMetadata = async (): Promise<Metadata> => {
|
|
22
23
|
title: BRANDING_NAME,
|
23
24
|
},
|
24
25
|
description: t('chat.description', { appName: BRANDING_NAME }),
|
25
|
-
icons:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
icons: isCustomBranding
|
27
|
+
? BRANDING_LOGO_URL
|
28
|
+
: {
|
29
|
+
apple: '/apple-touch-icon.png?v=1',
|
30
|
+
icon: '/favicon.ico?v=1',
|
31
|
+
shortcut: '/favicon-32x32.ico?v=1',
|
32
|
+
},
|
30
33
|
manifest: noManifest ? undefined : '/manifest.json',
|
31
34
|
metadataBase: new URL(OFFICIAL_URL),
|
32
35
|
openGraph: {
|
@@ -53,7 +56,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
|
|
53
56
|
card: 'summary_large_image',
|
54
57
|
description: t('chat.description', { appName: BRANDING_NAME }),
|
55
58
|
images: [OG_URL],
|
56
|
-
site: '@lobehub',
|
59
|
+
site: isCustomORG ? `@${ORG_NAME}` : '@lobehub',
|
57
60
|
title: t('chat.title', { appName: BRANDING_NAME }),
|
58
61
|
},
|
59
62
|
};
|
@@ -32,6 +32,20 @@ const Bedrock: ModelProviderCard = {
|
|
32
32
|
displayName: 'Claude 3.5 Sonnet',
|
33
33
|
enabled: true,
|
34
34
|
functionCall: true,
|
35
|
+
id: 'anthropic.claude-3-5-sonnet-20241022-v2:0',
|
36
|
+
pricing: {
|
37
|
+
input: 3,
|
38
|
+
output: 15,
|
39
|
+
},
|
40
|
+
tokens: 200_000,
|
41
|
+
vision: true,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
description:
|
45
|
+
'Claude 3.5 Sonnet 提升了行业标准,性能超过竞争对手模型和 Claude 3 Opus,在广泛的评估中表现出色,同时具有我们中等层级模型的速度和成本。',
|
46
|
+
displayName: 'Claude 3.5 Sonnet 0620',
|
47
|
+
enabled: true,
|
48
|
+
functionCall: true,
|
35
49
|
id: 'anthropic.claude-3-5-sonnet-20240620-v1:0',
|
36
50
|
pricing: {
|
37
51
|
input: 3,
|
package/src/const/branding.ts
CHANGED
@@ -4,6 +4,8 @@ import { dark } from '@clerk/themes';
|
|
4
4
|
import { ElementsConfig, Theme } from '@clerk/types';
|
5
5
|
import { createStyles, useThemeMode } from 'antd-style';
|
6
6
|
|
7
|
+
import { BRANDING_URL } from '@/const/branding';
|
8
|
+
|
7
9
|
const prefixCls = 'cl';
|
8
10
|
|
9
11
|
export const useStyles = createStyles(
|
@@ -101,10 +103,10 @@ export const useAppearance = () => {
|
|
101
103
|
baseTheme: isDarkMode ? dark : undefined,
|
102
104
|
elements: styles,
|
103
105
|
layout: {
|
104
|
-
helpPageUrl: 'https://lobehub.com/docs',
|
105
|
-
privacyPageUrl: 'https://lobehub.com/privacy',
|
106
|
+
helpPageUrl: BRANDING_URL.help ?? 'https://lobehub.com/docs',
|
107
|
+
privacyPageUrl: BRANDING_URL.privacy ?? 'https://lobehub.com/privacy',
|
106
108
|
socialButtonsVariant: 'blockButton',
|
107
|
-
termsPageUrl: 'https://lobehub.com/terms',
|
109
|
+
termsPageUrl: BRANDING_URL.terms ?? 'https://lobehub.com/terms',
|
108
110
|
},
|
109
111
|
variables: {
|
110
112
|
borderRadius: `${theme.borderRadius}px`,
|