@lobehub/chat 1.9.4 → 1.9.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.9.6](https://github.com/lobehub/lobe-chat/compare/v1.9.5...v1.9.6)
6
+
7
+ <sup>Released on **2024-08-09**</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.9.5](https://github.com/lobehub/lobe-chat/compare/v1.9.4...v1.9.5)
23
+
24
+ <sup>Released on **2024-08-08**</sup>
25
+
26
+ #### 💄 Styles
27
+
28
+ - **misc**: Updated AWS bedrock model list.
29
+
30
+ <br/>
31
+
32
+ <details>
33
+ <summary><kbd>Improvements and Fixes</kbd></summary>
34
+
35
+ #### Styles
36
+
37
+ - **misc**: Updated AWS bedrock model list, closes [#3315](https://github.com/lobehub/lobe-chat/issues/3315) ([042f2d3](https://github.com/lobehub/lobe-chat/commit/042f2d3))
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.9.4](https://github.com/lobehub/lobe-chat/compare/v1.9.3...v1.9.4)
6
48
 
7
49
  <sup>Released on **2024-08-06**</sup>
@@ -12,5 +12,55 @@ tags:
12
12
 
13
13
  # Deploying LobeChat Database on Zeabur
14
14
 
15
- TODO
15
+ <Callout type="info">
16
+ This article assumes that you are familiar with the basic principles and processes of deploying the LobeChat server database version, so it only includes content related to core environment variable configuration. If you are not familiar with the deployment principles of the LobeChat server database version, please refer to [Deploying Server Database](/en/docs/self-hosting/server-database) first.
17
+ </Callout>
16
18
 
19
+ If you want to deploy LobeChat Database on Zeabur, you can follow the steps below:
20
+
21
+ ## Create an Auth0 Account for Authentication
22
+
23
+ The [template for LobeChat Database on Zeabur](https://zeabur.com/templates/RRSPSD) uses NextAuth and Auth0 as auth provider, so you need to create an Auth0 account to get the required credentials.
24
+
25
+ You can refer to the [Auth0 documentation](/en/docs/self-hosting/advanced/auth/next-auth/auth0) to a detailed guide on how to create an Auth0 account and get those credentials.
26
+
27
+ ## Deploying on Zeabur
28
+
29
+ Here is the process for deploying the LobeChat server database version on Zeabur:
30
+
31
+ <Steps>
32
+
33
+ ### Go to the template page on Zeabur
34
+
35
+ Go to the [LobeChat Database template page](https://zeabur.com/templates/RRSPSD) on Zeabur and click on the "Deploy" button.
36
+
37
+ ### Fill in the required environment variables
38
+
39
+ After you click on the "Deploy" button, you will see a modal pop-up where you can fill in the required environment variables.
40
+
41
+ Here are the environment variables you need to fill in:
42
+
43
+ - OpenAI API key: Your OpenAI API key to get responses from OpenAI.
44
+ - Auth0 Client ID: Your Auth0 client ID.
45
+ - Auth0 Client Secret: Your Auth0 client secret.
46
+ - Auth0 Domain: Your Auth0 domain(without https:// prefix).
47
+ - LobeChat Domain: A free subdomain with `.zeabur.app` suffix.
48
+ - MinIO Public Domain: A free subdomain with `.zeabur.app` suffix for yout MinIO web port to enable public access for the uploaded files.
49
+
50
+ ### Select a region and deploy
51
+
52
+ After you fill all the required environment variables, select a region where you want to deploy your LobeChat Database and click on the "Deploy" button.
53
+
54
+ You will see another modal pop-up where you can see the deployment progress.
55
+
56
+ ### Access your LobeChat Database
57
+
58
+ Once the deployment is done, you will be navigated automatically to your project just created on Zeabur Dashboard.
59
+
60
+ You can see three services running: `LobeChat-Database`, `MinIO`, and `PostgreSQL`.
61
+
62
+ Press on the `LobeChat-Database` and you can see the public domain you just created, click on it to access your LobeChat Database.
63
+
64
+ You can also bind a custom domain for your services if you want, here is a guide on how to [bind a custom domain on Zeabur](https://zeabur.com/docs/deploy/domain-binding).
65
+
66
+ </Steps>
@@ -11,4 +11,56 @@ tags:
11
11
 
12
12
  # 使用 Zeabur 部署 LobeChat 数据库版
13
13
 
14
- TODO
14
+ <Callout type="info">
15
+ 本文假设你已经熟悉 LobeChat 服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 LobeChat 服务器数据库版的部署原理不熟悉,请先参考[部署服务器数据库](/en/docs/self-hosting/server-database)。
16
+ </Callout>
17
+
18
+ 如果你想在 Zeabur 上部署 LobeChat 数据库版,可以按照以下步骤操作:
19
+
20
+ ## Create an Auth0 Account for Authentication
21
+ ## 创建 Auth0 账户以进行身份验证
22
+
23
+ [在 Zeabur 上的 LobeChat 数据库模板](https://zeabur.com/templates/RRSPSD) 使用 NextAuth 和 Auth0 作为身份验证提供者,因此你需要创建一个 Auth0 账户以获取所需的凭证。
24
+
25
+ 你可以参考[Auth0 文档](/en/docs/self-hosting/advanced/auth/next-auth/auth0)获取关于如何创建 Auth0 账户和获取凭证的详细指南。
26
+
27
+ ## 在 Zeabur 上部署
28
+
29
+ 这里是在 Zeabur 上部署 LobeChat 服务器数据库版的流程:
30
+
31
+ <Steps>
32
+
33
+ ### 前往 Zeabur 上的模板页面
34
+
35
+ 前往 [Zeabur 上的 LobeChat 数据库模板页面](https://zeabur.com/templates/RRSPSD) 并点击 "Deploy" 按钮。
36
+
37
+ ### 填写必要的环境变量
38
+
39
+ 在你点击“部署“按钮后,你会看到一个模态弹窗,你可以在这里填写必要的环境变量。
40
+
41
+ 以下是你需要填写的环境变量:
42
+
43
+ - OpenAI API key: 你的 OpenAI API key 用于获取模型的访问权限。
44
+ - Auth0 Client ID: 你的 Auth0 客户端 ID 。
45
+ - Auth0 Client Secret: 你的 Auth0 客户端 secret 。
46
+ - Auth0 Domain: 你的 Auth0 域名(不需要 https:// 前缀) 。
47
+ - LobeChat Domain: 一个免费的 `.zeabur.app` 后缀的域名。
48
+ - MinIO Public Domain: 一个免费的 `.zeabur.app` 后缀的域名为了暴露 MinIO 服务以公开访问资源。
49
+
50
+ ### 选择一个区域并部署
51
+
52
+ 在你填写完所有必要的环境变量后,选择一个你想要部署 LobeChat 数据库的区域并点击“部署”按钮。
53
+
54
+ 你会看到另一个模态弹窗,你可以在这里看到部署的进度。
55
+
56
+ ### 访问你的 LobeChat 数据库版本
57
+
58
+ 当部署完成后,你会被自动导航到你在 Zeabur 控制台上刚刚创建的项目。
59
+
60
+ 你会看到三个服务正在运行:`LobeChat-Database`、`MinIO` 和 `PostgreSQL`。
61
+
62
+ 按下 `LobeChat-Database` 你会看到你刚刚创建的公共域名,点击它以访问你的 LobeChat 数据库。
63
+
64
+ 你可以选择绑定一个自定义域名,这里有一个关于如何在 Zeabur 上[绑定自定义域名](https://zeabur.com/docs/deploy/domain-binding)的指南。
65
+
66
+ </Steps>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.9.4",
3
+ "version": "1.9.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",
@@ -246,6 +246,7 @@
246
246
  "drizzle-kit": "^0.23.0",
247
247
  "eslint": "^8.57.0",
248
248
  "eslint-plugin-mdx": "^2.3.4",
249
+ "eslint-plugin-unused-imports": "4.0.1",
249
250
  "fake-indexeddb": "^6.0.0",
250
251
  "glob": "^10.4.3",
251
252
  "gray-matter": "^4.0.3",
@@ -1,6 +1,7 @@
1
1
  import { ModelProviderCard } from '@/types/llm';
2
2
 
3
3
  // ref https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
4
+ // ref https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html
4
5
  const Bedrock: ModelProviderCard = {
5
6
  chatModels: [
6
7
  {
@@ -87,18 +88,33 @@ const Bedrock: ModelProviderCard = {
87
88
  tokens: 100_000,
88
89
  },
89
90
  {
90
- description: 'Llama 2 Chat 13B v1,上下文大小为 4k,Llama 2 模型的对话用例优化变体。',
91
- displayName: 'Llama 2 Chat 13B',
91
+ description: 'Mistral Large 2 128k',
92
+ displayName: 'Mistral Large 2',
92
93
  enabled: true,
93
- id: 'meta.llama2-13b-chat-v1',
94
- tokens: 4096,
94
+ functionCall: true,
95
+ id: 'mistral.mistral-large-2407-v1:0',
96
+ tokens: 128_000,
97
+ },
98
+ {
99
+ description: 'Llama 3.1 405B Instruct (preview)',
100
+ displayName: 'Llama 3.1 405B Instruct (preview)',
101
+ enabled: true,
102
+ id: 'meta.llama3-405b-instruct-v1:0',
103
+ tokens: 128_000,
104
+ },
105
+ {
106
+ description: 'Llama 3.1 70B Instruct',
107
+ displayName: 'Llama 3.1 70B Instruct',
108
+ enabled: true,
109
+ id: 'meta.llama3-70b-instruct-v1:0',
110
+ tokens: 128_000,
95
111
  },
96
112
  {
97
- description: 'Llama 2 Chat 70B v1,上下文大小为 4k,Llama 2 模型的对话用例优化变体。',
98
- displayName: 'Llama 2 Chat 70B',
113
+ description: 'Llama 3.1 8B Instruct',
114
+ displayName: 'Llama 3.1 8B Instruct',
99
115
  enabled: true,
100
- id: 'meta.llama2-70b-chat-v1',
101
- tokens: 4096,
116
+ id: 'meta.llama3-8b-instruct-v1:0',
117
+ tokens: 128_000,
102
118
  },
103
119
  ],
104
120
  checkModel: 'anthropic.claude-instant-v1',