@lobehub/chat 1.0.13 → 1.0.14

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 (106) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +16 -14
  3. package/README.zh-CN.md +16 -14
  4. package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +2 -1
  5. package/docs/self-hosting/advanced/model-list.zh-CN.mdx +1 -0
  6. package/docs/self-hosting/advanced/server-database.mdx +4 -3
  7. package/docs/self-hosting/advanced/server-database.zh-CN.mdx +1 -0
  8. package/docs/self-hosting/advanced/settings-url-share.mdx +5 -4
  9. package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +5 -4
  10. package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +3 -3
  11. package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +2 -1
  12. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +10 -10
  13. package/docs/self-hosting/examples/ollama.mdx +23 -23
  14. package/docs/self-hosting/examples/ollama.zh-CN.mdx +23 -24
  15. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +2 -3
  16. package/docs/self-hosting/platform/vercel.mdx +2 -2
  17. package/docs/self-hosting/platform/vercel.zh-CN.mdx +2 -1
  18. package/docs/self-hosting/platform/zeabur.mdx +6 -7
  19. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +6 -7
  20. package/docs/usage/agents/prompt.mdx +1 -1
  21. package/docs/usage/agents/prompt.zh-CN.mdx +1 -1
  22. package/docs/usage/features/auth.mdx +13 -8
  23. package/docs/usage/features/auth.zh-CN.mdx +5 -3
  24. package/docs/usage/features/database.mdx +20 -14
  25. package/docs/usage/features/database.zh-CN.mdx +1 -1
  26. package/docs/usage/features/local-llm.mdx +5 -0
  27. package/docs/usage/features/local-llm.zh-CN.mdx +5 -0
  28. package/docs/usage/features/multi-ai-providers.mdx +5 -0
  29. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +5 -0
  30. package/docs/usage/features/plugin-system.zh-CN.mdx +2 -1
  31. package/docs/usage/features/pwa.mdx +3 -2
  32. package/docs/usage/features/pwa.zh-CN.mdx +3 -2
  33. package/docs/usage/providers/01ai.mdx +86 -0
  34. package/docs/usage/providers/01ai.zh-CN.mdx +85 -0
  35. package/docs/usage/providers/anthropic.mdx +79 -0
  36. package/docs/usage/providers/anthropic.zh-CN.mdx +74 -0
  37. package/docs/usage/providers/azure.mdx +89 -0
  38. package/docs/usage/providers/azure.zh-CN.mdx +82 -0
  39. package/docs/usage/providers/bedrock.mdx +140 -0
  40. package/docs/usage/providers/bedrock.zh-CN.mdx +135 -0
  41. package/docs/usage/providers/deepseek.mdx +91 -0
  42. package/docs/usage/providers/deepseek.zh-CN.mdx +86 -0
  43. package/docs/usage/providers/gemini.mdx +83 -0
  44. package/docs/usage/providers/gemini.zh-CN.mdx +80 -0
  45. package/docs/usage/providers/groq.mdx +1 -3
  46. package/docs/usage/providers/groq.zh-CN.mdx +1 -1
  47. package/docs/usage/providers/minimax.mdx +89 -0
  48. package/docs/usage/providers/minimax.zh-CN.mdx +85 -0
  49. package/docs/usage/providers/mistral.mdx +71 -0
  50. package/docs/usage/providers/mistral.zh-CN.mdx +66 -0
  51. package/docs/usage/providers/moonshot.mdx +70 -0
  52. package/docs/usage/providers/moonshot.zh-CN.mdx +66 -0
  53. package/docs/usage/providers/ollama/gemma.mdx +1 -1
  54. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +1 -1
  55. package/docs/usage/providers/ollama/qwen.mdx +1 -1
  56. package/docs/usage/providers/ollama/qwen.zh-CN.mdx +1 -1
  57. package/docs/usage/providers/ollama.mdx +1 -1
  58. package/docs/usage/providers/ollama.zh-CN.mdx +1 -1
  59. package/docs/usage/providers/openai.mdx +95 -0
  60. package/docs/usage/providers/openai.zh-CN.mdx +87 -0
  61. package/docs/usage/providers/openrouter.mdx +111 -0
  62. package/docs/usage/providers/openrouter.zh-CN.mdx +109 -0
  63. package/docs/usage/providers/perplexity.mdx +64 -0
  64. package/docs/usage/providers/perplexity.zh-CN.mdx +61 -0
  65. package/docs/usage/providers/qwen.mdx +93 -0
  66. package/docs/usage/providers/qwen.zh-CN.mdx +86 -0
  67. package/docs/usage/providers/stepfun.mdx +69 -0
  68. package/docs/usage/providers/stepfun.zh-CN.mdx +64 -0
  69. package/docs/usage/providers/togetherai.mdx +74 -0
  70. package/docs/usage/providers/togetherai.zh-CN.mdx +71 -0
  71. package/docs/usage/providers/zhipu.mdx +69 -0
  72. package/docs/usage/providers/zhipu.zh-CN.mdx +64 -0
  73. package/docs/usage/providers.mdx +36 -0
  74. package/docs/usage/providers.zh-CN.mdx +34 -0
  75. package/docs/usage/start.mdx +2 -0
  76. package/docs/usage/start.zh-CN.mdx +2 -0
  77. package/locales/ar/setting.json +1 -0
  78. package/locales/bg-BG/setting.json +1 -0
  79. package/locales/de-DE/setting.json +1 -0
  80. package/locales/en-US/setting.json +1 -0
  81. package/locales/es-ES/setting.json +1 -0
  82. package/locales/fr-FR/setting.json +1 -0
  83. package/locales/it-IT/setting.json +1 -0
  84. package/locales/ja-JP/setting.json +1 -0
  85. package/locales/ko-KR/setting.json +1 -0
  86. package/locales/nl-NL/setting.json +1 -0
  87. package/locales/pl-PL/setting.json +1 -0
  88. package/locales/pt-BR/setting.json +1 -0
  89. package/locales/ru-RU/setting.json +1 -0
  90. package/locales/tr-TR/setting.json +1 -0
  91. package/locales/vi-VN/setting.json +1 -0
  92. package/locales/zh-CN/setting.json +1 -0
  93. package/locales/zh-TW/setting.json +1 -0
  94. package/package.json +6 -5
  95. package/src/app/(main)/settings/llm/ProviderList/providers.tsx +33 -4
  96. package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +41 -11
  97. package/src/app/(main)/settings/llm/index.tsx +1 -2
  98. package/src/features/ChatInput/useSend.ts +2 -1
  99. package/src/features/Conversation/Messages/Assistant/ToolCalls/index.tsx +1 -1
  100. package/src/features/Conversation/Messages/components/Arguments.tsx +5 -3
  101. package/src/features/Conversation/Messages/hooks/useYamlArguments.ts +5 -2
  102. package/src/locales/default/setting.ts +1 -0
  103. package/src/store/chat/slices/plugin/action.test.ts +5 -5
  104. package/src/store/chat/slices/plugin/action.ts +6 -2
  105. package/src/store/tool/slices/builtin/action.test.ts +8 -11
  106. package/src/store/tool/slices/builtin/action.ts +9 -9
@@ -40,7 +40,8 @@ Vercel 分配的域名 DNS 在某些区域被污染了,绑定自定义域名
40
40
  如果你根据上述中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 “有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
41
41
 
42
42
  <Callout>
43
- 我们建议按照 [📘 LobeChat 自部署保持更新](/docs/self-hosting/advanced/upstream-sync) 步骤重新部署。
43
+ 我们建议按照 [📘 LobeChat 自部署保持更新](/docs/self-hosting/advanced/upstream-sync)
44
+ 步骤重新部署。
44
45
  </Callout>
45
46
 
46
47
  [deploy-button-image]: https://vercel.com/button
@@ -38,10 +38,9 @@ You can use the subdomain provided by Zeabur, or choose to bind a custom domain.
38
38
 
39
39
  # Deploy LobeChat with Zeabur as serverless function
40
40
 
41
- >Note: There are still issues with [middlewares and rewrites of next.js on Zeabur](https://github.com/lobehub/lobe-chat/pull/2775?notification_referrer_id=NT_kwDOAdi2DrQxMDkyODQ4MDc2NTozMDk3OTU5OA#issuecomment-2146713899), use at your own risk!
41
+ > Note: There are still issues with [middlewares and rewrites of next.js on Zeabur](https://github.com/lobehub/lobe-chat/pull/2775?notification_referrer_id=NT_kwDOAdi2DrQxMDkyODQ4MDc2NTozMDk3OTU5OA#issuecomment-2146713899), use at your own risk!
42
42
 
43
- Since Zeabur does NOT officially support FREE users deploy containerized service, you may wish to deploy LobeChat as a serverless function service.
44
- To deploy LobeChat as a serverless function service on Zeabur, you can follow the steps below:
43
+ Since Zeabur does NOT officially support FREE users deploy containerized service, you may wish to deploy LobeChat as a serverless function service. To deploy LobeChat as a serverless function service on Zeabur, you can follow the steps below:
45
44
 
46
45
  ## Zeabur Deployment Process
47
46
 
@@ -52,10 +51,11 @@ To deploy LobeChat as a serverless function service on Zeabur, you can follow th
52
51
  ### Add Zeabur pack config file
53
52
 
54
53
  Add a `zbpack.json` configuration file with the following content to the root dir of your fork:
54
+
55
55
  ```json
56
56
  {
57
- "serverless": true,
58
- "ignore_dockerfile": true
57
+ "ignore_dockerfile": true,
58
+ "serverless": true
59
59
  }
60
60
  ```
61
61
 
@@ -73,8 +73,7 @@ Create a project, then create a service under this project.
73
73
 
74
74
  ### Link your fork of LobeChat to the just created Zeabur service.
75
75
 
76
- When adding service, choose github.
77
- This may triger a oAuth depend on varies factors like how you login to Zeabur and if you have already authorized Zeabur to access all your repos
76
+ When adding service, choose github. This may triger a oAuth depend on varies factors like how you login to Zeabur and if you have already authorized Zeabur to access all your repos
78
77
 
79
78
  ### Bind a custom domain (optional)
80
79
 
@@ -37,10 +37,9 @@ tags:
37
37
 
38
38
  # 使用 Zeabur 将 LobeChat 部署为无服务器函数
39
39
 
40
- >**注意:** 仍然存在关于 [Zeabur 上 next.js 的中间件和重写问题](https://github.com/lobehub/lobe-chat/pull/2775?notification_referrer_id=NT_kwDOAdi2DrQxMDkyODQ4MDc2NTozMDk3OTU5OA#issuecomment-2146713899),请自担风险!
40
+ > **注意:** 仍然存在关于 [Zeabur 上 next.js 的中间件和重写问题](https://github.com/lobehub/lobe-chat/pull/2775?notification_referrer_id=NT_kwDOAdi2DrQxMDkyODQ4MDc2NTozMDk3OTU5OA#issuecomment-2146713899),请自担风险!
41
41
 
42
- 由于 Zeabur 并未官方支持免费用户部署容器化服务,您可能希望将 LobeChat 部署为无服务器函数服务。
43
- 要在 Zeabur 上将 LobeChat 部署为无服务器函数服务,您可以按照以下步骤操作:
42
+ 由于 Zeabur 并未官方支持免费用户部署容器化服务,您可能希望将 LobeChat 部署为无服务器函数服务。要在 Zeabur 上将 LobeChat 部署为无服务器函数服务,您可以按照以下步骤操作:
44
43
 
45
44
  ## Zeabur 部署流程
46
45
 
@@ -51,10 +50,11 @@ tags:
51
50
  ### 添加 Zeabur 打包配置文件
52
51
 
53
52
  在您的分支的根目录下添加一个 `zbpack.json` 配置文件,内容如下:
53
+
54
54
  ```json
55
55
  {
56
- "serverless": true,
57
- "ignore_dockerfile": true
56
+ "ignore_dockerfile": true,
57
+ "serverless": true
58
58
  }
59
59
  ```
60
60
 
@@ -72,8 +72,7 @@ tags:
72
72
 
73
73
  ### 将您的 LobeChat 分支链接到刚创建的 Zeabur 服务。
74
74
 
75
- 在添加服务时,选择 github
76
- 这可能会触发一个 oAuth,取决于诸如您如何登录到 Zeabur以及您是否已经授权 Zeabur 访问所有您的存储库等各种因素。
75
+ 在添加服务时,选择 github。这可能会触发一个 oAuth,取决于诸如您如何登录到 Zeabur以及您是否已经授权 Zeabur 访问所有您的存储库等各种因素。
77
76
 
78
77
  ### 绑定自定义域名(可选)
79
78
 
@@ -57,7 +57,7 @@ The second prompt generates longer output and better structure. The use of the t
57
57
  - **Be Clear About Your Needs:** The model's output will strive to meet your needs, so if your needs are not clear, the output may not meet expectations.
58
58
  - **Use Correct Grammar and Spelling:** The model will try to mimic your language style, so if your language style is problematic, the output may also be problematic.
59
59
  - **Provide Sufficient Contextual Information:** The model will generate output based on the contextual information you provide, so if the information is insufficient, it may not produce the desired results.
60
-
60
+
61
61
  </Callout>
62
62
 
63
63
  After formulating effective prompts for discussing issues, you now need to refine the generated results. This may involve adjusting the output to fit constraints such as word count or combining concepts from different generated results.
@@ -53,7 +53,7 @@ tags:
53
53
  - **尽量明确你的需求:** 模型的输出会尽可能满足你的需求,所以如果你的需求不明确,输出可能会不如预期。
54
54
  - **使用正确的语法和拼写:** 模型会尽可能模仿你的语言风格,所以如果你的语言风格有问题,输出可能也会有问题。
55
55
  - **提供足够的上下文信息:** 模型会根据你提供的上下文信息生成输出,所以如果你提供的上下文信息不足,可能无法生成你想要的结果。
56
-
56
+
57
57
  </Callout>
58
58
 
59
59
  在为讨论问题制定有效的提示后,您现在需要细化生成的结果。这可能涉及到调整输出以符合诸如字数等限制,或将不同生成的结果的概念组合在一起。
@@ -14,12 +14,13 @@ tags:
14
14
  - Multi-Factor Authentication
15
15
  - User Management
16
16
  ---
17
+
17
18
  # Support Multi-User Management
18
19
 
19
20
  <Image
20
- alt={'Identity Verification System'}
21
- cover
22
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2'}
21
+ alt={'Identity Verification System'}
22
+ cover
23
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2'}
23
24
  />
24
25
 
25
26
  In modern applications, user management and identity verification are essential functions. To meet the diverse needs of different users, LobeChat provides two main user authentication and management solutions: `next-auth` and `Clerk`. Whether you are looking for simple user registration and login or need advanced multi-factor authentication and user management, LobeChat can flexibly accommodate your requirements.
@@ -34,11 +35,13 @@ LobeChat integrates `next-auth`, a flexible and powerful identity verification l
34
35
  - **Data Security**: Ensure the security and privacy of user data.
35
36
 
36
37
  <Callout type={'warning'}>
37
- Due to workload constraints, integration of next-auth with a server-side database has not been implemented yet. If you need to use a server-side database, please use Clerk.
38
+ Due to workload constraints, integration of next-auth with a server-side database has not been
39
+ implemented yet. If you need to use a server-side database, please use Clerk.
38
40
  </Callout>
39
41
 
40
42
  <Callout type={'info'}>
41
- For information on using Next-Auth, you can refer to [Authentication Services - Next Auth](/docs/self-hosting/advanced/authentication#next-auth).
43
+ For information on using Next-Auth, you can refer to [Authentication Services - Next
44
+ Auth](/docs/self-hosting/advanced/authentication#next-auth).
42
45
  </Callout>
43
46
 
44
47
  ## Clerk: Modern User Management Platform
@@ -51,10 +54,12 @@ For users requiring advanced user management features, LobeChat also supports [C
51
54
  - **Scalability**: Supports complex user management requirements.
52
55
 
53
56
  <Callout type={'info'}>
54
- For information on using Clerk, you can refer to [Authentication Services - Clerk](/docs/self-hosting/advanced/authentication#clerk) .
57
+ For information on using Clerk, you can refer to [Authentication Services -
58
+ Clerk](/docs/self-hosting/advanced/authentication#clerk) .
55
59
  </Callout>
56
60
 
57
61
  <Callout type={'tip'}>
58
- If you need to use Clerk in conjunction with a server-side database, you can refer to the "Configuring Authentication Services" section in [Deploying with a Server-Side Database](/docs/self-hosting/advanced/server-database).
62
+ If you need to use Clerk in conjunction with a server-side database, you can refer to the
63
+ "Configuring Authentication Services" section in [Deploying with a Server-Side
64
+ Database](/docs/self-hosting/advanced/server-database).
59
65
  </Callout>
60
-
@@ -49,10 +49,12 @@ LobeChat 集成了 `next-auth`,一个灵活且强大的身份验证库,支
49
49
  - **扩展性**:支持复杂的用户管理需求。
50
50
 
51
51
  <Callout type={'info'}>
52
- 关于 Clerk 的使用,可以查阅 [身份验证服务 - Clerk](/zh/docs/self-hosting/advanced/authentication#clerk)。
52
+ 关于 Clerk 的使用,可以查阅 [身份验证服务 -
53
+ Clerk](/zh/docs/self-hosting/advanced/authentication#clerk)。
53
54
  </Callout>
54
55
 
55
56
  <Callout type={'tip'}>
56
- 如果需要在服务端数据库中搭配使用 Clerk 的使用,可以查阅 [使用服务端数据库部署](/zh/docs/self-hosting/advanced/server-database) 中的「配置身份验证服务」部分。
57
+ 如果需要在服务端数据库中搭配使用 Clerk 的使用,可以查阅
58
+ [使用服务端数据库部署](/zh/docs/self-hosting/advanced/server-database)
59
+ 中的「配置身份验证服务」部分。
57
60
  </Callout>
58
-
@@ -1,20 +1,25 @@
1
1
  ---
2
- title: LobeChat 支持本地 / 云端数据库存储
3
- description: LobeChat 支持本地 / 云端数据存储,既能实现 Local First,同时支持数据云同步。
2
+ title: Local / Cloud Database Solutions for LobeChat
3
+ description: >-
4
+ Explore the options of local and server-side databases for LobeChat, offering
5
+ data control, privacy protection, and convenient user experiences.
4
6
  tags:
5
- - LobeChat
6
- - IndexedDB
7
- - Postgres
8
- - Local First
9
- - 数据云同步
10
- - 数据库
7
+ - Local Database
8
+ - Server-Side Database
9
+ - Data Privacy
10
+ - Data Control
11
+ - CRDT Technology
12
+ - PostgreSQL
13
+ - Dirzzle ORM
14
+ - Clerk Authentication
11
15
  ---
12
- # Local / Cloud Data Storage
16
+
17
+ # Local / Cloud Database
13
18
 
14
19
  <Image
15
- alt={'Local / Cloud Data Storage'}
16
- cover
17
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/acf39ea2-74b3-46ae-8eb8-54a51f7f1d36'}
20
+ alt={'Local / Cloud Database'}
21
+ cover
22
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9'}
18
23
  />
19
24
 
20
25
  In modern application development, the choice of data storage solution is crucial. To meet the needs of different users, LobeChat offers flexible configurations that support both local and server-side databases. Whether you prioritize data privacy and control or seek a convenient user experience, LobeChat can provide excellent solutions for you.
@@ -25,7 +30,9 @@ For users who prefer more control over their data and value privacy protection,
25
30
 
26
31
  Additionally, we have introduced Conflict-Free Replicated Data Type (CRDT) technology to ensure a seamless multi-device synchronization experience. This experimental feature aims to provide users with greater autonomy and data security.
27
32
 
28
- <Callout type={'info'}>LobeChat defaults to the local database solution to reduce the onboarding cost for new users.</Callout>
33
+ <Callout type={'info'}>
34
+ LobeChat defaults to the local database solution to reduce the onboarding cost for new users.
35
+ </Callout>
29
36
 
30
37
  Furthermore, we have attempted to introduce CRDT technology to achieve cross-device synchronization based on the local database. This experimental feature aims to provide users with greater autonomy and data security.
31
38
 
@@ -51,4 +58,3 @@ The local database solution is suitable for users who wish to have strict contro
51
58
  The server-side database solution is ideal for users who want to simplify data management processes and enjoy a convenient user experience. Through server-side databases and user authentication, LobeChat can ensure the security and efficiency of data. If you want to learn how to configure a server-side database, please refer to our [detailed documentation](/docs/self-hosting/advanced/server-database).
52
59
 
53
60
  Whether you choose a local database or a server-side database, LobeChat can provide you with an excellent user experience.
54
-
@@ -15,7 +15,7 @@ tags:
15
15
  <Image
16
16
  alt={'本地 / 云端数据存储'}
17
17
  cover
18
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/acf39ea2-74b3-46ae-8eb8-54a51f7f1d36'}
18
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9'}
19
19
  />
20
20
 
21
21
  在现代应用开发中,数据存储方案的选择至关重要。为了满足不同用户的需求,LobeChat 提供了同时支持本地数据库和服务端数据库的灵活配置。无论您是注重数据隐私与掌控,还是追求便捷的使用体验,LobeChat 都能为您提供卓越的解决方案。
@@ -49,3 +49,8 @@ Compared to cloud-based solutions, a local LLM provides higher privacy and secur
49
49
  ### Embark on Your LobeChat & Ollama AI Journey
50
50
 
51
51
  Now, let's embark on this exciting journey together! Through the collaboration of LobeChat and Ollama AI, explore the endless possibilities brought by AI. Whether you are a tech enthusiast or simply curious about AI communication, LobeChat will offer you an unprecedented experience.
52
+
53
+ <Cards>
54
+ <Card href={'/docs/usage/providers'} title={'Using Multiple Model Providers'} />
55
+ <Card href={'/docs/usage/providers/ollama'} title={'Using Ollama Local Model'} />
56
+ </Cards>
@@ -41,3 +41,8 @@ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434
41
41
  ### 开启您的 LobeChat & Ollama AI 之旅
42
42
 
43
43
  现在,就让我们一起开启这段激动人心的旅程吧!通过 LobeChat 与 Ollama AI 的协作,探索 AI 带来的无限可能。无论您是技术爱好者,还是对 AI 交流充满好奇,LobeChat 都将为您提供一场前所未有的体验。
44
+
45
+ <Cards>
46
+ <Card href={'/docs/usage/providers'} title={'使用多模型服务商'} />
47
+ <Card href={'/docs/usage/providers/ollama'} title={'使用 Ollama 本地模型'} />
48
+ </Cards>
@@ -59,3 +59,8 @@ At the same time, we are also planning to support more model service providers,
59
59
  />
60
60
 
61
61
  To meet the specific needs of users, LobeChat also supports the use of local models based on [Ollama](https://ollama.ai), allowing users to flexibly use their own or third-party models. For more details, see [Local Model Support](/docs/usage/features/local-llm).
62
+
63
+ <Cards>
64
+ <Card href={'/docs/usage/providers'} title={'Using Multiple Model Providers'} />
65
+ <Card href={'/docs/usage/providers/ollama'} title={'Using Ollama Local Model'} />
66
+ </Cards>
@@ -59,3 +59,8 @@ tags:
59
59
  />
60
60
 
61
61
  为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型,详见 [本地模型支持](/docs/usage/features/local-llm)。
62
+
63
+ <Cards>
64
+ <Card href={'/docs/usage/providers'} title={'使用多模型服务商'} />
65
+ <Card href={'/docs/usage/providers/ollama'} title={'使用 Ollama 本地模型'} />
66
+ </Cards>
@@ -40,7 +40,8 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
40
40
  ## 插件生态体系
41
41
 
42
42
  <Callout>
43
- 如果你对插件开发感兴趣,请在 Wiki 中查阅我们的 [📘 插件开发指南](/docs/usage/plugins/development)。
43
+ 如果你对插件开发感兴趣,请在 Wiki 中查阅我们的 [📘
44
+ 插件开发指南](/docs/usage/plugins/development)。
44
45
  </Callout>
45
46
 
46
47
  - [lobe-chat-plugins][lobe-chat-plugins]:这是 LobeChat 的插件索引。它从该仓库的 index.json 中获取插件列表并显示给用户。
@@ -28,7 +28,8 @@ If you are unfamiliar with the installation process of PWA, you can follow the s
28
28
  ## Running on Chrome / Edge
29
29
 
30
30
  <Callout type={'important'}>
31
- On macOS, when using a Chrome-installed PWA, it is required that Chrome be open, otherwise Chrome will automatically open and then launch the PWA app.
31
+ On macOS, when using a Chrome-installed PWA, it is required that Chrome be open, otherwise Chrome
32
+ will automatically open and then launch the PWA app.
32
33
  </Callout>
33
34
 
34
35
  <Steps>
@@ -62,7 +63,7 @@ Safari PWA requires macOS Ventura or later. The PWA installed by Safari does not
62
63
  </Steps>
63
64
 
64
65
  <Callout type={'tip'}>
65
- The default installed LobeChat PWA icon has a black background, you can use <kbd>cmd</kbd> + <kbd>i</kbd> to paste the following image to replace it with a white background.
66
+ The default installed LobeChat PWA icon has a black background, you can use <kbd>cmd</kbd> + <kbd>i</kbd> to paste the following image to replace it with a white background.
66
67
  </Callout>
67
68
 
68
69
  <Image
@@ -28,7 +28,8 @@ tags:
28
28
  ## Chrome / Edge 浏览器上运行
29
29
 
30
30
  <Callout type={'important'}>
31
- macOS 下,使用 Chrome 安装的 PWA 时,必须要求 Chrome 是打开状态,否则会自动打开 Chrome 再打开 PWA 应用。
31
+ macOS 下,使用 Chrome 安装的 PWA 时,必须要求 Chrome 是打开状态,否则会自动打开 Chrome 再打开 PWA
32
+ 应用。
32
33
  </Callout>
33
34
 
34
35
  <Steps>
@@ -62,7 +63,7 @@ Safari PWA 需要 macOS Ventura 或更高版本。Safari 安装的 PWA 并不要
62
63
  </Steps>
63
64
 
64
65
  <Callout type={'tip'}>
65
- 默认安装的 LobeChat PWA 图标是黑色背景的,您可以在自行使用 <kbd>cmd</kbd> + <kbd>i</kbd> 粘贴如下图片替换为白色背景的。
66
+ 默认安装的 LobeChat PWA 图标是黑色背景的,您可以在自行使用 <kbd>cmd</kbd> + <kbd>i</kbd> 粘贴如下图片替换为白色背景的。
66
67
  </Callout>
67
68
 
68
69
  <Image
@@ -0,0 +1,86 @@
1
+ ---
2
+ title: Using Zero One AI in LobeChat
3
+ description: >-
4
+ Learn how to integrate and use Zero One AI in LobeChat with step-by-step
5
+ instructions. Obtain an API key, configure Zero One AI, and start
6
+ conversations with AI models.
7
+ tags:
8
+ - 01.AI
9
+ - Zero One AI
10
+ - LobeChat
11
+ - AI integration
12
+ - API key
13
+ - AI models
14
+ ---
15
+
16
+ # Using Zero One AI in LobeChat
17
+
18
+ <Image
19
+ alt={'Using Zero One AI in LobeChat'}
20
+ cover
21
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/4485fbc3-c309-4c4e-83ee-cb82392307a1'}
22
+ />
23
+
24
+ [Zero One AI](https://www.01.ai/) is a global company dedicated to AI 2.0 large model technology and applications. Its billion-parameter Yi-Large closed-source model, when evaluated on Stanford University's English ranking AlpacaEval 2.0, is on par with GPT-4.
25
+
26
+ This document will guide you on how to use Zero One AI in LobeChat:
27
+
28
+ <Steps>
29
+
30
+ ### Step 1: Obtain Zero One AI API Key
31
+
32
+ - Register and log in to the [Zero One AI Large Model Open Platform](https://platform.lingyiwanwu.com/)
33
+ - Go to the `Dashboard` and access the `API Key Management` menu
34
+ - A system-generated API key has been created for you automatically, or you can create a new one on this interface
35
+
36
+ <Image
37
+ alt={'Create Zero One AI API Key'}
38
+ inStep
39
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/72f165f4-d529-4f01-a3ac-163c66e5ea73'}
40
+ />
41
+
42
+ - Account verification is required for first-time use
43
+
44
+ <Image
45
+ alt={'Complete Account Verification'}
46
+ inStep
47
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/e6058456-8f9d-40c1-9ae5-1e9d5eeb9476'}
48
+ />
49
+
50
+ - Click on the created API key
51
+ - Copy and save the API key in the pop-up dialog box
52
+
53
+ <Image
54
+ alt={'Save API Key'}
55
+ inStep
56
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f892fe64-c734-4944-91ff-9916a41bd1c9'}
57
+ />
58
+
59
+ ### Step 2: Configure Zero One AI in LobeChat
60
+
61
+ - Access the `Settings` interface in LobeChat
62
+ - Find the setting for `Zero One AI` under `Language Model`
63
+
64
+ <Image
65
+ alt={'Enter API Key'}
66
+ inStep
67
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f539d104-6d64-4cc7-8781-3b36b00d32d0'}
68
+ />
69
+
70
+ - Open Zero One AI and enter the obtained API key
71
+ - Choose a 01.AI model for your AI assistant to start the conversation
72
+
73
+ <Image
74
+ alt={'Select 01.AI Model and Start Conversation'}
75
+ inStep
76
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/8bf73498-4649-4c4d-a95b-b68447599781'}
77
+ />
78
+
79
+ <Callout type={'warning'}>
80
+ During usage, you may need to pay the API service provider. Please refer to Zero One AI's relevant
81
+ fee policies.
82
+ </Callout>
83
+
84
+ </Steps>
85
+
86
+ You can now use the models provided by Zero One AI for conversations in LobeChat.
@@ -0,0 +1,85 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 01.AI 零一万物
3
+ description: >-
4
+ 学习如何在 LobeChat 中配置并使用 01.AI 零一万物提供的 AI 模型进行对话。获取 API 密钥、填入设置项、选择模型,开始与 AI
5
+ 助手交流。
6
+ tags:
7
+ - LobeChat
8
+ - 01.AI
9
+ - Zero One AI
10
+ - 零一万物
11
+ - AI模型
12
+ - API密钥
13
+ - 配置指南
14
+ ---
15
+
16
+ # 在 LobeChat 中使用零一万物
17
+
18
+ <Image
19
+ alt={'在 LobeChat 中使用零一万物'}
20
+ cover
21
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/4485fbc3-c309-4c4e-83ee-cb82392307a1'}
22
+ />
23
+
24
+ [零一万物](https://www.01.ai/)是一家致力于AI 2.0大模型技术和应用的全球公司,其发布的千亿参数的Yi-Large闭源模型,在斯坦福大学的英语排行AlpacaEval 2.0上,与GPT-4互有第一。
25
+
26
+ 本文档将指导你如何在 LobeChat 中使用零一万物:
27
+
28
+ <Steps>
29
+
30
+ ### 步骤一:获取零一万物 API 密钥
31
+
32
+ - 注册并登录 [零一万物大模型开放平台](https://platform.lingyiwanwu.com/)
33
+ - 进入`工作台`并访问`API Key管理`菜单
34
+ - 系统已为你自动创建了一个 API 密钥,你也可以在此界面创建新的 API 密钥
35
+
36
+ <Image
37
+ alt={'创建零一万物 API 密钥'}
38
+ inStep
39
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/72f165f4-d529-4f01-a3ac-163c66e5ea73'}
40
+ />
41
+
42
+ - 初次使用时需要完成账号认证
43
+
44
+ <Image
45
+ alt={'完成账号认证'}
46
+ inStep
47
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/e6058456-8f9d-40c1-9ae5-1e9d5eeb9476'}
48
+ />
49
+
50
+ - 点击创建好的 API 密钥
51
+ - 在弹出的对话框中复制并保存 API 密钥
52
+
53
+ <Image
54
+ alt={'保存 API 密钥'}
55
+ inStep
56
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f892fe64-c734-4944-91ff-9916a41bd1c9'}
57
+ />
58
+
59
+ ### 步骤二:在LobeChat 中配置零一万物
60
+
61
+ - 访问 LobeChat 的`设置`界面
62
+ - 在`语言模型`下找到`零一万物`的设置项
63
+
64
+ <Image
65
+ alt={'填入 API 密钥'}
66
+ inStep
67
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f539d104-6d64-4cc7-8781-3b36b00d32d0'}
68
+ />
69
+
70
+ - 打开零一万物并填入获得的 API 密钥
71
+ - 为你的 AI 助手选择一个 01.AI 的模型即可开始对话
72
+
73
+ <Image
74
+ alt={'选择01.AI模型并开始对话'}
75
+ inStep
76
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/8bf73498-4649-4c4d-a95b-b68447599781'}
77
+ />
78
+
79
+ <Callout type={'warning'}>
80
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考零一万物的相关费用政策。
81
+ </Callout>
82
+
83
+ </Steps>
84
+
85
+ 至此你已经可以在 LobeChat 中使用零一万物提供的模型进行对话了。
@@ -0,0 +1,79 @@
1
+ ---
2
+ title: Using Anthropic Claude in LobeChat - Guide to Anthropic Claude API Integration
3
+ description: >-
4
+ Learn how to integrate Anthropic Claude API in LobeChat to enhance your AI
5
+ assistant capabilities. Follow the steps to obtain the API key and configure
6
+ the model for seamless conversations.
7
+ tags:
8
+ - Anthropic Claude
9
+ - LobeChat
10
+ - API integration
11
+ - AI assistant
12
+ - Conversation models
13
+ ---
14
+
15
+ # Using Anthropic Claude in LobeChat
16
+
17
+ <Image
18
+ alt={'Using Anthropic Claude in LobeChat'}
19
+ cover
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'}
21
+ />
22
+
23
+ The Anthropic Claude API is now available for everyone to use. This document will guide you on how to use [Anthropic Claude](https://www.anthropic.com/api) in LobeChat:
24
+
25
+ <Steps>
26
+
27
+ ### Step 1: Obtain Anthropic Claude API Key
28
+
29
+ - Create an [Anthropic Claude API](https://www.anthropic.com/api) account.
30
+ - Get your [API key](https://console.anthropic.com/settings/keys).
31
+
32
+ <Image
33
+ alt={'Create API Key'}
34
+ inStep
35
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'}
36
+ />
37
+
38
+ <Callout type={'warning'}>
39
+ The Claude API currently offers $5 of free credits, but it is only available in certain specific
40
+ countries/regions. You can go to Dashboard > Claim to see if it is applicable to your
41
+ country/region.
42
+ </Callout>
43
+
44
+ - Set up your billing for the API key to work on [https://console.anthropic.com/settings/plans](https://console.anthropic.com/settings/plans) (choose the "Build" plan so you can add credits and only pay for usage).
45
+
46
+ <Image
47
+ alt={'Set Up Your Billing'}
48
+ inStep
49
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'}
50
+ />
51
+
52
+ ### Step 2: Configure Anthropic Claude in LobeChat
53
+
54
+ - Access the `Settings` interface in LobeChat.
55
+ - Find the setting for `Anthropic Claude` under `Language Models`.
56
+
57
+ <Image
58
+ alt={'Enter API Key'}
59
+ inStep
60
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'}
61
+ />
62
+
63
+ - Enter the obtained API key.
64
+ - Choose an Anthropic Claude model for your AI assistant to start the conversation.
65
+
66
+ <Image
67
+ alt={'Select Anthropic Claude Model and Start Conversation'}
68
+ inStep
69
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'}
70
+ />
71
+
72
+ <Callout type={'warning'}>
73
+ During usage, you may need to pay the API service provider. Please refer to Anthropic Claude's
74
+ relevant pricing policies.
75
+ </Callout>
76
+
77
+ </Steps>
78
+
79
+ You can now engage in conversations using the models provided by Anthropic Claude in LobeChat.
@@ -0,0 +1,74 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 Anthropic Claude
3
+ description: 学习如何在 LobeChat 中配置和使用 Anthropic Claude API,包括获取 API 密钥和设置账单,以及选择模型开始对话。
4
+ tags:
5
+ - LobeChat
6
+ - Anthropic Claude
7
+ - API
8
+ - 语言模型
9
+ - AI助手
10
+ ---
11
+
12
+ # 在 LobeChat 中使用 Anthropic Claude
13
+
14
+ <Image
15
+ alt={'在 LobeChat 中使用 Anthropic Claude'}
16
+ cover
17
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'}
18
+ />
19
+
20
+ Anthropic Claude API 现在可供所有人使用, 本文档将指导你如何在 LobeChat 中使用 [Anthropic Claude](https://www.anthropic.com/api):
21
+
22
+ <Steps>
23
+
24
+ ### 步骤一:获取 Anthropic Claude API 密钥
25
+
26
+ - 创建一个 [Anthropic Claude API](https://www.anthropic.com/api) 帐户
27
+ - 获取您的 [API 密钥](https://console.anthropic.com/settings/keys)
28
+
29
+ <Image
30
+ alt={'创建 API Key'}
31
+ inStep
32
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'}
33
+ />
34
+
35
+ <Callout type={'warning'}>
36
+ Claude API 现在提供 5 美元的免费积分,但是,它仅适用于某些特定国家/地区,您可以转到 Dashboard >
37
+ Claim 查看它是否适用于您所在的国家/地区。
38
+ </Callout>
39
+
40
+ - 设置您的账单,让 API 密钥在 https://console.anthropic.com/settings/plans 上工作(选择“生成”计划,以便您可以添加积分并仅为使用量付费)
41
+
42
+ <Image
43
+ alt={'设置您的账单'}
44
+ inStep
45
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'}
46
+ />
47
+
48
+ ### 步骤二:在 LobeChat 中配置 Anthropic Claude
49
+
50
+ - 访问 LobeChat 的`设置`界面
51
+ - 在`语言模型`下找到`Anthropic Claude`的设置项
52
+
53
+ <Image
54
+ alt={'填入 API 密钥'}
55
+ inStep
56
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'}
57
+ />
58
+
59
+ - 填入获得的 API 密钥
60
+ - 为你的 AI 助手选择一个 Anthropic Claude 的模型即可开始对话
61
+
62
+ <Image
63
+ alt={'选择 Anthropic Claude 模型并开始对话'}
64
+ inStep
65
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'}
66
+ />
67
+
68
+ <Callout type={'warning'}>
69
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Anthropic Claude 的相关费用政策。
70
+ </Callout>
71
+
72
+ </Steps>
73
+
74
+ 至此你已经可以在 LobeChat 中使用 Anthropic Claude 提供的模型进行对话了。