@lobehub/chat 1.14.0 → 1.14.2
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/Dockerfile +1 -1
- package/README.md +14 -8
- package/README.zh-CN.md +14 -8
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +3 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +3 -1
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth.mdx +11 -5
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +11 -5
- package/locales/ar/chat.json +1 -1
- package/locales/bg-BG/chat.json +1 -1
- package/locales/de-DE/chat.json +1 -1
- package/locales/en-US/chat.json +1 -1
- package/locales/es-ES/chat.json +1 -1
- package/locales/fr-FR/chat.json +1 -1
- package/locales/it-IT/chat.json +1 -1
- package/locales/ja-JP/chat.json +1 -1
- package/locales/ko-KR/chat.json +1 -1
- package/locales/nl-NL/chat.json +1 -1
- package/locales/pl-PL/chat.json +1 -1
- package/locales/pt-BR/chat.json +1 -1
- package/locales/ru-RU/chat.json +1 -1
- package/locales/tr-TR/chat.json +1 -1
- package/locales/vi-VN/chat.json +1 -1
- package/locales/zh-CN/chat.json +1 -1
- package/locales/zh-TW/chat.json +1 -1
- package/package.json +1 -1
- package/src/app/(main)/chat/settings/features/EditPage.tsx +6 -1
- package/src/config/llm.ts +2 -0
- package/src/config/modelProviders/zhipu.ts +2 -0
- package/src/locales/default/chat.ts +1 -1
- package/src/server/globalConfig/index.ts +11 -1
- package/src/store/agent/slices/chat/selectors.ts +7 -2
- package/src/store/chat/slices/message/selectors.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.14.2](https://github.com/lobehub/lobe-chat/compare/v1.14.1...v1.14.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-08-27**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix agent setting.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix agent setting, closes [#3633](https://github.com/lobehub/lobe-chat/issues/3633) ([298fddb](https://github.com/lobehub/lobe-chat/commit/298fddb))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 1.14.1](https://github.com/lobehub/lobe-chat/compare/v1.14.0...v1.14.1)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-08-27**</sup>
|
|
33
|
+
|
|
34
|
+
#### 💄 Styles
|
|
35
|
+
|
|
36
|
+
- **misc**: Improve zhipu model config.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### Styles
|
|
44
|
+
|
|
45
|
+
- **misc**: Improve zhipu model config, closes [#3635](https://github.com/lobehub/lobe-chat/issues/3635) ([1274e6a](https://github.com/lobehub/lobe-chat/commit/1274e6a))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
## [Version 1.14.0](https://github.com/lobehub/lobe-chat/compare/v1.13.2...v1.14.0)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-08-27**</sup>
|
package/Dockerfile
CHANGED
package/README.md
CHANGED
|
@@ -266,14 +266,20 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
266
266
|
|
|
267
267
|
<!-- AGENT LIST -->
|
|
268
268
|
|
|
269
|
-
| Recent Submits
|
|
270
|
-
|
|
|
271
|
-
| [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
269
|
+
| Recent Submits | Description |
|
|
270
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
271
|
+
| [Backtracking Question Expert](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | Hello! I am an expert in world knowledge, skilled in using backtracking questioning strategies to help you gain a deeper understanding and analysis of issues. Please enter a question, and I will respond to it according to the following process: |
|
|
272
|
+
|
|
273
|
+
1. Provide at least 3 optional backtracking questions that align with the strategy.
|
|
274
|
+
2. Answer each of these backtracking questions.
|
|
275
|
+
3. Use the above answers as evidence to logically and coherently provide a final answer to your question, assisted by visual charts.
|
|
276
|
+
|
|
277
|
+
Please tell me what issue you would like to explore?<br/>`backtracking-questions` `thinking-strategies` `problem-analysis` |
|
|
278
|
+
\| [TypeScript Solution Architect](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | Expert in TypeScript, Node.js, Vue.js 3, Nuxt.js 3, Express.js, React.js, and modern UI libraries.<br/>`type-script` `java-script` `web-development` `coding-standards` `best-practices` |
|
|
279
|
+
\| [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` |
|
|
280
|
+
\| [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` |
|
|
281
|
+
|
|
282
|
+
> 📊 Total agents: [<kbd>**318**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
277
283
|
|
|
278
284
|
<!-- AGENT LIST -->
|
|
279
285
|
|
package/README.zh-CN.md
CHANGED
|
@@ -254,14 +254,20 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
254
254
|
|
|
255
255
|
<!-- AGENT LIST -->
|
|
256
256
|
|
|
257
|
-
| 最近新增
|
|
258
|
-
|
|
|
259
|
-
| [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
257
|
+
| 最近新增 | 助手说明 |
|
|
258
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
259
|
+
| [后退提问专家](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | 你好!我是世界知识的专家,擅长用后退提问策略来帮助你更深入地理解和分析问题。请你输入一个问题,我会根据以下流程回答你的问题: |
|
|
260
|
+
|
|
261
|
+
1. 给出至少 3 个符合策略的可选后退提问。
|
|
262
|
+
2. 分别回答这些后退提问。
|
|
263
|
+
3. 将上述回答作为论据,有逻辑、条理地,使用可视化图表辅助对你的问题进行最终作答。
|
|
264
|
+
|
|
265
|
+
请告诉我你想要探讨的问题是什么?<br/>`后退提问` `思考策略` `问题分析` |
|
|
266
|
+
\| [TypeScript 解决方案架构师](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | 精通 TypeScript、Node.js、Vue.js 3、Nuxt.js 3、Express.js、React.js 和现代 UI 库。<br/>`类型脚本` `java-script` `网页开发` `编码标准` `最佳实践` |
|
|
267
|
+
\| [开发变量名转换专家](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | 在软件开发过程中,命名变量是一项常见却相对耗时的任务。本助手能够根据特定的命名规则自动将中文变量名转换为符合小驼峰、大驼峰、下划线、横线以及常量命名规范的英文变量名。这不仅提高了代码的可读性,还解决了变量命名的苦恼。<br/>`软件开发` `变量命名` `中文转英文` `代码规范` `自动转换` |
|
|
268
|
+
\| [提示工程专家](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交互` `写作` `优化` `咨询` |
|
|
269
|
+
|
|
270
|
+
> 📊 Total agents: [<kbd>**318**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
265
271
|
|
|
266
272
|
<!-- AGENT LIST -->
|
|
267
273
|
|
|
@@ -59,7 +59,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
59
59
|
| `AUTHENTIK_CLIENT_ID` | Required | The Client ID from the Authentik application provider details page |
|
|
60
60
|
| `AUTHENTIK_CLIENT_SECRET` | Required | The Client Secret from the Authentik application provider details page |
|
|
61
61
|
| `AUTHENTIK_ISSUER` | Required | The OpenID Configuration Issuer from the Authentik application provider details page |
|
|
62
|
-
| `ACCESS_CODE` | Required | Add a password to access this service, you can set a sufficiently long random password to "disable" access code authorization |
|
|
63
62
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
64
63
|
|
|
65
64
|
<Callout type={'tip'}>
|
|
@@ -54,7 +54,6 @@ https://your-domain/api/auth/callback/authentik
|
|
|
54
54
|
| `AUTHENTIK_CLIENT_ID` | 必选 | Authentik 提供程序详情页的 客户端 ID |
|
|
55
55
|
| `AUTHENTIK_CLIENT_SECRET` | 必选 | Authentik 提供程序详情页的 客户端 Secret |
|
|
56
56
|
| `AUTHENTIK_ISSUER` | 必选 | Authentik 提供程序详情页的 OpenID 配置颁发者 |
|
|
57
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
58
57
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
59
58
|
|
|
60
59
|
<Callout type={'tip'}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Configuring Cloudflare Zero Trust Authentication Service for LobeChat
|
|
3
3
|
description: >-
|
|
4
|
-
Learn how to configure Cloudflare Zero Trust for Single Sign-On (SSO) for
|
|
5
|
-
including creating an application provider, setting environment
|
|
6
|
-
deployment instructions.
|
|
4
|
+
Learn how to configure Cloudflare Zero Trust for Single Sign-On (SSO) for
|
|
5
|
+
LobeChat, including creating an application provider, setting environment
|
|
6
|
+
variables, and deployment instructions.
|
|
7
7
|
tags:
|
|
8
8
|
- Cloudflare Zero Trust
|
|
9
9
|
- Single Sign-On (SSO)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务
|
|
3
|
-
description:
|
|
3
|
+
description: >-
|
|
4
|
+
学习如何在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务,包括创建提供程序、配置环境变量和部署
|
|
5
|
+
LobeChat。详细步骤和必要环境变量设置。
|
|
4
6
|
tags:
|
|
5
7
|
- Cloudflare Zero Trust
|
|
6
8
|
- 身份验证
|
|
@@ -86,7 +86,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
86
86
|
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the Single Sign-On provider for LobeChat. Use `github` for Github. |
|
|
87
87
|
| `GITHUB_CLIENT_ID` | Required | Client ID in the Github App details page. |
|
|
88
88
|
| `GITHUB_CLIENT_SECRET` | Required | Client Secret in the Github App details page. |
|
|
89
|
-
| `ACCESS_CODE` | Required | Add a password for accessing this service. You can set a long random password to "disable" access code authorization. |
|
|
90
89
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. Only set it if the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
91
90
|
|
|
92
91
|
<Callout type={'tip'}>
|
|
@@ -82,7 +82,6 @@ tags:
|
|
|
82
82
|
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Github 请填写 `github`。 |
|
|
83
83
|
| `GITHUB_CLIENT_ID` | 必选 | Github App详情页的 客户端 ID |
|
|
84
84
|
| `GITHUB_CLIENT_SECRET` | 必选 | Github App详情页的 客户端 Secret |
|
|
85
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
86
85
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
87
86
|
|
|
88
87
|
<Callout type={'tip'}>
|
|
@@ -76,7 +76,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
76
76
|
| `AZURE_AD_CLIENT_ID` | Required | Client ID of the Microsoft Entra ID application. |
|
|
77
77
|
| `AZURE_AD_CLIENT_SECRET` | Required | Client Secret of the Microsoft Entra ID application. |
|
|
78
78
|
| `AZURE_AD_TENANT_ID` | Required | Tenant ID of the Microsoft Entra ID application. |
|
|
79
|
-
| `ACCESS_CODE` | Required | Add a password for accessing this service, you can set a sufficiently long random password to "disable" access code authorization. |
|
|
80
79
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It is only necessary to set it when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
81
80
|
|
|
82
81
|
<Callout type={'tip'}>
|
|
@@ -73,7 +73,6 @@ https://your-domain/api/auth/callback/azure-ad
|
|
|
73
73
|
| `AZURE_AD_CLIENT_ID` | 必选 | Microsoft Entra ID 应用程序的 Client ID |
|
|
74
74
|
| `AZURE_AD_CLIENT_SECRET` | 必选 | Microsoft Entra ID 应用程序的 Client Secret |
|
|
75
75
|
| `AZURE_AD_TENANT_ID` | 必选 | Microsoft Entra ID 应用程序的 Tenant ID |
|
|
76
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
77
76
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
78
77
|
|
|
79
78
|
<Callout type={'tip'}>
|
|
@@ -104,7 +104,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
104
104
|
| `ZITADEL_CLIENT_ID` | Required | Client ID (`ClientId` as shown in ZITADEL) of the ZITADEL application |
|
|
105
105
|
| `ZITADEL_CLIENT_SECRET` | Required | Client Secret (`ClientSecret` as shown in ZITADEL) of the ZITADEL application |
|
|
106
106
|
| `ZITADEL_ISSUER` | Required | Issuer URL of the ZITADEL application |
|
|
107
|
-
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
|
|
108
107
|
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
|
|
109
108
|
|
|
110
109
|
<Callout type={'tip'}>
|
|
@@ -100,7 +100,6 @@ http(s)://your-domain/api/auth/callback/zitadel
|
|
|
100
100
|
| `ZITADEL_CLIENT_ID` | 必选 | ZITADEL 应用的 Client ID(`ClientId`)。 |
|
|
101
101
|
| `ZITADEL_CLIENT_SECRET` | 必选 | ZITADEL 应用的 Client Secret(`ClientSecret`)。 |
|
|
102
102
|
| `ZITADEL_ISSUER` | 必选 | ZITADEL 应用的 OpenID Connect 颁发者(issuer)URL。 |
|
|
103
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的代码。您可以设置一个足够长的随机密码以「禁用」访问码授权。 |
|
|
104
103
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 中执行 OAuth 认证的回调地址。仅当默认地址不正确时才需要设置。`https://example.com/api/auth` |
|
|
105
104
|
|
|
106
105
|
<Callout type={'tip'}>
|
|
@@ -36,14 +36,20 @@ Before using NextAuth, please set the following variables in LobeChat's environm
|
|
|
36
36
|
Currently supported identity verification services include:
|
|
37
37
|
|
|
38
38
|
<Cards>
|
|
39
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
39
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
|
|
40
40
|
<Card
|
|
41
|
-
href={'/docs/self-hosting/advanced/
|
|
41
|
+
href={'/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
|
|
42
42
|
title={'Microsoft Entra ID'}
|
|
43
43
|
/>
|
|
44
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
45
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
46
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
44
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
|
|
45
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
|
|
46
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
|
|
47
|
+
<Card
|
|
48
|
+
href={'/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
|
|
49
|
+
title={'Cloudflare Zero Trust'}
|
|
50
|
+
/>
|
|
51
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
|
|
52
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
|
|
47
53
|
</Cards>
|
|
48
54
|
|
|
49
55
|
Click on the links to view the corresponding platform's configuration documentation.
|
|
@@ -33,14 +33,20 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
|
|
|
33
33
|
目前支持的身份验证服务有:
|
|
34
34
|
|
|
35
35
|
<Cards>
|
|
36
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
36
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
|
|
37
37
|
<Card
|
|
38
|
-
href={'/zh/docs/self-hosting/advanced/
|
|
38
|
+
href={'/zh/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
|
|
39
39
|
title={'Microsoft Entra ID'}
|
|
40
40
|
/>
|
|
41
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
42
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
43
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
41
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
|
|
42
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
|
|
43
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
|
|
44
|
+
<Card
|
|
45
|
+
href={'/zh/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
|
|
46
|
+
title={'Cloudflare Zero Trust'}
|
|
47
|
+
/>
|
|
48
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
|
|
49
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
|
|
44
50
|
</Cards>
|
|
45
51
|
|
|
46
52
|
点击即可查看对应平台的配置文档。
|
package/locales/ar/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "النموذج"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "مرحبًا، أنا **{{name}}**، يمكنك
|
|
5
|
+
"agentDefaultMessage": "مرحبًا، أنا **{{name}}**، يمكنك بدء المحادثة معي على الفور، أو يمكنك الذهاب إلى [إعدادات المساعد]({{url}}) لإكمال معلوماتي.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "مرحبًا، أنا **{{name}}**، {{systemRole}}، دعنا نبدأ الدردشة!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "مرحبًا، أنا **{{name}}**، دعنا نبدأ المحادثة!",
|
|
8
8
|
"agentsAndConversations": "الوكلاء والمحادثات",
|
package/locales/bg-BG/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Модел"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "
|
|
5
|
+
"agentDefaultMessage": "Здравейте, аз съм **{{name}}**, можете да започнете разговор с мен веднага или да отидете на [Настройки на асистента]({{url}}), за да попълните информацията ми.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Здравей, аз съм **{{name}}**, {{systemRole}}. Нека започнем да чатим!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Здравей, аз съм **{{name}}** и нека започнем разговора!",
|
|
8
8
|
"agentsAndConversations": "агенти и разговори",
|
package/locales/de-DE/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Modell"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Hallo, ich bin **{{name}}**. Du kannst sofort mit mir
|
|
5
|
+
"agentDefaultMessage": "Hallo, ich bin **{{name}}**. Du kannst sofort mit mir sprechen oder zu den [Assistenteneinstellungen]({{url}}) gehen, um meine Informationen zu vervollständigen.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Hallo, ich bin **{{name}}**, {{systemRole}}. Lass uns chatten!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Hallo, ich bin **{{name}}**. Lassen Sie uns ins Gespräch kommen!",
|
|
8
8
|
"agentsAndConversations": "Agenten und Unterhaltungen",
|
package/locales/en-US/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Model"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Hello, I
|
|
5
|
+
"agentDefaultMessage": "Hello, I am **{{name}}**. You can start a conversation with me right away, or you can go to [Assistant Settings]({{url}}) to complete my information.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start chatting!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Hello, I'm **{{name}}**, let's start chatting!",
|
|
8
8
|
"agentsAndConversations": "Assistants and Conversations",
|
package/locales/es-ES/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Cambiar modelo"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Hola, soy **{{name}}
|
|
5
|
+
"agentDefaultMessage": "Hola, soy **{{name}}**. Puedes comenzar a hablar conmigo de inmediato o ir a [Configuración del asistente]({{url}}) para completar mi información.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Hola, soy **{{name}}**, {{systemRole}}, ¡comencemos a chatear!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "¡Hola, soy **{{name}}**! Comencemos nuestra conversación.",
|
|
8
8
|
"agentsAndConversations": "agentesYConversaciones",
|
package/locales/fr-FR/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Modèle"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Bonjour, je suis **{{name}}
|
|
5
|
+
"agentDefaultMessage": "Bonjour, je suis **{{name}}**, vous pouvez commencer à discuter avec moi immédiatement ou vous rendre dans [Paramètres de l'assistant]({{url}}) pour compléter mes informations.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Bonjour, je suis **{{name}}**, {{systemRole}}. Commençons la conversation !",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Bonjour, je suis **{{name}}**. Commençons notre conversation !",
|
|
8
8
|
"agentsAndConversations": "Agents et conversations",
|
package/locales/it-IT/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Modelli"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Ciao, sono **{{name}}**, puoi iniziare a
|
|
5
|
+
"agentDefaultMessage": "Ciao, sono **{{name}}**, puoi iniziare subito a parlare con me oppure andare su [Impostazioni assistente]({{url}}) per completare le mie informazioni.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Ciao, sono **{{name}}**, {{systemRole}}, iniziamo a chattare!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Ciao, sono **{{name}}**. Cominciamo a chiacchierare!",
|
|
8
8
|
"agentsAndConversations": "Assistenti e Conversazioni",
|
package/locales/ja-JP/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "モデル"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "こんにちは、私は **{{name}}**
|
|
5
|
+
"agentDefaultMessage": "こんにちは、私は **{{name}}** です。すぐに私と会話を始めることもできますし、[アシスタント設定]({{url}}) に行って私の情報を充実させることもできます。",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "こんにちは、私は **{{name}}** です、{{systemRole}}、さあ、チャットを始めましょう!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "こんにちは、私は**{{name}}**です。会話しましょう!",
|
|
8
8
|
"agentsAndConversations": "エージェントと会話",
|
package/locales/ko-KR/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "모델"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "안녕하세요, 저는 **{{name}}**입니다. 지금
|
|
5
|
+
"agentDefaultMessage": "안녕하세요, 저는 **{{name}}**입니다. 지금 바로 저와 대화를 시작하시거나 [도우미 설정]({{url}})으로 가셔서 제 정보를 완성하실 수 있습니다.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "안녕하세요, 저는 **{{name}}**입니다. {{systemRole}}입니다. 대화를 시작해 봅시다!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "안녕하세요, 저는 **{{name}}**입니다. 대화를 시작해보세요!",
|
|
8
8
|
"agentsAndConversations": "에이전트 및 대화",
|
package/locales/nl-NL/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Modelen"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Hallo, ik ben **{{name}}**. Je kunt meteen met me praten of naar [Assistentinstellingen](
|
|
5
|
+
"agentDefaultMessage": "Hallo, ik ben **{{name}}**. Je kunt meteen met me beginnen praten, of je kunt naar [Assistentinstellingen]({{url}}) gaan om mijn informatie aan te vullen.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Hallo, ik ben **{{name}}**, {{systemRole}}, laten we beginnen met praten!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Hallo, ik ben **{{name}}**. Laten we beginnen met een gesprek!",
|
|
8
8
|
"agentsAndConversations": "agenten en gesprekken",
|
package/locales/pl-PL/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Przełącz model"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Cześć, jestem **{{name}}**, możesz od razu
|
|
5
|
+
"agentDefaultMessage": "Cześć, jestem **{{name}}**, możesz od razu rozpocząć ze mną rozmowę lub przejść do [ustawień asystenta]({{url}}), aby uzupełnić moje informacje.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Cześć, jestem **{{name}}**, {{systemRole}}, zacznijmy rozmowę!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Cześć, jestem **{{name}}**. Zacznijmy rozmowę!",
|
|
8
8
|
"agentsAndConversations": "Agenci i rozmowy",
|
package/locales/pt-BR/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Modelo"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Olá, eu sou **{{name}}**, você pode começar a conversar comigo agora ou ir para [Configurações do Assistente](
|
|
5
|
+
"agentDefaultMessage": "Olá, eu sou **{{name}}**, você pode começar a conversar comigo agora ou ir para [Configurações do Assistente]({{url}}) para completar minhas informações.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Olá, eu sou **{{name}}**, {{systemRole}}, vamos conversar!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Olá, sou o **{{name}}**, vamos começar a conversa!",
|
|
8
8
|
"agentsAndConversations": "Agentes e Conversas",
|
package/locales/ru-RU/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Модель"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "
|
|
5
|
+
"agentDefaultMessage": "Здравствуйте, я **{{name}}**. Вы можете сразу начать со мной разговор или перейти в [настройки помощника]({{url}}), чтобы дополнить мою информацию.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Привет, я **{{name}}**, {{systemRole}}. Давай начнем разговор!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Привет, я **{{name}}**, давай начнём разговор!",
|
|
8
8
|
"agentsAndConversations": "Агенты и беседы",
|
package/locales/tr-TR/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Model Değiştir"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Merhaba,
|
|
5
|
+
"agentDefaultMessage": "Merhaba, ben **{{name}}**. Hemen benimle konuşmaya başlayabilir veya [Asistan Ayarları]({{url}}) sayfasına giderek bilgilerimi güncelleyebilirsin.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Merhaba, Ben **{{name}}**, {{systemRole}}. Hemen sohbet etmeye başlayalım!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Merhaba, ben **{{name}}**. Konuşmaya başlayalım!",
|
|
8
8
|
"agentsAndConversations": "Ajanlar ve Konuşmalar",
|
package/locales/vi-VN/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "Mô hình"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "Xin chào, tôi là **{{name}}**, bạn có thể bắt đầu trò chuyện với tôi ngay
|
|
5
|
+
"agentDefaultMessage": "Xin chào, tôi là **{{name}}**, bạn có thể bắt đầu trò chuyện với tôi ngay bây giờ, hoặc bạn có thể đến [Cài đặt trợ lý]({{url}}) để hoàn thiện thông tin của tôi.",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "Xin chào, tôi là **{{name}}**, {{systemRole}}. Hãy bắt đầu trò chuyện ngay!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "Xin chào, tôi là **{{name}}**, chúng ta hãy bắt đầu trò chuyện nào!",
|
|
8
8
|
"agentsAndConversations": "Người hỗ trợ và cuộc trò chuyện",
|
package/locales/zh-CN/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "模型"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置](
|
|
5
|
+
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置]({{url}}) 完善我的信息。",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**,{{systemRole}},让我们开始对话吧!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "你好,我是 **{{name}}**,让我们开始对话吧!",
|
|
8
8
|
"agentsAndConversations": "助手与会话",
|
package/locales/zh-TW/chat.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"ModelSwitch": {
|
|
3
3
|
"title": "模型"
|
|
4
4
|
},
|
|
5
|
-
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即與我開始對話,也可以前往 [
|
|
5
|
+
"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即與我開始對話,也可以前往 [助手設定]({{url}}) 完善我的資訊。",
|
|
6
6
|
"agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**,{{systemRole}},讓我們開始對話吧!",
|
|
7
7
|
"agentDefaultMessageWithoutEdit": "你好,我是 **{{name}}**,讓我們開始對話吧!",
|
|
8
8
|
"agentsAndConversations": "助理與對話",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
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",
|
|
@@ -16,13 +16,18 @@ const EditPage = memo(() => {
|
|
|
16
16
|
const id = useSessionStore((s) => s.activeId);
|
|
17
17
|
const config = useAgentStore(agentSelectors.currentAgentConfig, isEqual);
|
|
18
18
|
const meta = useSessionStore(sessionMetaSelectors.currentAgentMeta, isEqual);
|
|
19
|
-
const [updateAgentConfig] = useAgentStore((s) => [
|
|
19
|
+
const [useFetchAgentConfig, updateAgentConfig] = useAgentStore((s) => [
|
|
20
|
+
s.useFetchAgentConfig,
|
|
21
|
+
s.updateAgentConfig,
|
|
22
|
+
]);
|
|
20
23
|
|
|
21
24
|
const [updateAgentMeta, title] = useSessionStore((s) => [
|
|
22
25
|
s.updateSessionMeta,
|
|
23
26
|
sessionMetaSelectors.currentAgentTitle(s),
|
|
24
27
|
]);
|
|
25
28
|
|
|
29
|
+
useFetchAgentConfig(id);
|
|
30
|
+
|
|
26
31
|
return (
|
|
27
32
|
<>
|
|
28
33
|
<PageTitle title={t('header.sessionWithName', { name: title })} />
|
package/src/config/llm.ts
CHANGED
|
@@ -20,6 +20,7 @@ export const getLLMConfig = () => {
|
|
|
20
20
|
|
|
21
21
|
ENABLED_ZHIPU: z.boolean(),
|
|
22
22
|
ZHIPU_API_KEY: z.string().optional(),
|
|
23
|
+
ZHIPU_MODEL_LIST: z.string().optional(),
|
|
23
24
|
|
|
24
25
|
ENABLED_DEEPSEEK: z.boolean(),
|
|
25
26
|
DEEPSEEK_API_KEY: z.string().optional(),
|
|
@@ -109,6 +110,7 @@ export const getLLMConfig = () => {
|
|
|
109
110
|
|
|
110
111
|
ENABLED_ZHIPU: !!process.env.ZHIPU_API_KEY,
|
|
111
112
|
ZHIPU_API_KEY: process.env.ZHIPU_API_KEY,
|
|
113
|
+
ZHIPU_MODEL_LIST: process.env.ZHIPU_MODEL_LIST,
|
|
112
114
|
|
|
113
115
|
ENABLED_DEEPSEEK: !!process.env.DEEPSEEK_API_KEY,
|
|
114
116
|
DEEPSEEK_API_KEY: process.env.DEEPSEEK_API_KEY,
|
|
@@ -3,7 +3,7 @@ export default {
|
|
|
3
3
|
title: '模型',
|
|
4
4
|
},
|
|
5
5
|
agentDefaultMessage:
|
|
6
|
-
'你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置](
|
|
6
|
+
'你好,我是 **{{name}}**,你可以立即与我开始对话,也可以前往 [助手设置]({{url}}) 完善我的信息。',
|
|
7
7
|
agentDefaultMessageWithSystemRole: '你好,我是 **{{name}}**,{{systemRole}},让我们开始对话吧!',
|
|
8
8
|
agentDefaultMessageWithoutEdit: '你好,我是 **{{name}}**,让我们开始对话吧!',
|
|
9
9
|
agentsAndConversations: '助手与会话',
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
OpenRouterProviderCard,
|
|
10
10
|
SiliconCloudProviderCard,
|
|
11
11
|
TogetherAIProviderCard,
|
|
12
|
+
ZhiPuProviderCard,
|
|
12
13
|
} from '@/config/modelProviders';
|
|
13
14
|
import { enableNextAuth } from '@/const/auth';
|
|
14
15
|
import { parseSystemAgent } from '@/server/globalConfig/parseSystemAgent';
|
|
@@ -26,6 +27,8 @@ export const getServerGlobalConfig = () => {
|
|
|
26
27
|
|
|
27
28
|
ENABLED_MOONSHOT,
|
|
28
29
|
ENABLED_ZHIPU,
|
|
30
|
+
ZHIPU_MODEL_LIST,
|
|
31
|
+
|
|
29
32
|
ENABLED_AWS_BEDROCK,
|
|
30
33
|
ENABLED_GOOGLE,
|
|
31
34
|
ENABLED_GROQ,
|
|
@@ -136,7 +139,14 @@ export const getServerGlobalConfig = () => {
|
|
|
136
139
|
}),
|
|
137
140
|
},
|
|
138
141
|
zeroone: { enabled: ENABLED_ZEROONE },
|
|
139
|
-
zhipu: {
|
|
142
|
+
zhipu: {
|
|
143
|
+
enabled: ENABLED_ZHIPU,
|
|
144
|
+
enabledModels: extractEnabledModels(ZHIPU_MODEL_LIST),
|
|
145
|
+
serverModelCards: transformToChatModelCards({
|
|
146
|
+
defaultChatModels: ZhiPuProviderCard.chatModels,
|
|
147
|
+
modelString: ZHIPU_MODEL_LIST
|
|
148
|
+
}),
|
|
149
|
+
},
|
|
140
150
|
},
|
|
141
151
|
oAuthSSOProviders: authEnv.NEXT_AUTH_SSO_PROVIDERS.trim().split(/[,,]/),
|
|
142
152
|
systemAgent: parseSystemAgent(appEnv.SYSTEM_AGENT),
|
|
@@ -20,8 +20,12 @@ const inboxAgentConfig = (s: AgentStore) =>
|
|
|
20
20
|
merge(DEFAULT_AGENT_CONFIG, s.agentMap[INBOX_SESSION_ID]);
|
|
21
21
|
const inboxAgentModel = (s: AgentStore) => inboxAgentConfig(s).model;
|
|
22
22
|
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const getAgentConfigById =
|
|
24
|
+
(id: string) =>
|
|
25
|
+
(s: AgentStore): LobeAgentConfig =>
|
|
26
|
+
merge(s.defaultAgentConfig, s.agentMap[id]);
|
|
27
|
+
|
|
28
|
+
const currentAgentConfig = (s: AgentStore): LobeAgentConfig => getAgentConfigById(s.activeId)(s);
|
|
25
29
|
|
|
26
30
|
const currentAgentChatConfig = (s: AgentStore): LobeAgentChatConfig =>
|
|
27
31
|
currentAgentConfig(s).chatConfig || {};
|
|
@@ -147,6 +151,7 @@ export const agentSelectors = {
|
|
|
147
151
|
currentAgentTTSVoice,
|
|
148
152
|
currentEnabledKnowledge,
|
|
149
153
|
currentKnowledgeIds,
|
|
154
|
+
getAgentConfigById,
|
|
150
155
|
hasEnabledKnowledge,
|
|
151
156
|
hasKnowledge,
|
|
152
157
|
hasSystemRole,
|
|
@@ -102,9 +102,9 @@ const currentChatsWithGuideMessage =
|
|
|
102
102
|
systemRole: meta.description,
|
|
103
103
|
});
|
|
104
104
|
const agentMsg = t(isAgentEditable ? 'agentDefaultMessage' : 'agentDefaultMessageWithoutEdit', {
|
|
105
|
-
id: activeId,
|
|
106
105
|
name: meta.title || t('defaultAgent'),
|
|
107
106
|
ns: 'chat',
|
|
107
|
+
url: `/chat/settings?session=${activeId}`,
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
const emptyInboxGuideMessage = {
|