@lobehub/chat 1.12.11 → 1.12.13

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.12.13](https://github.com/lobehub/lobe-chat/compare/v1.12.12...v1.12.13)
6
+
7
+ <sup>Released on **2024-08-24**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Update 01.AI models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update 01.AI models, closes [#3586](https://github.com/lobehub/lobe-chat/issues/3586) ([c4a7f70](https://github.com/lobehub/lobe-chat/commit/c4a7f70))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.12.12](https://github.com/lobehub/lobe-chat/compare/v1.12.11...v1.12.12)
31
+
32
+ <sup>Released on **2024-08-24**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
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.12.11](https://github.com/lobehub/lobe-chat/compare/v1.12.10...v1.12.11)
6
48
 
7
49
  <sup>Released on **2024-08-23**</sup>
@@ -24,6 +24,7 @@ FROM base AS builder
24
24
  ARG USE_CN_MIRROR
25
25
 
26
26
  ENV NEXT_PUBLIC_SERVICE_MODE="server" \
27
+ APP_URL="http://app.com" \
27
28
  DATABASE_DRIVER="node" \
28
29
  DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" \
29
30
  KEY_VAULTS_SECRET="use-for-build"
package/README.md CHANGED
@@ -269,11 +269,11 @@ Our marketplace is not just a showcase platform but also a collaborative space.
269
269
  | Recent Submits | Description |
270
270
  | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
271
271
  | [Variable Name Conversion Expert](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | In software development, naming variables is a common yet relatively time-consuming task. This assistant can automatically convert Chinese variable names into English variable names that conform to camelCase, PascalCase, snake_case, kebab-case, and constant naming conventions based on specific naming rules. This not only improves code readability but also alleviates the frustration of variable naming.<br/>`software-development` `variable-naming` `chinese-to-english` `code-standards` `automatic-conversion` |
272
+ | [Prompt Engineering Expert](https://chat-preview.lobehub.com/market?agent=ai-prompts-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | Specializing in prompt optimization and design<br/>`prompt-engineering` `ai-interaction` `writing` `optimization` `consulting` |
272
273
  | [Commit Message Generator](https://chat-preview.lobehub.com/market?agent=commit-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | Expert at generating precise Git commit messages<br/>`programming` `git` `commit-message` `code-review` |
273
274
  | [RO-SCIRAW Prompt Word Expert](https://chat-preview.lobehub.com/market?agent=rosciraw)<br/><sup>By **[kirklin](https://github.com/kirklin)** on **2024-08-06**</sup> | The RO-SCIRAW framework, created by Kirk Lin, is a methodology for prompt words that provides a new paradigm for building highly precise and efficient prompt words. Please enter the information for the persona you want to create.<br/>`prompt-word-framework` |
274
- | [Social Media Sage](https://chat-preview.lobehub.com/market?agent=social-media-sage)<br/><sup>By **[thedivergentai](https://github.com/thedivergentai)** on **2024-08-06**</sup> | Social Media Marketing expert crafting winning strategies for brands and empowering businesses to thrive online<br/>`social-media-marketing` `branding` `growth-strategies` |
275
275
 
276
- > 📊 Total agents: [<kbd>**314**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
276
+ > 📊 Total agents: [<kbd>**315**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
277
277
 
278
278
  <!-- AGENT LIST -->
279
279
 
package/README.zh-CN.md CHANGED
@@ -257,11 +257,11 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
257
257
  | 最近新增 | 助手说明 |
258
258
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
259
259
  | [开发变量名转换专家](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | 在软件开发过程中,命名变量是一项常见却相对耗时的任务。本助手能够根据特定的命名规则自动将中文变量名转换为符合小驼峰、大驼峰、下划线、横线以及常量命名规范的英文变量名。这不仅提高了代码的可读性,还解决了变量命名的苦恼。<br/>`软件开发` `变量命名` `中文转英文` `代码规范` `自动转换` |
260
+ | [提示工程专家](https://chat-preview.lobehub.com/market?agent=ai-prompts-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | 专精 Prompt 优化与设计<br/>`提示工程` `ai交互` `写作` `优化` `咨询` |
260
261
  | [提交信息生成器](https://chat-preview.lobehub.com/market?agent=commit-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | 擅长生成精准的 Git 提交信息<br/>`编程` `git` `提交信息` `代码审查` |
261
262
  | [RO-SCIRAW 提示词专家](https://chat-preview.lobehub.com/market?agent=rosciraw)<br/><sup>By **[kirklin](https://github.com/kirklin)** on **2024-08-06**</sup> | RO-SCIRAW 框架是由 Kirk Lin 开创的提示词方法论,为构建高度精确和高效的提示词提供了一个全新的范式。请输入你要创建的分身信息。<br/>`提示词框架` |
262
- | [社交媒体专家](https://chat-preview.lobehub.com/market?agent=social-media-sage)<br/><sup>By **[thedivergentai](https://github.com/thedivergentai)** on **2024-08-06**</sup> | 社交媒体营销专家,为品牌制定成功策略,帮助企业在线蓬勃发展<br/>`社交媒体营销` `品牌塑造` `增长策略` |
263
263
 
264
- > 📊 Total agents: [<kbd>**314**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
264
+ > 📊 Total agents: [<kbd>**315**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
265
265
 
266
266
  <!-- AGENT LIST -->
267
267
 
@@ -1,6 +1,9 @@
1
1
  ---
2
2
  title: LobeChat Authentication Service Configuration
3
- description: Learn how to configure external authentication services using Clerk or Next Auth for centralized user authorization management. Supported authentication services include Auth0, Azure ID, etc.
3
+ description: >-
4
+ Learn how to configure external authentication services using Clerk or Next
5
+ Auth for centralized user authorization management. Supported authentication
6
+ services include Auth0, Azure ID, etc.
4
7
  tags:
5
8
  - Authentication Service
6
9
  - Next Auth
@@ -51,7 +51,8 @@ In this documentation, S3 refers to a compatible S3 storage solution, which supp
51
51
 
52
52
  <Callout type={'warning'}>
53
53
  Additionally, since this access domain is often a separate URL, it needs to be configured to allow cross-origin access to the site. Otherwise, cross-origin issues will occur in the browser.
54
- </Callout>
54
+
55
+ </Callout>
55
56
 
56
57
  ### `S3_ENABLE_PATH_STYLE`
57
58
 
@@ -65,13 +66,15 @@ In this documentation, S3 refers to a compatible S3 storage solution, which supp
65
66
  - path-style: `s3.example.net/mybucket/config.env`
66
67
  - virtual-host: `mybucket.s3.example.net/config.env`
67
68
 
68
- </Callout>
69
+
70
+ </Callout>
69
71
 
70
72
  <Callout type={'tip'}>
71
73
 
72
74
  Common S3 cloud service providers often default to the `virtual-host` mode, while self-deployed services like Minio default to using `path-style`. Therefore, if you use Minio as the S3 service, you need to set `S3_ENABLE_PATH_STYLE=1`.
73
75
 
74
- </Callout>
76
+
77
+ </Callout>
75
78
 
76
79
  </Steps>
77
80
 
@@ -73,10 +73,8 @@ S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
73
73
 
74
74
  常见的 S3 Cloud 服务商往往默认采用 `virtual-host` 模式,而自部署服务 minio 则默认使用的是 `path-style`。 因此如果你使用了 minio 作为 S3 服务,你需要设置 `S3_ENABLE_PATH_STYLE=1` 。
75
75
 
76
-
77
76
  </Callout>
78
77
 
79
-
80
78
  </Steps>
81
79
 
82
80
  ## S3 配置指南
@@ -40,6 +40,18 @@ After forking the project, due to Github's limitations, you need to manually ena
40
40
  src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/266985177-7677b4ce-c348-4145-9f60-829d448d5be6.png"
41
41
  />
42
42
 
43
+ If you encounter a sync failure, you need to manually click "Update Branch" once.
44
+
45
+ <Image
46
+ alt="GitHub Action Sync Failure"
47
+ src="https://github.com/user-attachments/assets/9baacac6-5af4-460b-862d-682b76c18459"
48
+ />
49
+
50
+ <Image
51
+ alt="Manually Sync 'Update Branch'"
52
+ src="https://github.com/user-attachments/assets/d524c20d-306a-45bc-971b-96920b87fab4"
53
+ />
54
+
43
55
  ## `B` Docker Deployment
44
56
 
45
57
  Upgrading the Docker deployment version is very simple, you just need to redeploy the latest LobeChat image. Here are the commands required to perform these steps:
@@ -35,6 +35,18 @@ tags:
35
35
  src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/266985177-7677b4ce-c348-4145-9f60-829d448d5be6.png"
36
36
  />
37
37
 
38
+ 如果你遇到了同步失败的情况,你需要手动重新点一次 「Update Branch」。
39
+
40
+ <Image
41
+ alt="GitHub Action 同步失败"
42
+ src="https://github.com/user-attachments/assets/9baacac6-5af4-460b-862d-682b76c18459"
43
+ />
44
+
45
+ <Image
46
+ alt="手动同步 「Update Branch」"
47
+ src="https://github.com/user-attachments/assets/d524c20d-306a-45bc-971b-96920b87fab4"
48
+ />
49
+
38
50
  ## `B` Docker 部署
39
51
 
40
52
  Docker 部署版本的升级非常简单,只需要重新部署 LobeChat 的最新镜像即可。 以下是执行这些步骤所需的指令:
@@ -109,6 +109,10 @@ KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=
109
109
 
110
110
  Make sure to add this to the Vercel environment variables as well.
111
111
 
112
+ ### Add the `APP_URL` Environment Variable
113
+
114
+ Finally, you need to add the `APP_URL` environment variable, which specifies the URL address of the LobeChat application.
115
+
112
116
  </Steps>
113
117
 
114
118
  ## 2. Configure Authentication Service
@@ -394,6 +398,8 @@ src={'https://github.com/lobehub/lobe-chat/assets/28616219/9cb5150d-6e1e-4c59-9a
394
398
  For easy copying, here is a summary of the environment variables required to configure the server-side database:
395
399
 
396
400
  ```shell
401
+ APP_URL=https://your-project.com
402
+
397
403
  # Specify the service mode as server
398
404
  NEXT_PUBLIC_SERVICE_MODE=server
399
405
 
@@ -102,6 +102,10 @@ KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=
102
102
 
103
103
  同样需要将其添加到 Vercel 环境变量中。
104
104
 
105
+ ### 添加 `APP_URL` 环境变量
106
+
107
+ 该部分最后需要添加 APP_URL 环境变量,用于指定LobeChat 应用的 URL 地址。
108
+
105
109
  </Steps>
106
110
 
107
111
  ## 二、 配置身份验证服务
@@ -375,6 +379,8 @@ S3_PUBLIC_DOMAIN=https://s3-dev.your-domain.com
375
379
  为方便一键复制,在此汇总配置服务端数据库所需要的环境变量:
376
380
 
377
381
  ```shell
382
+ APP_URL=https://your-project.com
383
+
378
384
  # 指定服务模式为 server
379
385
  NEXT_PUBLIC_SERVICE_MODE=server
380
386
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.12.11",
3
+ "version": "1.12.13",
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",
@@ -260,7 +260,7 @@
260
260
  "eslint-plugin-mdx": "^2.3.4",
261
261
  "eslint-plugin-unused-imports": "4.0.1",
262
262
  "fake-indexeddb": "^6.0.0",
263
- "glob": "^10.4.5",
263
+ "glob": "^11.0.0",
264
264
  "gray-matter": "^4.0.3",
265
265
  "happy-dom": "^14.12.3",
266
266
  "husky": "^9.1.5",
@@ -10,15 +10,6 @@ const ZeroOne: ModelProviderCard = {
10
10
  id: 'yi-large',
11
11
  tokens: 32_768,
12
12
  },
13
- {
14
- description:
15
- '在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
16
- displayName: 'Yi Large FC',
17
- enabled: true,
18
- functionCall: true,
19
- id: 'yi-large-fc',
20
- tokens: 32_768,
21
- },
22
13
  {
23
14
  description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
24
15
  displayName: 'Yi Medium',
@@ -32,6 +23,7 @@ const ZeroOne: ModelProviderCard = {
32
23
  enabled: true,
33
24
  id: 'yi-vision',
34
25
  tokens: 16_384,
26
+ vision: true,
35
27
  },
36
28
  {
37
29
  description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
@@ -43,17 +35,26 @@ const ZeroOne: ModelProviderCard = {
43
35
  {
44
36
  description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
45
37
  displayName: 'Yi Spark',
46
- enabled: true,
47
38
  id: 'yi-spark',
48
39
  tokens: 16_384,
49
40
  },
50
41
  {
51
42
  description:
52
- '基于Yi-Large超强模型的高阶服务,结合检索与生成技术提供精准答案,支持客⼾私有知识库(请联系客服申请)。',
43
+ '基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
53
44
  displayName: 'Yi Large RAG',
45
+ enabled: true,
54
46
  id: 'yi-large-rag',
55
47
  tokens: 16_384,
56
48
  },
49
+ {
50
+ description:
51
+ '在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
52
+ displayName: 'Yi Large FC',
53
+ enabled: true,
54
+ functionCall: true,
55
+ id: 'yi-large-fc',
56
+ tokens: 32_768,
57
+ },
57
58
  {
58
59
  description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
59
60
  displayName: 'Yi Large Turbo',
@@ -62,15 +63,13 @@ const ZeroOne: ModelProviderCard = {
62
63
  tokens: 16_384,
63
64
  },
64
65
  {
65
- description: '「兼容版本模型」文本推理能力增强。',
66
+ description: '初期版本,推荐使用 yi-large(新版本)',
66
67
  displayName: 'Yi Large Preview',
67
- enabled: true,
68
68
  id: 'yi-large-preview',
69
69
  tokens: 16_384,
70
70
  },
71
71
  ],
72
72
  checkModel: 'yi-large',
73
- disableBrowserRequest: true,
74
73
  id: 'zeroone',
75
74
  name: '01.AI',
76
75
  };