@lobehub/chat 1.6.5 → 1.6.7

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +1 -0
  3. package/docs/self-hosting/advanced/sso-providers/auth0.zh-CN.mdx +4 -8
  4. package/docs/usage/agents/agent-organization.mdx +69 -0
  5. package/docs/usage/agents/agent-organization.zh-CN.mdx +67 -0
  6. package/docs/usage/foundation/basic.mdx +55 -0
  7. package/docs/usage/foundation/basic.zh-CN.mdx +56 -0
  8. package/docs/usage/foundation/share.mdx +46 -0
  9. package/docs/usage/foundation/share.zh-CN.mdx +43 -0
  10. package/docs/usage/foundation/text2image.mdx +49 -0
  11. package/docs/usage/foundation/text2image.zh-CN.mdx +46 -0
  12. package/docs/usage/foundation/translate.mdx +40 -0
  13. package/docs/usage/foundation/translate.zh-CN.mdx +39 -0
  14. package/docs/usage/foundation/tts-stt.mdx +47 -0
  15. package/docs/usage/foundation/tts-stt.zh-CN.mdx +45 -0
  16. package/docs/usage/foundation/vision.mdx +49 -0
  17. package/docs/usage/foundation/vision.zh-CN.mdx +45 -0
  18. package/docs/usage/providers/baichuan.mdx +64 -0
  19. package/docs/usage/providers/baichuan.zh-CN.mdx +61 -0
  20. package/docs/usage/providers/novita.mdx +80 -0
  21. package/docs/usage/providers/novita.zh-CN.mdx +76 -0
  22. package/docs/usage/providers/taichu.mdx +64 -0
  23. package/docs/usage/providers/taichu.zh-CN.mdx +61 -0
  24. package/package.json +3 -3
  25. package/src/app/(main)/settings/llm/ProviderList/providers.tsx +9 -2
  26. package/src/app/api/chat/agentRuntime.ts +7 -0
  27. package/src/components/ModelProviderIcon/index.tsx +5 -0
  28. package/src/config/llm.ts +6 -0
  29. package/src/config/modelProviders/deepseek.ts +1 -0
  30. package/src/config/modelProviders/google.ts +6 -18
  31. package/src/config/modelProviders/groq.ts +11 -5
  32. package/src/config/modelProviders/index.ts +4 -0
  33. package/src/config/modelProviders/novita.ts +91 -0
  34. package/src/config/modelProviders/ollama.ts +26 -3
  35. package/src/config/modelProviders/openai.ts +12 -9
  36. package/src/config/modelProviders/perplexity.ts +3 -3
  37. package/src/config/modelProviders/togetherai.ts +2 -2
  38. package/src/config/modelProviders/zeroone.ts +3 -7
  39. package/src/config/modelProviders/zhipu.ts +8 -4
  40. package/src/const/settings/llm.ts +5 -0
  41. package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +4 -0
  42. package/src/libs/agent-runtime/AgentRuntime.ts +8 -1
  43. package/src/libs/agent-runtime/novita/index.test.ts +251 -0
  44. package/src/libs/agent-runtime/novita/index.ts +15 -0
  45. package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +2 -2
  46. package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +1 -1
  47. package/src/libs/agent-runtime/togetherai/__snapshots__/index.test.ts.snap +3 -3
  48. package/src/libs/agent-runtime/types/type.ts +1 -0
  49. package/src/server/globalConfig/index.ts +2 -0
  50. package/src/server/routers/edge/config/__snapshots__/index.test.ts.snap +13 -7
  51. package/src/server/routers/edge/config/index.test.ts +1 -1
  52. package/src/types/user/settings/keyVaults.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.6.7](https://github.com/lobehub/lobe-chat/compare/v1.6.6...v1.6.7)
6
+
7
+ <sup>Released on **2024-07-23**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add new model provider Novita AI.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add new model provider Novita AI, closes [#3177](https://github.com/lobehub/lobe-chat/issues/3177) ([08b063f](https://github.com/lobehub/lobe-chat/commit/08b063f))
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.6.6](https://github.com/lobehub/lobe-chat/compare/v1.6.5...v1.6.6)
31
+
32
+ <sup>Released on **2024-07-22**</sup>
33
+
34
+ #### ♻ Code Refactoring
35
+
36
+ - **model**: Clear and add models.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Code refactoring
44
+
45
+ - **model**: Clear and add models, closes [#3208](https://github.com/lobehub/lobe-chat/issues/3208) ([ef54191](https://github.com/lobehub/lobe-chat/commit/ef54191))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.6.5](https://github.com/lobehub/lobe-chat/compare/v1.6.4...v1.6.5)
6
56
 
7
57
  <sup>Released on **2024-07-22**</sup>
package/README.md CHANGED
@@ -134,6 +134,7 @@ We have implemented support for the following model service providers:
134
134
  - **Minimax**: Integrated the Minimax models, including the MoE model **abab6**, offers a broader range of choices. [Learn more](https://www.minimaxi.com/)
135
135
  - **DeepSeek**: Integrated with the DeepSeek series models, an innovative AI startup from China, The product has been designed to provide a model that balances performance with price. [Learn more](https://www.deepseek.com/)
136
136
  - **Qwen**: Integrated the Qwen series models, including the latest **qwen-turbo**, **qwen-plus** and **qwen-max**. [Lean more](https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction)
137
+ - **Novita AI**: Access **Llama**, **Mistral**, and other leading open-source models at cheapest prices. Engage in uncensored role-play, spark creative discussions, and foster unrestricted innovation. **Pay For What You Use.** [Learn more](https://novita.ai/llm-api?utm_source=lobechat&utm_medium=ch&utm_campaign=api)
137
138
 
138
139
  At the same time, we are also planning to support more model service providers, such as Replicate and Perplexity, to further enrich our service provider library. If you would like LobeChat to support your favorite service provider, feel free to join our [community discussion](https://github.com/lobehub/lobe-chat/discussions/1284).
139
140
 
@@ -15,7 +15,7 @@ tags:
15
15
  <Steps>
16
16
  ### 创建 Auth0 应用
17
17
 
18
- 注册并登录 [Auth0][auth0-client-page],点击左侧导航栏的「Applications」,切换到应用管理界面,点击右上角「Create Application」以创建应用。
18
+ 注册并登录 [Auth0](https://manage.auth0.com/dashboard),点击左侧导航栏的「Applications」,切换到应用管理界面,点击右上角「Create Application」以创建应用。
19
19
 
20
20
  <Image
21
21
  alt="创建 Auth0 应用 S1"
@@ -80,7 +80,7 @@ http(s)://your-domain/api/auth/callback/auth0
80
80
  | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
81
81
 
82
82
  <Callout type={'tip'}>
83
- 前往 [📘 环境变量](/docs/self-hosting/environment-variable#auth0) 可查阅相关变量详情。
83
+ 前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#auth-0) 可查阅相关变量详情。
84
84
 
85
85
  </Callout>
86
86
  </Steps>
@@ -95,7 +95,7 @@ http(s)://your-domain/api/auth/callback/auth0
95
95
 
96
96
  如果你的企业或组织已有现有的统一身份认证设施,可在 Applications -> SSO Integrations 中,连接现有的单点登录服务。
97
97
 
98
- Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zoom 等单点登录服务,详细支持列表可参考 [这里][auth0-sso-integrations]
98
+ Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zoom 等单点登录服务,详细支持列表可参考 [这里](https://marketplace.auth0.com/features/sso-integrations)
99
99
 
100
100
  <Image
101
101
  alt="Connecting to an Existing Single Sign-On Service"
@@ -117,9 +117,5 @@ Auth0 支持 Azure Active Directory / Slack / Google Workspace / Office 365 / Zo
117
117
 
118
118
  <Callout>
119
119
  如果你需要限制登录人员,务必配置 **阻止策略**: 请在打开社交登录选项后,参考
120
- [这篇文章][auth0-login-actions-manual] 创建 Action 来设置阻止 / 允许列表。
120
+ [这篇文章](https://auth0.com/blog/permit-or-deny-login-requests-using-auth0-actions/) 创建 Action 来设置阻止 / 允许列表。
121
121
  </Callout>
122
-
123
- [auth0-client-page]: https://manage.auth0.com/dashboard
124
- [auth0-login-actions-manual]: https://auth0.com/blog/permit-or-deny-login-requests-using-auth0-actions/
125
- [auth0-sso-integrations]: https://marketplace.auth0.com/features/sso-integrations
@@ -0,0 +1,69 @@
1
+ ---
2
+ title: Efficiently Organize Your AI Assistants with LobeChat
3
+ description: >-
4
+ Learn how to use LobeChat's grouping, search, and pinning functions to
5
+ efficiently organize and locate your AI assistants.
6
+ tags:
7
+ - LobeChat
8
+ - AI assistants
9
+ - assistant organization
10
+ - grouping
11
+ - search function
12
+ - pinning function
13
+ ---
14
+
15
+ # Assistant Organization Guide
16
+
17
+ <Image
18
+ alt={'Assistant Organization'}
19
+ cover
20
+ src={'https://github.com/user-attachments/assets/5e04b71a-4c25-4f3d-ae7d-9237ffcb37be'}
21
+ />
22
+
23
+ LobeChat provides a rich variety of AI assistant resources. Users can easily add various assistants through the assistant market, offering a wide range of application scenarios for AI applications.
24
+
25
+ When you have added a large number of assistants, finding a specific assistant in the list may become challenging. LobeChat provides `search`, `grouping`, and `pinning` functions to help you better organize assistants and improve efficiency in locating them.
26
+
27
+ ## Assistant Grouping
28
+
29
+ Firstly, LobeChat's AI assistants support organization through grouping. You can categorize assistants of the same type together and easily search for the required assistants by collapsing and expanding groups.
30
+
31
+ ### Assistant Settings
32
+
33
+ <Image
34
+ alt={'Assistant Grouping'}
35
+ src={'https://github.com/user-attachments/assets/97a9d713-f4c1-4170-a707-d2060eeab35c'}
36
+ />
37
+
38
+ - In the menu of an individual assistant, selecting the `Move to Group` option can quickly categorize the assistant into the specified group.
39
+ - If you don't find the group you want, you can choose `Add Group` to quickly create a new group.
40
+
41
+ ### Group Settings
42
+
43
+ <Image
44
+ alt={'Group Menu'}
45
+ src={'https://github.com/user-attachments/assets/b9ca37db-0f0b-449f-b3b7-f147bec3a735'}
46
+ />
47
+
48
+ - In the group menu, you can quickly create a new assistant under that group.
49
+ - Clicking the `Group Management` button allows you to `rename`, `delete`, `sort`, and perform other operations on all groups.
50
+
51
+ ## Assistant Search
52
+
53
+ <Image
54
+ alt={'Assistant Search'}
55
+ src={'https://github.com/user-attachments/assets/816ad463-e1ef-478b-9930-c40948247288'}
56
+ />
57
+
58
+ - At the top of the assistant list, you can use the assistant search function to easily locate the assistant you need using keywords.
59
+
60
+ ## Assistant Pinning
61
+
62
+ <Image
63
+ alt={'Assistant Pinning'}
64
+ src={'https://github.com/user-attachments/assets/d574b08e-ab93-4723-9d1b-9e9be2bff7ee'}
65
+ />
66
+
67
+ - In the assistant menu, you can use the `Pin` function to pin the assistant to the top.
68
+ - After pinning an assistant, a pinned area will appear at the top of the assistant list, displaying all pinned assistants.
69
+ - For pinned assistants, you can choose `Unpin` to remove them from the pinned area.
@@ -0,0 +1,67 @@
1
+ ---
2
+ title: LobeChat 助手组织指南 - 提升助手管理效率
3
+ description: 了解如何通过分组、搜索和固定功能更好地组织 LobeChat 的 AI 助手,提升助手管理效率和定位效率。
4
+ tags:
5
+ - LobeChat
6
+ - AI 助手
7
+ - 助手组织
8
+ - 分组设置
9
+ - 助手搜索
10
+ - 助手固定
11
+ ---
12
+
13
+ # 助手组织指南
14
+
15
+ <Image
16
+ alt={'助手组织'}
17
+ cover
18
+ src={'https://github.com/user-attachments/assets/5e04b71a-4c25-4f3d-ae7d-9237ffcb37be'}
19
+ />
20
+
21
+ LobeChat 提供了丰富的 AI 助手资源,用户可以通过助手市场方便地添加各类助手,为 AI 应用提供了广泛的应用场景。
22
+
23
+ 当你添加了大量助手后,在列表中寻找特定助手可能会变得比较困难。LobeChat 提供了`搜索`、`分组`和`固定`功能,帮助您更好地组织助手,提升定位效率。
24
+
25
+ ## 助手分组
26
+
27
+ 首先 LobeChat 的 AI 助手支持以分组的方式进行组织。你可以将同类型的助手归类到一起,并通过折叠和展开分组的方式方便地查询所需助手。
28
+
29
+ ### 助手设置
30
+
31
+ <Image
32
+ alt={'助手分组'}
33
+ src={'https://github.com/user-attachments/assets/97a9d713-f4c1-4170-a707-d2060eeab35c'}
34
+ />
35
+
36
+ - 在单个助手的菜单中,选择`移动到分组`选项可以快速将该助手归类到指定分组。
37
+ - 如果没有你想要的分组,可以选择`添加分组`,快速创建一个新的分组。
38
+
39
+ ### 分组设置
40
+
41
+ <Image
42
+ alt={'分组菜单'}
43
+ src={'https://github.com/user-attachments/assets/b9ca37db-0f0b-449f-b3b7-f147bec3a735'}
44
+ />
45
+
46
+ - 在分组菜单中,可以快速在该分组下新建助手
47
+ - 点击`分组管理`按钮可以对所有分组进行`重命名`、`删除`、`排序`等操作。
48
+
49
+ ## 助手搜索
50
+
51
+ <Image
52
+ alt={'助手搜索'}
53
+ src={'https://github.com/user-attachments/assets/816ad463-e1ef-478b-9930-c40948247288'}
54
+ />
55
+
56
+ - 在助手列表的顶部,您可以通过助手搜索功能,方便地使用关键词定位到您所需的助手。
57
+
58
+ ## 助手固定
59
+
60
+ <Image
61
+ alt={'助手固定'}
62
+ src={'https://github.com/user-attachments/assets/d574b08e-ab93-4723-9d1b-9e9be2bff7ee'}
63
+ />
64
+
65
+ - 在助手菜单中,你可以使用`固定`功能将该助手固定在顶部。
66
+ - 固定助手后,助手列表的上方将出现一个固定区域,显示所有已固定的助手列表。
67
+ - 对于已固定的助手,你可以选择`解除固定`,将其移出固定区域。
@@ -0,0 +1,55 @@
1
+ ---
2
+ title: Basic Usage Guide for Conversations - Large Language Models (LLMs)
3
+ description: >-
4
+ Learn about the fundamental functions for interacting with Large Language
5
+ Models (LLMs) and how to utilize features like model selection, file/image
6
+ upload, temperature setting, and more.
7
+ tags:
8
+ - Large Language Models
9
+ - Model Selection
10
+ - File Upload
11
+ - Temperature Setting
12
+ - Voice Input
13
+ - Plugin Setting
14
+ ---
15
+
16
+ # Basic Usage Guide for Conversations
17
+
18
+ <Image
19
+ alt={'Basic Functions'}
20
+ cover
21
+ src={'https://github.com/user-attachments/assets/ca6baea8-d782-4611-8555-7c81078028db'}
22
+ />
23
+
24
+ In general, the basic interaction with Large Language Models (LLMs) can be done through the fundamental functions provided in this area (as shown above).
25
+
26
+ ## Basic Function Description
27
+
28
+ <Image
29
+ alt={'Basic Function Description'}
30
+ src={'https://github.com/user-attachments/assets/de9f188e-8a3a-49a0-bec6-ab628cdda7e6'}
31
+ />
32
+
33
+ 1. **Model Selection**: Choose the Large Language Model (LLM) to be used in the current conversation. For model settings, refer to [Model Providers](https://lobehub.com/docs/usage/providers).
34
+ 2. **File/Image Upload**: When the selected model supports file or image recognition, users can upload files or images during the conversation with the model.
35
+ 3. **Temperature Setting**: Adjust the randomness level of the model's output. The higher the value, the more random the output results. For detailed information, refer to the [Large Language Model Guide](https://lobehub.com/docs/usage/agents/model).
36
+ 4. **History Record Setting**: Set the number of chat records the model needs to remember in this conversation. The longer the history, the more conversation content the model can remember, but it will also consume more context tokens.
37
+ 5. **Voice Input**: Click this button to convert speech to text input. For more information, refer to [Speech-to-Text Conversion](https://lobehub.com/docs/usage/foundation/tts-stt).
38
+ 6. **Plugin Setting**: Choose the plugins to enable in this conversation. For more information, refer to [Plugin Usage](https://lobehub.com/docs/usage/plugins/basic-usage).
39
+ 7. **Token Usage**: Display the context length and token consumption of this conversation.
40
+ 8. **Start New Topic**: End the current conversation and start a new topic. For more information, refer to [Topic Usage](https://lobehub.com/docs/usage/agents/topics).
41
+ 9. **Send Button**: Send the current input content to the model. The dropdown menu provides additional send operation options.
42
+
43
+ <Image
44
+ alt={'Send Button'}
45
+ inStep
46
+ src={'https://github.com/user-attachments/assets/0833184e-91df-4b8e-a88e-99a19c20b86a'}
47
+ />
48
+
49
+ <Callout type={'info'}>
50
+ - **Send Shortcut**: Set a shortcut to send messages and line breaks using the Enter key or ⌘ +
51
+ Enter key. - **Add an AI Message**: Manually add and edit a message input by an AI character in
52
+ the conversation context, which will not trigger a model response. - **Add a User Message**: Add
53
+ the current input content as a message input by the user character to the conversation context,
54
+ which will not trigger a model response.
55
+ </Callout>
@@ -0,0 +1,56 @@
1
+ ---
2
+ title: 会话基本使用指南 - 大型语言模型交互指南
3
+ description: 了解如何使用大型语言模型进行基本交互,包括模型选择、文件/图片上传、温度设置、历史记录设置等。
4
+ tags:
5
+ - 大型语言模型
6
+ - LLM
7
+ - 模型选择
8
+ - 文件上传
9
+ - 温度设置
10
+ - 历史记录设置
11
+ - 语音输入
12
+ - 插件设置
13
+ - Token 用量
14
+ - 新建话题
15
+ - 发送按钮
16
+ ---
17
+
18
+ # 会话基本使用指南
19
+
20
+ <Image
21
+ alt={'基本功能'}
22
+ cover
23
+ src={'https://github.com/user-attachments/assets/ca6baea8-d782-4611-8555-7c81078028db'}
24
+ />
25
+
26
+ 通常情况下,与大型语言模型 (LLMs) 的基本交互可以通过此区域(如上图)提供的基础功能进行。
27
+
28
+ ## 基本功能说明
29
+
30
+ <Image
31
+ alt={'基本功能说明'}
32
+ src={'https://github.com/user-attachments/assets/de9f188e-8a3a-49a0-bec6-ab628cdda7e6'}
33
+ />
34
+
35
+ 1. **模型选择**:选择当前对话所使用的大型语言模型 (LLM)。模型的设置详见[模型服务商](https://lobehub.com/docs/usage/providers)。
36
+ 2. **文件/图片上传**:当所选模型支持文件或图片识别功能时,用户可以在与模型的对话中上传文件或图片。
37
+ 3. **温度设置**:调节模型输出的随机性程度。数值越高,输出结果越随机。详细说明请参考[大语言模型指南](https://lobehub.com/docs/usage/agents/model)。
38
+ 4. **历史记录设置**:设定本次对话中模型需要记忆的聊天记录数量。历史记录越长,模型能够记忆的对话内容越多,但同时也会消耗更多的上下文 token。
39
+ 5. **语音输入**:点击该按钮后,可以将语音转换为文字输入。有关详细信息,请参考[语音文字转换](https://lobehub.com/docs/usage/foundation/tts-stt)。
40
+ 6. **插件设置**:选择本次对话中需要启用的插件。有关详细信息,请参考[插件使用](https://lobehub.com/docs/usage/plugins/basic-usage)。
41
+ 7. **Token 用量**:显示本次对话的上下文长度以及 Token 消耗情况。
42
+ 8. **新建话题**:结束当前对话并开启一个新的对话主题。有关详细信息,请参考[话题使用](https://lobehub.com/docs/usage/agents/topics)。
43
+ 9. **发送按钮**:将当前输入内容发送至模型。下拉菜单提供额外的发送操作选项。
44
+
45
+ <Image
46
+ alt={'发送按钮'}
47
+ inStep
48
+ src={'https://github.com/user-attachments/assets/0833184e-91df-4b8e-a88e-99a19c20b86a'}
49
+ />
50
+
51
+ <Callout type={'info'}>
52
+ - **发送快捷键**:设置使用 Enter 键或 ⌘ + Enter 键发送消息和换行的快捷方式。 -
53
+ **添加一条AI消息**:在对话上下文中手动添加并编辑一条由 AI 角色输入的消息,该操作不会触发模型响应。
54
+ -
55
+ **添加一条用户消息**:将当前输入内容作为用户角色输入的消息添加到对话上下文中,该操作不会触发模型响应。
56
+ </Callout>
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Share Conversation Records - Screenshot Sharing & ShareGPT
3
+ description: >-
4
+ Learn how to share conversation records in LobeChat using Screenshot Sharing
5
+ and ShareGPT methods. Capture conversation details in images or generate
6
+ permanent links effortlessly.
7
+ tags:
8
+ - Share Conversation Records
9
+ - Screenshot Sharing
10
+ - ShareGPT
11
+ - Conversation Sharing
12
+ - AI Conversation Sharing
13
+ ---
14
+
15
+ # Share Conversation Records
16
+
17
+ <Image
18
+ alt={'Share Conversation'}
19
+ cover
20
+ src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'}
21
+ />
22
+
23
+ By clicking the `Share` button in the top right corner of the chat window, you can share the current conversation records with others. LobeChat supports two sharing methods: `Screenshot Sharing` and `ShareGPT Sharing`.
24
+
25
+ ## Screenshot Sharing
26
+
27
+ <Image
28
+ alt={'Screenshot Sharing'}
29
+ src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'}
30
+ />
31
+
32
+ The screenshot sharing feature will generate and save an image of the current conversation records, with the following options:
33
+
34
+ - Include Assistant Role Settings: Display the assistant's Prompt information in the screenshot.
35
+ - Include Background Image: Add a gradient background to the generated image.
36
+ - Include Footer: Add LobeChat footer information to the generated image.
37
+ - Image Format: Choose the format for saving the image.
38
+
39
+ ## ShareGPT
40
+
41
+ <Image
42
+ alt={'ShareGPT Sharing'}
43
+ src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'}
44
+ />
45
+
46
+ [ShareGPT](https://sharegpt.com/) is an AI conversation sharing platform that allows users to easily share their conversations with Large Language Models (LLMs). Users can generate a permanent link with just one click, making it convenient to share these conversations with friends or others. By integrating ShareGPT functionality, LobeChat can generate links for conversation records with just one click, making sharing easy.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: 分享会话记录 - LobeChat 分享功能介绍
3
+ description: 了解如何通过 LobeChat 的分享功能分享会话记录,包括截图分享和 ShareGPT 分享方式。通过分享功能,轻松与他人分享您的对话。
4
+ tags:
5
+ - LobeChat
6
+ - 分享会话记录
7
+ - 截图分享
8
+ - ShareGPT
9
+ - 对话分享
10
+ ---
11
+
12
+ # 分享会话记录
13
+
14
+ <Image
15
+ alt={'分享会话'}
16
+ cover
17
+ src={'https://github.com/user-attachments/assets/00acc7d6-dc66-4998-b1c6-15238be4c3c8'}
18
+ />
19
+
20
+ 通过会话窗口右上角的`分享`按钮,您可以将当前会话记录分享给其他人。LobeChat 支持两种分享方式:`截图分享`和 `ShareGPT 分享`。
21
+
22
+ ## 截图分享
23
+
24
+ <Image
25
+ alt={'截图分享'}
26
+ src={'https://github.com/user-attachments/assets/ccea7b00-6f92-4213-82ea-88789ef6f3b3'}
27
+ />
28
+
29
+ 截图分享功能将生成当前会话记录的图片并保存,其选项说明如下:
30
+
31
+ - 包含助手角色设置:在截图中显示助手的 Prompt 信息。
32
+ - 包含背景图:在生成的图片中添加渐变背景。
33
+ - 包含页脚:在生成的图片中添加 LobeChat 页脚信息。
34
+ - 图片格式:选择保存图片的格式。
35
+
36
+ ## ShareGPT
37
+
38
+ <Image
39
+ alt={'ShareGPT 分享'}
40
+ src={'https://github.com/user-attachments/assets/dea7c748-36e6-4f1b-aa21-acee2bf70d7d'}
41
+ />
42
+
43
+ [ShareGPT](https://sharegpt.com/) 是一个 AI 对话分享平台,允许用户便捷地分享他们与大型语言模型 (LLM) 的对话。用户只需点击即可生成永久链接,方便与朋友或其他人分享这些对话。LobeChat 通过集成 ShareGPT 功能,可以一键将对话记录生成链接,方便分享。
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: Guide to Using Text-to-Image Models in LobeChat
3
+ description: >-
4
+ Learn how to utilize text-to-image generation in LobeChat using DALL-E and
5
+ Midjourney plugins. Generate images seamlessly with AI assistance.
6
+ tags:
7
+ - Text-to-Image Models
8
+ - LobeChat
9
+ - DALL-E
10
+ - Midjourney
11
+ - Plugin Installation
12
+ - AI Assistance
13
+ ---
14
+
15
+ # Guide to Using Text-to-Image Models in LobeChat
16
+
17
+ LobeChat supports text-to-image generation through a plugin mechanism. Currently, LobeChat comes with the built-in DALL-E plugin, which allows users to generate images using OpenAI's DALL-E model. Additionally, users can also install the official Midjourney plugin to utilize the Midjourney text-to-image feature.
18
+
19
+ ## DALL-E Model
20
+
21
+ If you have configured the OpenAI API, you can enable the DALL-E plugin directly in the assistant interface and input prompts in the conversation for AI to generate images for you.
22
+
23
+ <Image
24
+ alt={'DALL-E Plugin'}
25
+ src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'}
26
+ />
27
+
28
+ If the DALL-E plugin is not available, please check if the OpenAI API key has been correctly configured.
29
+
30
+ ## Midjourney Model
31
+
32
+ LobeChat also offers the Midjourney plugin, which generates images by calling the Midjourney API. Please install the Midjourney plugin in the plugin store beforehand.
33
+
34
+ <Image
35
+ alt={'Midjourney Plugin'}
36
+ src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'}
37
+ />
38
+
39
+ <Callout type={'info'}>
40
+ info For plugin installation, please refer to [Plugin
41
+ Usage](https://lobehub.com/docs/usage/plugins/basic-usage)
42
+ </Callout>
43
+
44
+ When using the Midjourney plugin for the first time, you will need to fill in your Midjourney API key in the plugin settings.
45
+
46
+ <Image
47
+ alt={'Midjourney Plugin Settings'}
48
+ src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'}
49
+ />
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: LobeChat 文生图模型使用指南
3
+ description: 了解如何在 LobeChat 中使用 DALL-E 和 Midjourney 模型生成图片,配置插件并调用 API。
4
+ tags:
5
+ - LobeChat
6
+ - 文生图模型
7
+ - DALL-E
8
+ - Midjourney
9
+ - 插件
10
+ - API
11
+ ---
12
+
13
+ # 文生图模型使用指南
14
+
15
+ LobeChat 通过插件机制支持文本生成图片功能。目前,LobeChat 内置了 DALL-E 插件,支持调用 OpenAI 的 DALL-E 模型进行图片生成。此外,用户还可以安装官方提供的 Midjourney 插件,使用 Midjourney 文生图功能。
16
+
17
+ ## DALL-E 模型
18
+
19
+ 如果您已配置 OpenAI API,可以直接在助手界面启用 DALL-E 插件,并在对话中输入提示词,让 AI 为您生成图片。
20
+
21
+ <Image
22
+ alt={'DALL-E 插件'}
23
+ src={'https://github.com/user-attachments/assets/7b11b795-4dd3-4020-a9ba-a3723d5f1f28'}
24
+ />
25
+
26
+ 如果 DALL-E 插件不可用,请检查 OpenAI API 密钥是否已正确配置。
27
+
28
+ ## Midjourney 模型
29
+
30
+ LobeChat 还提供 Midjourney 插件,通过 API 调用 Midjourney 生成图片。请提前在插件商店中安装 Midjourney 插件。
31
+
32
+ <Image
33
+ alt={'Midjourney 插件'}
34
+ src={'https://github.com/user-attachments/assets/5f526846-02cd-4dbc-b6e3-a603fa5ac8e7'}
35
+ />
36
+
37
+ <Callout type={'info'}>
38
+ 插件安装请参考[插件使用](https://lobehub.com/docs/usage/plugins/basic-usage)
39
+ </Callout>
40
+
41
+ 首次使用 Midjourney 插件时,您需要在插件设置中填写您的 Midjourney API 密钥。
42
+
43
+ <Image
44
+ alt={'Midjourney 插件设置'}
45
+ src={'https://github.com/user-attachments/assets/a5d7a543-aec5-457e-a36c-aa1f82f7bc8a'}
46
+ />
@@ -0,0 +1,40 @@
1
+ ---
2
+ title: Translation of Conversation Records - LobeChat
3
+ description: >-
4
+ Learn how to translate conversation content in LobeChat with just one click.
5
+ Customize translation models for accurate results.
6
+ tags:
7
+ - Translation
8
+ - Conversation Translation
9
+ - AI Translation Model
10
+ ---
11
+
12
+ # Translation of Conversation Records
13
+
14
+ <Image
15
+ alt={'Translation'}
16
+ cover
17
+ src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'}
18
+ />
19
+
20
+ ## Translating Conversation Content
21
+
22
+ LobeChat supports users to translate conversation content into a specified language with just one click. After selecting the target language, LobeChat will use a pre-set AI model for translation and display the translated results in real-time in the chat window.
23
+
24
+ <Image
25
+ alt={'Displaying Conversation Translation Results'}
26
+ src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'}
27
+ />
28
+
29
+ ## Translation Model Settings
30
+
31
+ You can specify the model you wish to use as a translation assistant in the settings.
32
+
33
+ <Image
34
+ alt={'Setting Translation Model'}
35
+ src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'}
36
+ />
37
+
38
+ - Open the `Settings` panel
39
+ - Find the `Translation Settings` option under `System Assistants`
40
+ - Specify a model for your `Translation Assistant`
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: LobeChat 会话翻译功能 - 一键实时翻译对话内容
3
+ description: LobeChat 支持用户一键将对话内容翻译成指定语言,实时显示翻译结果。了解如何设置翻译模型以优化翻译体验。
4
+ tags:
5
+ - LobeChat
6
+ - 会话翻译
7
+ - 实时翻译
8
+ - 翻译模型设置
9
+ ---
10
+
11
+ # 翻译会话记录
12
+
13
+ <Image
14
+ alt={'翻译会话'}
15
+ cover
16
+ src={'https://github.com/user-attachments/assets/55230f32-b8dd-47db-a2ba-b3fe7e533dc8'}
17
+ />
18
+
19
+ ## 翻译对话中的内容
20
+
21
+ LobeChat 支持用户一键将对话内容翻译成指定语言。选择目标语言后,LobeChat 将调用预先设置的 AI 模型进行翻译,并将翻译结果实时显示在聊天窗口中。
22
+
23
+ <Image
24
+ alt={'显示会话翻译结果'}
25
+ src={'https://github.com/user-attachments/assets/868df2eb-0c44-4419-a76a-e173094e1e17'}
26
+ />
27
+
28
+ ## 翻译模型设置
29
+
30
+ 你可以在设置中指定您希望使用的模型作为翻译助手。
31
+
32
+ <Image
33
+ alt={'设置翻译模型'}
34
+ src={'https://github.com/user-attachments/assets/530c7c96-bac3-456d-a429-f60e7d2ade66'}
35
+ />
36
+
37
+ - 打开`设置`面板
38
+ - 在`系统助手`中找到`翻译设置`选项
39
+ - 为你的`翻译助手`指定一个模型
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Guide to Text-to-Speech Conversion - LobeChat TTS Feature
3
+ description: >-
4
+ Learn how to use LobeChat's text-to-speech (TTS) feature for voice input and
5
+ output. Explore speech-to-text (STT) functionality and customize TTS settings.
6
+ tags:
7
+ - Text-to-Speech
8
+ - TTS feature
9
+ - Speech-to-Text
10
+ - STT feature
11
+ - TTS settings
12
+ ---
13
+
14
+ # Guide to Text-to-Speech Conversion
15
+
16
+ LobeChat supports text-to-speech conversion, allowing users to input content through voice and have the AI output read aloud through speech.
17
+
18
+ ## Text-to-Speech (TTS)
19
+
20
+ Select any content in the chat window, choose `Text-to-Speech`, and the AI will use the TTS model to read the text content aloud.
21
+
22
+ <Image
23
+ alt={'TTS'}
24
+ src={'https://github.com/user-attachments/assets/d2714769-15f8-4d70-9128-607134163c52'}
25
+ />
26
+
27
+ ## Speech-to-Text (STT)
28
+
29
+ Select the voice input feature in the input window, and LobeChat will convert your speech to text and input it into the text box. After completing the input, you can send it directly to the AI.
30
+
31
+ <Image
32
+ alt={'STT'}
33
+ src={'https://github.com/user-attachments/assets/d643af6d-ca0f-4abd-9dd2-977dacecb25d'}
34
+ />
35
+
36
+ ## Text-to-Speech Conversion Settings
37
+
38
+ You can specify the model you want to use for text-to-speech conversion in the settings.
39
+
40
+ <Image
41
+ alt={'TTS Settings'}
42
+ src={'https://github.com/user-attachments/assets/2f7c5c45-ec6a-4393-8fa9-19a4c5f52f7a'}
43
+ />
44
+
45
+ - Open the `Settings` panel
46
+ - Find the `Text-to-Speech` settings
47
+ - Select the speech service and AI model you prefer