@lobehub/chat 1.44.3 → 1.45.0

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 (319) hide show
  1. package/.remarkrc.mdx.js +6 -0
  2. package/CHANGELOG.md +25 -0
  3. package/changelog/v1.json +9 -0
  4. package/docs/changelog/2023-09-09-plugin-system.mdx +5 -0
  5. package/docs/changelog/2023-09-09-plugin-system.zh-CN.mdx +5 -0
  6. package/docs/changelog/2023-11-14-gpt4-vision.mdx +6 -0
  7. package/docs/changelog/2023-11-14-gpt4-vision.zh-CN.mdx +6 -0
  8. package/docs/changelog/2023-11-19-tts-stt.mdx +6 -0
  9. package/docs/changelog/2023-11-19-tts-stt.zh-CN.mdx +7 -0
  10. package/docs/changelog/2023-12-22-dalle-3.mdx +6 -0
  11. package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +4 -0
  12. package/docs/changelog/2024-02-08-sso-oauth.mdx +6 -0
  13. package/docs/changelog/2024-02-08-sso-oauth.zh-CN.mdx +6 -0
  14. package/docs/changelog/2024-02-14-ollama.mdx +6 -0
  15. package/docs/changelog/2024-02-14-ollama.zh-CN.mdx +5 -0
  16. package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +6 -0
  17. package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +5 -0
  18. package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +5 -0
  19. package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +4 -0
  20. package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +6 -0
  21. package/docs/changelog/2024-08-02-lobe-chat-database-docker.zh-CN.mdx +5 -0
  22. package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +6 -0
  23. package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.zh-CN.mdx +5 -0
  24. package/docs/changelog/2024-09-13-openai-o1-models.mdx +6 -0
  25. package/docs/changelog/2024-09-13-openai-o1-models.zh-CN.mdx +6 -0
  26. package/docs/changelog/2024-09-20-artifacts.mdx +6 -0
  27. package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +6 -0
  28. package/docs/changelog/2024-10-27-pin-assistant.mdx +5 -0
  29. package/docs/changelog/2024-10-27-pin-assistant.zh-CN.mdx +4 -0
  30. package/docs/changelog/2024-11-06-share-text-json.mdx +4 -0
  31. package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +4 -0
  32. package/docs/changelog/2024-11-25-november-providers.mdx +7 -0
  33. package/docs/changelog/2024-11-25-november-providers.zh-CN.mdx +7 -0
  34. package/docs/changelog/2024-11-27-forkable-chat.mdx +4 -0
  35. package/docs/changelog/2024-11-27-forkable-chat.zh-CN.mdx +5 -0
  36. package/docs/changelog/2025-01-03-user-profile.mdx +5 -0
  37. package/docs/changelog/2025-01-03-user-profile.zh-CN.mdx +4 -1
  38. package/docs/self-hosting/advanced/auth/clerk.mdx +25 -41
  39. package/docs/self-hosting/advanced/auth/clerk.zh-CN.mdx +23 -37
  40. package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +31 -58
  41. package/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx +30 -57
  42. package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +38 -38
  43. package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +37 -38
  44. package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +26 -31
  45. package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +25 -30
  46. package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +74 -75
  47. package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +72 -73
  48. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +24 -25
  49. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +23 -24
  50. package/docs/self-hosting/advanced/auth/next-auth/github.mdx +46 -73
  51. package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +43 -70
  52. package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +28 -37
  53. package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +28 -37
  54. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +36 -49
  55. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +30 -43
  56. package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +13 -14
  57. package/docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx +14 -15
  58. package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +35 -69
  59. package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +34 -68
  60. package/docs/self-hosting/advanced/auth.mdx +14 -13
  61. package/docs/self-hosting/advanced/auth.zh-CN.mdx +15 -14
  62. package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +15 -15
  63. package/docs/self-hosting/advanced/knowledge-base.mdx +14 -3
  64. package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +12 -3
  65. package/docs/self-hosting/advanced/model-list.zh-CN.mdx +5 -5
  66. package/docs/self-hosting/advanced/s3/cloudflare-r2.mdx +52 -81
  67. package/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx +51 -80
  68. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +20 -34
  69. package/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx +28 -43
  70. package/docs/self-hosting/advanced/s3.mdx +30 -34
  71. package/docs/self-hosting/advanced/s3.zh-CN.mdx +28 -33
  72. package/docs/self-hosting/advanced/settings-url-share.mdx +6 -6
  73. package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +19 -19
  74. package/docs/self-hosting/advanced/upstream-sync.mdx +73 -89
  75. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +71 -87
  76. package/docs/self-hosting/advanced/webrtc.mdx +14 -21
  77. package/docs/self-hosting/advanced/webrtc.zh-CN.mdx +19 -26
  78. package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +0 -3
  79. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +1 -1
  80. package/docs/self-hosting/environment-variables/basic.mdx +13 -13
  81. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +15 -15
  82. package/docs/self-hosting/environment-variables/model-provider.mdx +1 -1
  83. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +1 -1
  84. package/docs/self-hosting/environment-variables/s3.mdx +3 -4
  85. package/docs/self-hosting/environment-variables/s3.zh-CN.mdx +5 -7
  86. package/docs/self-hosting/environment-variables.mdx +8 -4
  87. package/docs/self-hosting/environment-variables.zh-CN.mdx +4 -0
  88. package/docs/self-hosting/examples/azure-openai.mdx +9 -12
  89. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +8 -11
  90. package/docs/self-hosting/examples/ollama.mdx +8 -7
  91. package/docs/self-hosting/examples/ollama.zh-CN.mdx +8 -7
  92. package/docs/self-hosting/platform/alibaba-cloud.mdx +5 -7
  93. package/docs/self-hosting/platform/alibaba-cloud.zh-CN.mdx +5 -7
  94. package/docs/self-hosting/platform/btpanel.mdx +3 -2
  95. package/docs/self-hosting/platform/btpanel.zh-CN.mdx +3 -3
  96. package/docs/self-hosting/platform/docker-compose.mdx +75 -85
  97. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +75 -85
  98. package/docs/self-hosting/platform/docker.mdx +87 -92
  99. package/docs/self-hosting/platform/docker.zh-CN.mdx +96 -115
  100. package/docs/self-hosting/platform/netlify.mdx +44 -94
  101. package/docs/self-hosting/platform/netlify.zh-CN.mdx +40 -90
  102. package/docs/self-hosting/platform/railway.mdx +6 -7
  103. package/docs/self-hosting/platform/railway.zh-CN.mdx +6 -7
  104. package/docs/self-hosting/platform/repocloud.mdx +6 -7
  105. package/docs/self-hosting/platform/repocloud.zh-CN.mdx +6 -7
  106. package/docs/self-hosting/platform/sealos.mdx +6 -7
  107. package/docs/self-hosting/platform/sealos.zh-CN.mdx +6 -7
  108. package/docs/self-hosting/platform/vercel.mdx +7 -8
  109. package/docs/self-hosting/platform/vercel.zh-CN.mdx +7 -8
  110. package/docs/self-hosting/platform/zeabur.mdx +29 -32
  111. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +29 -32
  112. package/docs/self-hosting/server-database/docker-compose.mdx +44 -71
  113. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +44 -71
  114. package/docs/self-hosting/server-database/docker.mdx +84 -88
  115. package/docs/self-hosting/server-database/docker.zh-CN.mdx +87 -91
  116. package/docs/self-hosting/server-database/dokploy.mdx +18 -1
  117. package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +84 -68
  118. package/docs/self-hosting/server-database/repocloud.mdx +7 -9
  119. package/docs/self-hosting/server-database/repocloud.zh-CN.mdx +9 -11
  120. package/docs/self-hosting/server-database/vercel.mdx +158 -243
  121. package/docs/self-hosting/server-database/vercel.zh-CN.mdx +137 -205
  122. package/docs/self-hosting/server-database/zeabur.mdx +21 -23
  123. package/docs/self-hosting/server-database/zeabur.zh-CN.mdx +20 -22
  124. package/docs/self-hosting/server-database.mdx +34 -36
  125. package/docs/self-hosting/server-database.zh-CN.mdx +34 -37
  126. package/docs/self-hosting/start.mdx +1 -4
  127. package/docs/self-hosting/start.zh-CN.mdx +1 -1
  128. package/docs/usage/agents/agent-organization.mdx +5 -21
  129. package/docs/usage/agents/agent-organization.zh-CN.mdx +5 -21
  130. package/docs/usage/agents/concepts.mdx +4 -4
  131. package/docs/usage/agents/concepts.zh-CN.mdx +4 -4
  132. package/docs/usage/agents/custom-agent.mdx +2 -2
  133. package/docs/usage/agents/custom-agent.zh-CN.mdx +2 -2
  134. package/docs/usage/agents/model.mdx +4 -4
  135. package/docs/usage/agents/model.zh-CN.mdx +6 -6
  136. package/docs/usage/agents/prompt.mdx +5 -6
  137. package/docs/usage/agents/prompt.zh-CN.mdx +5 -6
  138. package/docs/usage/agents/topics.mdx +2 -2
  139. package/docs/usage/agents/topics.zh-CN.mdx +2 -2
  140. package/docs/usage/features/agent-market.mdx +2 -2
  141. package/docs/usage/features/agent-market.zh-CN.mdx +2 -2
  142. package/docs/usage/features/auth.mdx +1 -5
  143. package/docs/usage/features/auth.zh-CN.mdx +1 -5
  144. package/docs/usage/features/database.mdx +1 -5
  145. package/docs/usage/features/database.zh-CN.mdx +1 -5
  146. package/docs/usage/features/local-llm.mdx +2 -6
  147. package/docs/usage/features/local-llm.zh-CN.mdx +2 -6
  148. package/docs/usage/features/mobile.mdx +1 -5
  149. package/docs/usage/features/mobile.zh-CN.mdx +1 -5
  150. package/docs/usage/features/multi-ai-providers.mdx +3 -11
  151. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +3 -11
  152. package/docs/usage/features/plugin-system.mdx +9 -10
  153. package/docs/usage/features/plugin-system.zh-CN.mdx +9 -10
  154. package/docs/usage/features/pwa.mdx +11 -25
  155. package/docs/usage/features/pwa.zh-CN.mdx +11 -25
  156. package/docs/usage/features/text-to-image.mdx +2 -2
  157. package/docs/usage/features/text-to-image.zh-CN.mdx +2 -2
  158. package/docs/usage/features/theme.mdx +1 -6
  159. package/docs/usage/features/theme.zh-CN.mdx +1 -6
  160. package/docs/usage/features/tts.mdx +3 -7
  161. package/docs/usage/features/tts.zh-CN.mdx +3 -7
  162. package/docs/usage/features/vision.mdx +2 -2
  163. package/docs/usage/features/vision.zh-CN.mdx +2 -2
  164. package/docs/usage/foundation/basic.mdx +7 -18
  165. package/docs/usage/foundation/basic.zh-CN.mdx +6 -16
  166. package/docs/usage/foundation/share.mdx +3 -13
  167. package/docs/usage/foundation/share.zh-CN.mdx +3 -13
  168. package/docs/usage/foundation/text2image.mdx +3 -12
  169. package/docs/usage/foundation/text2image.zh-CN.mdx +3 -12
  170. package/docs/usage/foundation/translate.mdx +3 -13
  171. package/docs/usage/foundation/translate.zh-CN.mdx +3 -13
  172. package/docs/usage/foundation/tts-stt.mdx +3 -12
  173. package/docs/usage/foundation/tts-stt.zh-CN.mdx +3 -12
  174. package/docs/usage/foundation/vision.mdx +4 -16
  175. package/docs/usage/foundation/vision.zh-CN.mdx +4 -16
  176. package/docs/usage/plugins/basic-usage.mdx +7 -30
  177. package/docs/usage/plugins/basic-usage.zh-CN.mdx +7 -30
  178. package/docs/usage/plugins/development.mdx +30 -78
  179. package/docs/usage/plugins/development.zh-CN.mdx +31 -79
  180. package/docs/usage/plugins/store.mdx +2 -10
  181. package/docs/usage/plugins/store.zh-CN.mdx +2 -10
  182. package/docs/usage/providers/ai21.mdx +17 -33
  183. package/docs/usage/providers/ai21.zh-CN.mdx +17 -33
  184. package/docs/usage/providers/ai360.mdx +17 -33
  185. package/docs/usage/providers/ai360.zh-CN.mdx +20 -36
  186. package/docs/usage/providers/anthropic.mdx +23 -45
  187. package/docs/usage/providers/anthropic.zh-CN.mdx +22 -44
  188. package/docs/usage/providers/azure.mdx +21 -51
  189. package/docs/usage/providers/azure.zh-CN.mdx +19 -48
  190. package/docs/usage/providers/baichuan.mdx +16 -34
  191. package/docs/usage/providers/baichuan.zh-CN.mdx +15 -33
  192. package/docs/usage/providers/bedrock.mdx +38 -87
  193. package/docs/usage/providers/bedrock.zh-CN.mdx +37 -86
  194. package/docs/usage/providers/cloudflare.mdx +25 -48
  195. package/docs/usage/providers/cloudflare.zh-CN.mdx +24 -45
  196. package/docs/usage/providers/deepseek.mdx +25 -51
  197. package/docs/usage/providers/deepseek.zh-CN.mdx +24 -50
  198. package/docs/usage/providers/fireworksai.mdx +23 -43
  199. package/docs/usage/providers/fireworksai.zh-CN.mdx +21 -41
  200. package/docs/usage/providers/gemini.mdx +20 -46
  201. package/docs/usage/providers/gemini.zh-CN.mdx +20 -46
  202. package/docs/usage/providers/giteeai.mdx +24 -45
  203. package/docs/usage/providers/giteeai.zh-CN.mdx +22 -43
  204. package/docs/usage/providers/github.mdx +19 -45
  205. package/docs/usage/providers/github.zh-CN.mdx +19 -44
  206. package/docs/usage/providers/groq.mdx +12 -29
  207. package/docs/usage/providers/groq.zh-CN.mdx +11 -28
  208. package/docs/usage/providers/hunyuan.mdx +19 -39
  209. package/docs/usage/providers/hunyuan.zh-CN.mdx +18 -38
  210. package/docs/usage/providers/internlm.mdx +21 -38
  211. package/docs/usage/providers/internlm.zh-CN.mdx +19 -36
  212. package/docs/usage/providers/minimax.mdx +24 -50
  213. package/docs/usage/providers/minimax.zh-CN.mdx +22 -48
  214. package/docs/usage/providers/mistral.mdx +21 -39
  215. package/docs/usage/providers/mistral.zh-CN.mdx +20 -38
  216. package/docs/usage/providers/moonshot.mdx +20 -38
  217. package/docs/usage/providers/moonshot.zh-CN.mdx +19 -37
  218. package/docs/usage/providers/novita.mdx +20 -43
  219. package/docs/usage/providers/novita.zh-CN.mdx +19 -42
  220. package/docs/usage/providers/ollama/gemma.mdx +12 -29
  221. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +12 -30
  222. package/docs/usage/providers/ollama/qwen.mdx +17 -32
  223. package/docs/usage/providers/ollama/qwen.zh-CN.mdx +12 -27
  224. package/docs/usage/providers/ollama.mdx +67 -99
  225. package/docs/usage/providers/ollama.zh-CN.mdx +67 -99
  226. package/docs/usage/providers/openai.mdx +42 -56
  227. package/docs/usage/providers/openai.zh-CN.mdx +39 -52
  228. package/docs/usage/providers/openrouter.mdx +48 -84
  229. package/docs/usage/providers/openrouter.zh-CN.mdx +31 -67
  230. package/docs/usage/providers/perplexity.mdx +16 -34
  231. package/docs/usage/providers/perplexity.zh-CN.mdx +16 -34
  232. package/docs/usage/providers/qwen.mdx +26 -52
  233. package/docs/usage/providers/qwen.zh-CN.mdx +25 -51
  234. package/docs/usage/providers/sensenova.mdx +24 -45
  235. package/docs/usage/providers/sensenova.zh-CN.mdx +22 -43
  236. package/docs/usage/providers/siliconcloud.mdx +17 -33
  237. package/docs/usage/providers/siliconcloud.zh-CN.mdx +17 -33
  238. package/docs/usage/providers/spark.mdx +20 -40
  239. package/docs/usage/providers/spark.zh-CN.mdx +19 -39
  240. package/docs/usage/providers/stepfun.mdx +17 -35
  241. package/docs/usage/providers/stepfun.zh-CN.mdx +17 -35
  242. package/docs/usage/providers/taichu.mdx +16 -34
  243. package/docs/usage/providers/taichu.zh-CN.mdx +15 -33
  244. package/docs/usage/providers/togetherai.mdx +18 -40
  245. package/docs/usage/providers/togetherai.zh-CN.mdx +18 -40
  246. package/docs/usage/providers/upstage.mdx +18 -34
  247. package/docs/usage/providers/upstage.zh-CN.mdx +17 -33
  248. package/docs/usage/providers/wenxin.mdx +22 -42
  249. package/docs/usage/providers/wenxin.zh-CN.mdx +20 -40
  250. package/docs/usage/providers/xai.mdx +21 -38
  251. package/docs/usage/providers/xai.zh-CN.mdx +20 -37
  252. package/docs/usage/providers/zeroone.mdx +22 -48
  253. package/docs/usage/providers/zeroone.zh-CN.mdx +22 -48
  254. package/docs/usage/providers/zhipu.mdx +17 -35
  255. package/docs/usage/providers/zhipu.zh-CN.mdx +18 -34
  256. package/docs/usage/providers.mdx +1 -6
  257. package/docs/usage/providers.zh-CN.mdx +1 -6
  258. package/docs/usage/start.mdx +4 -18
  259. package/docs/usage/start.zh-CN.mdx +2 -19
  260. package/docs/usage/tools-calling/anthropic.mdx +18 -51
  261. package/docs/usage/tools-calling/anthropic.zh-CN.mdx +22 -55
  262. package/docs/usage/tools-calling/google.mdx +16 -23
  263. package/docs/usage/tools-calling/google.zh-CN.mdx +17 -24
  264. package/docs/usage/tools-calling/groq.mdx +9 -0
  265. package/docs/usage/tools-calling/groq.zh-CN.mdx +44 -70
  266. package/docs/usage/tools-calling/moonshot.mdx +9 -0
  267. package/docs/usage/tools-calling/openai.mdx +19 -44
  268. package/docs/usage/tools-calling/openai.zh-CN.mdx +20 -45
  269. package/docs/usage/tools-calling.mdx +9 -0
  270. package/docs/usage/tools-calling.zh-CN.mdx +60 -68
  271. package/package.json +42 -41
  272. package/scripts/mdxWorkflow/index.ts +7 -0
  273. package/src/app/(main)/(mobile)/me/(home)/features/Header.tsx +2 -1
  274. package/src/app/(main)/(mobile)/me/data/features/Header.tsx +1 -1
  275. package/src/app/(main)/(mobile)/me/profile/features/Header.tsx +1 -1
  276. package/src/app/(main)/(mobile)/me/settings/features/Header.tsx +1 -1
  277. package/src/app/(main)/@nav/_layout/Mobile.tsx +2 -1
  278. package/src/app/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +2 -1
  279. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx +2 -2
  280. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +2 -1
  281. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +1 -1
  282. package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +2 -1
  283. package/src/app/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +1 -1
  284. package/src/app/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -1
  285. package/src/app/(main)/chat/settings/_layout/Desktop/Header.tsx +1 -1
  286. package/src/app/(main)/chat/settings/_layout/Mobile/Header.tsx +1 -1
  287. package/src/app/(main)/discover/(detail)/provider/[slug]/features/InfoSidebar/SuggestionItem.tsx +8 -6
  288. package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +1 -1
  289. package/src/app/(main)/discover/(list)/_layout/Mobile/Header.tsx +2 -1
  290. package/src/app/(main)/discover/_layout/Desktop/Header.tsx +1 -1
  291. package/src/app/(main)/discover/components/VirtuosoGridList/index.tsx +9 -5
  292. package/src/app/(main)/discover/search/_layout/Mobile/Header.tsx +1 -1
  293. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +21 -13
  294. package/src/app/(main)/repos/[id]/evals/evaluation/EvaluationList/index.tsx +1 -1
  295. package/src/app/(main)/settings/sync/features/DeviceInfo/SystemIcon.tsx +2 -0
  296. package/src/components/Branding/ProductLogo/Custom.tsx +19 -20
  297. package/src/components/BrowserIcon/index.tsx +19 -30
  298. package/src/components/BubblesLoading/index.tsx +31 -23
  299. package/src/components/FunctionModal/createModalHooks.ts +6 -3
  300. package/src/components/StopLoading.tsx +10 -7
  301. package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
  302. package/src/features/InitClientDB/EnableModal.tsx +2 -2
  303. package/src/features/InitClientDB/{PGliteSVG.tsx → PGliteIcon.tsx} +17 -11
  304. package/src/features/ShareModal/ShareImage/index.tsx +32 -22
  305. package/src/features/ShareModal/ShareJSON/Preview.tsx +2 -2
  306. package/src/features/ShareModal/ShareJSON/index.tsx +49 -37
  307. package/src/features/ShareModal/ShareText/Preview.tsx +4 -1
  308. package/src/features/ShareModal/ShareText/index.tsx +49 -38
  309. package/src/features/ShareModal/index.tsx +1 -1
  310. package/src/features/ShareModal/style.ts +30 -0
  311. package/src/utils/colorUtils.ts +1 -1
  312. package/src/components/BrowserIcon/components/Brave.tsx +0 -56
  313. package/src/components/BrowserIcon/components/Chrome.tsx +0 -14
  314. package/src/components/BrowserIcon/components/Chromium.tsx +0 -14
  315. package/src/components/BrowserIcon/components/Edge.tsx +0 -36
  316. package/src/components/BrowserIcon/components/Firefox.tsx +0 -38
  317. package/src/components/BrowserIcon/components/Opera.tsx +0 -19
  318. package/src/components/BrowserIcon/components/Safari.tsx +0 -23
  319. package/src/components/BrowserIcon/components/Samsung.tsx +0 -21
@@ -12,64 +12,42 @@ tags:
12
12
 
13
13
  # 在 LobeChat 中使用 Anthropic Claude
14
14
 
15
- <Image
16
- alt={'在 LobeChat 中使用 Anthropic Claude'}
17
- cover
18
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'}
19
- />
15
+ <Image alt={'在 LobeChat 中使用 Anthropic Claude'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/620b956b-dcb2-442a-8bb1-9aa22681dfa4'} />
20
16
 
21
- Anthropic Claude API 现在可供所有人使用, 本文档将指导你如何在 LobeChat 中使用 [Anthropic Claude](https://www.anthropic.com/api):
17
+ Anthropic Claude API 现在可供所有人使用,本文档将指导你如何在 LobeChat 中使用 [Anthropic Claude](https://www.anthropic.com/api):
22
18
 
23
19
  <Steps>
20
+ ### 步骤一:获取 Anthropic Claude API 密钥
24
21
 
25
- ### 步骤一:获取 Anthropic Claude API 密钥
22
+ - 创建一个 [Anthropic Claude API](https://www.anthropic.com/api) 帐户
23
+ - 获取您的 [API 密钥](https://console.anthropic.com/settings/keys)
26
24
 
27
- - 创建一个 [Anthropic Claude API](https://www.anthropic.com/api) 帐户
28
- - 获取您的 [API 密钥](https://console.anthropic.com/settings/keys)
25
+ <Image alt={'创建 API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'} />
29
26
 
30
- <Image
31
- alt={'创建 API Key'}
32
- inStep
33
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/15e09e71-5899-4805-9c5e-1f7c57be04ae'}
34
- />
27
+ <Callout type={'warning'}>
28
+ Claude API 现在提供 5 美元的免费积分,但是,它仅适用于某些特定国家 / 地区,您可以转到 Dashboard >
29
+ Claim 查看它是否适用于您所在的国家 / 地区。
30
+ </Callout>
35
31
 
36
- <Callout type={'warning'}>
37
- Claude API 现在提供 5 美元的免费积分,但是,它仅适用于某些特定国家/地区,您可以转到 Dashboard >
38
- Claim 查看它是否适用于您所在的国家/地区。
39
- </Callout>
32
+ - 设置您的账单,让 API 密钥在 [https://console.anthropic.com/settings/plans](https://console.anthropic.com/settings/plans) 上工作(选择 “生成” 计划,以便您可以添加积分并仅为使用量付费)
40
33
 
41
- - 设置您的账单,让 API 密钥在 https://console.anthropic.com/settings/plans 上工作(选择“生成”计划,以便您可以添加积分并仅为使用量付费)
34
+ <Image alt={'设置您的账单'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'} />
42
35
 
43
- <Image
44
- alt={'设置您的账单'}
45
- inStep
46
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/385f663f-cae2-4383-9bb0-52c45e5d7d7a'}
47
- />
36
+ ### 步骤二:在 LobeChat 中配置 Anthropic Claude
48
37
 
49
- ### 步骤二:在 LobeChat 中配置 Anthropic Claude
38
+ - 访问 LobeChat 的`设置`界面
39
+ - 在`语言模型`下找到`Anthropic Claude`的设置项
50
40
 
51
- - 访问 LobeChat 的`设置`界面
52
- - 在`语言模型`下找到`Anthropic Claude`的设置项
41
+ <Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'} />
53
42
 
54
- <Image
55
- alt={'填入 API 密钥'}
56
- inStep
57
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ff9c3eb8-412b-4275-80be-177ae7b7acbc'}
58
- />
43
+ - 填入获得的 API 密钥
44
+ - 为你的 AI 助手选择一个 Anthropic Claude 的模型即可开始对话
59
45
 
60
- - 填入获得的 API 密钥
61
- - 为你的 AI 助手选择一个 Anthropic Claude 的模型即可开始对话
62
-
63
- <Image
64
- alt={'选择 Anthropic Claude 模型并开始对话'}
65
- inStep
66
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'}
67
- />
68
-
69
- <Callout type={'warning'}>
70
- 在使用过程中你可能需要向 API 服务提供商付费,请参考 Anthropic Claude 的相关费用政策。
71
- </Callout>
46
+ <Image alt={'选择 Anthropic Claude 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/6cdc5c0e-0508-44ed-a283-03f6b538ed8a'} />
72
47
 
48
+ <Callout type={'warning'}>
49
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Anthropic Claude 的相关费用政策。
50
+ </Callout>
73
51
  </Steps>
74
52
 
75
53
  至此你已经可以在 LobeChat 中使用 Anthropic Claude 提供的模型进行对话了。
@@ -14,75 +14,45 @@ tags:
14
14
 
15
15
  # Using Azure OpenAI in LobeChat
16
16
 
17
- <Image
18
- alt={'Azure OpenAI in LobeChat'}
19
- cover
20
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
21
- />
17
+ <Image alt={'Azure OpenAI in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'} />
22
18
 
23
19
  This document will guide you on how to use [Azure OpenAI](https://oai.azure.com/) in LobeChat:
24
20
 
25
21
  <Steps>
22
+ ### Step 1: Obtain Azure OpenAI API Key
26
23
 
27
- ### Step 1: Obtain Azure OpenAI API Key
24
+ - If you haven't registered yet, you need to create an [Azure OpenAI account](https://oai.azure.com/).
28
25
 
29
- - If you haven't registered yet, you need to create an [Azure OpenAI account](https://oai.azure.com/).
26
+ <Image alt={'Create an Azure OpenAI account'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'} />
30
27
 
31
- <Image
32
- alt={'Create an Azure OpenAI account'}
33
- inStep
34
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
35
- />
28
+ - After registration, go to the `Deployments` page and create a new deployment with your selected model.
36
29
 
37
- - After registration, go to the `Deployments` page and create a new deployment with your selected model.
30
+ ![Create a new deployment with the selected model](https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a)
38
31
 
39
- ![Create a new deployment with the selected model](https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a)
32
+ <Image alt={'Create a new deployment with your selected model'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'} />
40
33
 
41
- <Image
42
- alt={'Create a new deployment with your selected model'}
43
- inStep
44
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
45
- />
34
+ - Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key.
46
35
 
47
- - Navigate to the `Chat` page and click on `View Code` to obtain your endpoint and key.
36
+ <Image alt={'Go to the Chat page'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'} />
48
37
 
49
- <Image
50
- alt={'Go to the Chat page'}
51
- inStep
52
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
53
- />
38
+ <Image alt={'Get the endpoint and key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'} />
54
39
 
55
- <Image
56
- alt={'Get the endpoint and key'}
57
- inStep
58
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
59
- />
40
+ ### Step 2: Configure Azure OpenAI in LobeChat
60
41
 
61
- ### Step 2: Configure Azure OpenAI in LobeChat
42
+ - Access the `Settings` interface in LobeChat.
43
+ - Find the setting for `Azure OpenAI` under `Language Model`.
62
44
 
63
- - Access the `Settings` interface in LobeChat.
64
- - Find the setting for `Azure OpenAI` under `Language Model`.
45
+ <Image alt={'Enter the API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'} />
65
46
 
66
- <Image
67
- alt={'Enter the API key'}
68
- inStep
69
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
70
- />
47
+ - Enter the API key you obtained.
48
+ - Choose an Azure OpenAI model for your AI assistant to start the conversation.
71
49
 
72
- - Enter the API key you obtained.
73
- - Choose an Azure OpenAI model for your AI assistant to start the conversation.
74
-
75
- <Image
76
- alt={'Select Azure OpenAI model and start the conversation'}
77
- inStep
78
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
79
- />
80
-
81
- <Callout type={'warning'}>
82
- During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's
83
- relevant pricing policies.
84
- </Callout>
50
+ <Image alt={'Select Azure OpenAI model and start the conversation'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'} />
85
51
 
52
+ <Callout type={'warning'}>
53
+ During usage, you may need to pay the API service provider. Please refer to Azure OpenAI's
54
+ relevant pricing policies.
55
+ </Callout>
86
56
  </Steps>
87
57
 
88
58
  Now you can engage in conversations using the models provided by Azure OpenAI in LobeChat.
@@ -9,71 +9,42 @@ tags:
9
9
 
10
10
  # 在 LobeChat 中使用 Azure OpenAI
11
11
 
12
- <Image
13
- alt={'在 LobeChat 中使用 Azure OpenAI'}
14
- cover
15
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'}
16
- />
12
+ <Image alt={'在 LobeChat 中使用 Azure OpenAI'} cover src={'https://github.com/lobehub/lobe-chat/assets/17870709/5efa34c2-6523-43e6-9ade-70ab5d802e13'} />
17
13
 
18
14
  本文档将指导你如何在 LobeChat 中使用 [Azure OpenAI](https://oai.azure.com/):
19
15
 
20
16
  <Steps>
17
+ ### 步骤一:获取 Azure OpenAI API 密钥
21
18
 
22
- ### 步骤一:获取 Azure OpenAI API 密钥
19
+ - 如果尚未注册,则必须注册 [Azure OpenAI 帐户](https://oai.azure.com/)。
23
20
 
24
- - 如果尚未注册,则必须注册 [Azure OpenAI 帐户](https://oai.azure.com/)。
21
+ <Image alt={'注册 Azure OpenAI 帐户'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'} />
25
22
 
26
- <Image
27
- alt={'注册 Azure OpenAI 帐户'}
28
- inStep
29
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/a77b0fb2-87d7-4527-a804-2f7ad3634aa5'}
30
- />
23
+ - 注册完毕后,转到 `Deployments` 页面,然后使用您选择的模型创建新部署。
31
24
 
32
- - 注册完毕后,转到 `Deployments` 页面,然后使用您选择的模型创建新部署。
25
+ <Image alt={'选择的模型创建新部署'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'} />
33
26
 
34
- <Image
35
- alt={'选择的模型创建新部署'}
36
- inStep
37
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/4fae3e6f-e680-4471-93c4-987c19d7170a'}
38
- />
27
+ - 转到 `Chat` 页面,然后单击 `View Code` 以获取您的终结点和密钥。
39
28
 
40
- - 转到 `Chat` 页面,然后单击 `View Code` 以获取您的终结点和密钥。
29
+ <Image alt={'转到 Chat 页面'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'} />
41
30
 
42
- <Image
43
- alt={'转到 Chat 页面'}
44
- inStep
45
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ac10d9dd-a977-43fb-8397-b2bbdee6a1a1'}
46
- />
47
- <Image
48
- alt={'获取终结点和密钥'}
49
- inStep
50
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'}
51
- />
31
+ <Image alt={'获取终结点和密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ab94a7b5-6bc4-41e0-97bc-724ee8e315db'} />
52
32
 
53
- ### 步骤二:在 LobeChat 中配置 Azure OpenAI
33
+ ### 步骤二:在 LobeChat 中配置 Azure OpenAI
54
34
 
55
- - 访问 LobeChat 的`设置`界面
56
- - 在`语言模型`下找到`Azure OpenAI`的设置项
35
+ - 访问 LobeChat 的`设置`界面
36
+ - 在`语言模型`下找到`Azure OpenAI`的设置项
57
37
 
58
- <Image
59
- alt={'填入 API 密钥'}
60
- inStep
61
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'}
62
- />
38
+ <Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/63d9f6d4-5b78-4c65-8cd1-ff8b7f143406'} />
63
39
 
64
- - 填入获得的 API 密钥
65
- - 为你的 AI 助手选择一个 Azure OpenAI 的模型即可开始对话
40
+ - 填入获得的 API 密钥
41
+ - 为你的 AI 助手选择一个 Azure OpenAI 的模型即可开始对话
66
42
 
67
- <Image
68
- alt={'选择 Azure OpenAI 模型并开始对话'}
69
- inStep
70
- src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'}
71
- />
72
-
73
- <Callout type={'warning'}>
74
- 在使用过程中你可能需要向 API 服务提供商付费,请参考 Azure OpenAI 的相关费用政策。
75
- </Callout>
43
+ <Image alt={'选择 Azure OpenAI 模型并开始对话'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ddb44517-8696-4492-acd9-25b590f6069c'} />
76
44
 
45
+ <Callout type={'warning'}>
46
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Azure OpenAI 的相关费用政策。
47
+ </Callout>
77
48
  </Steps>
78
49
 
79
50
  至此你已经可以在 LobeChat 中使用 Azure OpenAI 提供的模型进行对话了。
@@ -13,52 +13,34 @@ tags:
13
13
 
14
14
  # Using Baichuan in LobeChat
15
15
 
16
- <Image
17
- alt={'Using Baichuan in LobeChat'}
18
- cover
19
- src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'}
20
- />
16
+ <Image alt={'Using Baichuan in LobeChat'} cover src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'} />
21
17
 
22
18
  This article will guide you on how to use Baichuan in LobeChat:
23
19
 
24
20
  <Steps>
21
+ ### Step 1: Obtain Baichuan Intelligent API Key
25
22
 
26
- ### Step 1: Obtain Baichuan Intelligent API Key
23
+ - Create a [Baichuan Intelligent](https://platform.baichuan-ai.com/homePage) account
24
+ - Create and obtain an [API key](https://platform.baichuan-ai.com/console/apikey)
27
25
 
28
- - Create a [Baichuan Intelligent](https://platform.baichuan-ai.com/homePage) account
29
- - Create and obtain an [API key](https://platform.baichuan-ai.com/console/apikey)
26
+ <Image alt={'Create API Key'} inStep src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'} />
30
27
 
31
- <Image
32
- alt={'Create API Key'}
33
- inStep
34
- src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'}
35
- />
28
+ ### Step 2: Configure Baichuan in LobeChat
36
29
 
37
- ### Step 2: Configure Baichuan in LobeChat
30
+ - Visit the `Settings` interface in LobeChat
31
+ - Find the setting for `Baichuan` under `Language Model`
38
32
 
39
- - Visit the `Settings` interface in LobeChat
40
- - Find the setting for `Baichuan` under `Language Model`
33
+ <Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'} />
41
34
 
42
- <Image
43
- alt={'Enter API Key'}
44
- inStep
45
- src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'}
46
- />
35
+ - Enter the obtained API key
36
+ - Choose a Baichuan model for your AI assistant to start the conversation
47
37
 
48
- - Enter the obtained API key
49
- - Choose a Baichuan model for your AI assistant to start the conversation
50
-
51
- <Image
52
- alt={'Select Baichuan model and start conversation'}
53
- inStep
54
- src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'}
55
- />
56
-
57
- <Callout type={'warning'}>
58
- During usage, you may need to pay the API service provider, please refer to Baichuan's relevant
59
- pricing policies.
60
- </Callout>
38
+ <Image alt={'Select Baichuan model and start conversation'} inStep src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'} />
61
39
 
40
+ <Callout type={'warning'}>
41
+ During usage, you may need to pay the API service provider, please refer to Baichuan's relevant
42
+ pricing policies.
43
+ </Callout>
62
44
  </Steps>
63
45
 
64
46
  You can now use the models provided by Baichuan for conversation in LobeChat.
@@ -11,51 +11,33 @@ tags:
11
11
 
12
12
  # 在 LobeChat 中使用百川
13
13
 
14
- <Image
15
- alt={'在 LobeChat 中使用百川'}
16
- cover
17
- src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'}
18
- />
14
+ <Image alt={'在 LobeChat 中使用百川'} cover src={'https://github.com/user-attachments/assets/d961f2af-47b0-4806-8288-b1e8f7ee8a47'} />
19
15
 
20
16
  本文将指导你如何在 LobeChat 中使用百川:
21
17
 
22
18
  <Steps>
19
+ ### 步骤一:获取百川智能 API 密钥
23
20
 
24
- ### 步骤一:获取百川智能 API 密钥
21
+ - 创建一个[百川智能](https://platform.baichuan-ai.com/homePage)账户
22
+ - 创建并获取 [API 密钥](https://platform.baichuan-ai.com/console/apikey)
25
23
 
26
- - 创建一个[百川智能](https://platform.baichuan-ai.com/homePage)账户
27
- - 创建并获取 [API 密钥](https://platform.baichuan-ai.com/console/apikey)
24
+ <Image alt={'创建 API Key'} inStep src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'} />
28
25
 
29
- <Image
30
- alt={'创建 API Key'}
31
- inStep
32
- src={'https://github.com/user-attachments/assets/8787716c-833e-44ab-b506-922ddb6121de'}
33
- />
26
+ ### 步骤二:在 LobeChat 中配置百川
34
27
 
35
- ### 步骤二:在 LobeChat 中配置百川
28
+ - 访问 LobeChat 的`设置`界面
29
+ - 在`语言模型`下找到`百川`的设置项
36
30
 
37
- - 访问 LobeChat 的`设置`界面
38
- - 在`语言模型`下找到`百川`的设置项
31
+ <Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'} />
39
32
 
40
- <Image
41
- alt={'填入 API 密钥'}
42
- inStep
43
- src={'https://github.com/user-attachments/assets/dec6665a-b3ec-4c50-a57f-7c7eb3160e7b'}
44
- />
33
+ - 填入获得的 API 密钥
34
+ - 为你的 AI 助手选择一个百川的模型即可开始对话
45
35
 
46
- - 填入获得的 API 密钥
47
- - 为你的 AI 助手选择一个百川的模型即可开始对话
48
-
49
- <Image
50
- alt={'选择百川模型并开始对话'}
51
- inStep
52
- src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'}
53
- />
54
-
55
- <Callout type={'warning'}>
56
- 在使用过程中你可能需要向 API 服务提供商付费,请参考百川的相关费用政策。
57
- </Callout>
36
+ <Image alt={'选择百川模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/bfda556a-d3fc-409f-8647-e718788f2fb8'} />
58
37
 
38
+ <Callout type={'warning'}>
39
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考百川的相关费用政策。
40
+ </Callout>
59
41
  </Steps>
60
42
 
61
43
  至此你已经可以在 LobeChat 中使用百川提供的模型进行对话了。
@@ -14,126 +14,77 @@ tags:
14
14
 
15
15
  # Using Amazon Bedrock in LobeChat
16
16
 
17
- <Image
18
- alt={'Using Amazon Bedrock in LobeChat'}
19
- cover
20
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'}
21
- />
17
+ <Image alt={'Using Amazon Bedrock in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/74768b36-28ca-4ec3-a42d-b32abe2c7057'} />
22
18
 
23
19
  Amazon Bedrock is a fully managed foundational model API service that allows users to access models from leading AI companies (such as AI21 Labs, Anthropic, Cohere, Meta, Stability AI) and Amazon's own foundational models.
24
20
 
25
21
  This document will guide you on how to use Amazon Bedrock in LobeChat:
26
22
 
27
23
  <Steps>
28
- ### Step 1: Grant Access to Amazon Bedrock Models in AWS
24
+ ### Step 1: Grant Access to Amazon Bedrock Models in AWS
29
25
 
30
- - Access and log in to the [AWS Console](https://console.aws.amazon.com/)
31
- - Search for `bedrock` and enter the `Amazon Bedrock` service
26
+ - Access and log in to the [AWS Console](https://console.aws.amazon.com/)
27
+ - Search for `bedrock` and enter the `Amazon Bedrock` service
32
28
 
33
- <Image
34
- alt={'Enter Amazon Bedrock service'}
35
- inStep
36
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'}
37
- />
29
+ <Image alt={'Enter Amazon Bedrock service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/4e0e87d1-4970-45c5-a9ef-287098f6a198'} />
38
30
 
39
- - Select `Models access` from the left menu
31
+ - Select `Models access` from the left menu
40
32
 
41
- <Image
42
- alt={'Access Amazon Bedrock model permissions'}
43
- inStep
44
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'}
45
- />
33
+ <Image alt={'Access Amazon Bedrock model permissions'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/fd06c0aa-4bd3-4f4e-bf2b-38374dfe775d'} />
46
34
 
47
- - Open model access permissions based on your needs
35
+ - Open model access permissions based on your needs
48
36
 
49
- <Image
50
- alt={'Open model access permissions'}
51
- inStep
52
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'}
53
- />
37
+ <Image alt={'Open model access permissions'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/b695f26a-5bcd-477c-af08-bf03adb717c2'} />
54
38
 
55
- <Callout type={'info'}>Some models may require additional information from you</Callout>
39
+ <Callout type={'info'}>Some models may require additional information from you</Callout>
56
40
 
57
- ### Step 2: Obtain API Access Keys
41
+ ### Step 2: Obtain API Access Keys
58
42
 
59
- - Continue searching for IAM in the AWS console and enter the IAM service
43
+ - Continue searching for IAM in the AWS console and enter the IAM service
60
44
 
61
- <Image
62
- alt={'Enter IAM service'}
63
- inStep
64
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'}
65
- />
45
+ <Image alt={'Enter IAM service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/f9a5a394-c8f8-4567-9d51-cf84811418ca'} />
66
46
 
67
- - In the `Users` menu, create a new IAM user
47
+ - In the `Users` menu, create a new IAM user
68
48
 
69
- <Image
70
- alt={'Create a new IAM user'}
71
- inStep
72
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'}
73
- />
49
+ <Image alt={'Create a new IAM user'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/750b5cd1-f16a-4330-b899-c27b28b1e837'} />
74
50
 
75
- - Enter the user name in the pop-up dialog box
51
+ - Enter the user name in the pop-up dialog box
76
52
 
77
- <Image
78
- alt={'Enter user name'}
79
- inStep
80
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'}
81
- />
53
+ <Image alt={'Enter user name'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/22ce5a72-bc46-41f3-b402-bda6dee90184'} />
82
54
 
83
- - Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
55
+ - Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
84
56
 
85
- <Image
86
- alt={'Add permissions for the user'}
87
- inStep
88
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'}
89
- />
57
+ <Image alt={'Add permissions for the user'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/94836b32-7fc5-45ca-8556-7a23f53b15f9'} />
90
58
 
91
- - Create an access key for the added user
59
+ - Create an access key for the added user
92
60
 
93
- <Image
94
- alt={'Create an access key'}
95
- inStep
96
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'}
97
- />
61
+ <Image alt={'Create an access key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/ac2ed716-d270-43f6-856b-3ff81265f4e6'} />
98
62
 
99
- - Copy and securely store the access key and secret access key, as they will be needed later
63
+ - Copy and securely store the access key and secret access key, as they will be needed later
100
64
 
101
- <Image
102
- alt={'Enter IAM service'}
103
- inStep
104
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'}
105
- />
65
+ <Image alt={'Enter IAM service'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/3c64b747-f6f1-4ed2-84bc-bfa8e5d90966'} />
106
66
 
107
- <Callout type={'warning'}>
108
- Please securely store the keys as they will only be shown once. If you lose them accidentally, you
109
- will need to create a new access key.
110
- </Callout>
67
+ <Callout type={'warning'}>
68
+ Please securely store the keys as they will only be shown once. If you lose them accidentally, you
69
+ will need to create a new access key.
70
+ </Callout>
111
71
 
112
- ### Step 3: Configure Amazon Bedrock in LobeChat
72
+ ### Step 3: Configure Amazon Bedrock in LobeChat
113
73
 
114
- - Access the `Settings` interface in LobeChat
115
- - Find the setting for `Amazon Bedrock` under `Language Models` and open it
74
+ - Access the `Settings` interface in LobeChat
75
+ - Find the setting for `Amazon Bedrock` under `Language Models` and open it
116
76
 
117
- <Image
118
- alt={'Enter Amazon Bedrock keys in LobeChat'}
119
- inStep
120
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'}
121
- />
77
+ <Image alt={'Enter Amazon Bedrock keys in LobeChat'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/7468594b-3355-4cb9-85bc-c9dace137653'} />
122
78
 
123
- - Open Amazon Bedrock and enter the obtained access key and secret access key
124
- - Choose an Amazon Bedrock model for your assistant to start the conversation
79
+ - Open Amazon Bedrock and enter the obtained access key and secret access key
80
+ - Choose an Amazon Bedrock model for your assistant to start the conversation
125
81
 
126
- <Image
127
- alt={'Select and use Amazon Bedrock model'}
128
- inStep
129
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'}
130
- />
131
-
132
- <Callout type={'warning'}>
133
- You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
134
- policy.
135
- </Callout>
82
+ <Image alt={'Select and use Amazon Bedrock model'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/164b34b5-671e-418d-b34a-3b70f1156d06'} />
136
83
 
84
+ <Callout type={'warning'}>
85
+ You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
86
+ policy.
87
+ </Callout>
137
88
  </Steps>
138
89
 
139
90
  You can now engage in conversations using the models provided by Amazon Bedrock in LobeChat.