@lobehub/chat 1.44.2 → 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 (324) hide show
  1. package/.remarkrc.mdx.js +6 -0
  2. package/CHANGELOG.md +50 -0
  3. package/changelog/v1.json +18 -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/database/repositories/aiInfra/index.ts +19 -7
  302. package/src/database/server/models/__tests__/aiModel.test.ts +4 -6
  303. package/src/database/server/models/aiModel.ts +6 -3
  304. package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
  305. package/src/features/InitClientDB/EnableModal.tsx +2 -2
  306. package/src/features/InitClientDB/{PGliteSVG.tsx → PGliteIcon.tsx} +17 -11
  307. package/src/features/ShareModal/ShareImage/index.tsx +32 -22
  308. package/src/features/ShareModal/ShareJSON/Preview.tsx +2 -2
  309. package/src/features/ShareModal/ShareJSON/index.tsx +49 -37
  310. package/src/features/ShareModal/ShareText/Preview.tsx +4 -1
  311. package/src/features/ShareModal/ShareText/index.tsx +49 -38
  312. package/src/features/ShareModal/index.tsx +1 -1
  313. package/src/features/ShareModal/style.ts +30 -0
  314. package/src/store/aiInfra/slices/aiProvider/action.ts +1 -1
  315. package/src/types/aiProvider.ts +1 -0
  316. package/src/utils/colorUtils.ts +1 -1
  317. package/src/components/BrowserIcon/components/Brave.tsx +0 -56
  318. package/src/components/BrowserIcon/components/Chrome.tsx +0 -14
  319. package/src/components/BrowserIcon/components/Chromium.tsx +0 -14
  320. package/src/components/BrowserIcon/components/Edge.tsx +0 -36
  321. package/src/components/BrowserIcon/components/Firefox.tsx +0 -38
  322. package/src/components/BrowserIcon/components/Opera.tsx +0 -19
  323. package/src/components/BrowserIcon/components/Safari.tsx +0 -23
  324. package/src/components/BrowserIcon/components/Samsung.tsx +0 -21
@@ -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/9cb27b68-f2ac-4ff9-8f97-d96314b1af03'}
18
- />
14
+ <Image alt={'在 LobeChat 中使用太初'} cover src={'https://github.com/user-attachments/assets/9cb27b68-f2ac-4ff9-8f97-d96314b1af03'} />
19
15
 
20
16
  本文将指导你如何在 LobeChat 中使用紫东太初:
21
17
 
22
18
  <Steps>
19
+ ### 步骤一:获取紫东太初 API 密钥
23
20
 
24
- ### 步骤一:获取紫东太初 API 密钥
21
+ - 创建一个[紫东太初](https://ai-maas.wair.ac.cn/)账户
22
+ - 创建并获取 [API 密钥](https://ai-maas.wair.ac.cn/#/settlement/api/key)
25
23
 
26
- - 创建一个[紫东太初](https://ai-maas.wair.ac.cn/)账户
27
- - 创建并获取 [API 密钥](https://ai-maas.wair.ac.cn/#/settlement/api/key)
24
+ <Image alt={'创建 API Key'} inStep src={'https://github.com/user-attachments/assets/8d90ae64-cf8e-4d90-8a31-c18ab484740b'} />
28
25
 
29
- <Image
30
- alt={'创建 API Key'}
31
- inStep
32
- src={'https://github.com/user-attachments/assets/8d90ae64-cf8e-4d90-8a31-c18ab484740b'}
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/55028fe5-44db-49e2-93c5-5dabbd664f10'} />
39
32
 
40
- <Image
41
- alt={'填入 API 密钥'}
42
- inStep
43
- src={'https://github.com/user-attachments/assets/55028fe5-44db-49e2-93c5-5dabbd664f10'}
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/c44b6894-70cb-4876-b792-2e76e75ac542'}
53
- />
54
-
55
- <Callout type={'warning'}>
56
- 在使用过程中你可能需要向 API 服务提供商付费,请参考紫东太初的相关费用政策。
57
- </Callout>
36
+ <Image alt={'选择太初模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/c44b6894-70cb-4876-b792-2e76e75ac542'} />
58
37
 
38
+ <Callout type={'warning'}>
39
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考紫东太初的相关费用政策。
40
+ </Callout>
59
41
  </Steps>
60
42
 
61
43
  至此你已经可以在 LobeChat 中使用紫东太初提供的模型进行对话了。
@@ -11,62 +11,40 @@ tags:
11
11
 
12
12
  # Using Together AI in LobeChat
13
13
 
14
- <Image
15
- alt={'Using Together AI in LobeChat'}
16
- cover
17
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/28e025dd-367b-4add-85b6-499f4aacda61'}
18
- />
14
+ <Image alt={'Using Together AI in LobeChat'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/28e025dd-367b-4add-85b6-499f4aacda61'} />
19
15
 
20
16
  [together.ai](https://www.together.ai/) is a platform focused on the field of Artificial Intelligence Generated Content (AIGC), founded in June 2022. It is dedicated to building a cloud platform for running, training, and fine-tuning open-source models, providing scalable computing power at prices lower than mainstream vendors.
21
17
 
22
18
  This document will guide you on how to use Together AI in LobeChat:
23
19
 
24
20
  <Steps>
21
+ ### Step 1: Obtain the API Key for Together AI
25
22
 
26
- ### Step 1: Obtain the API Key for Together AI
23
+ - Visit and log in to [Together AI API](https://api.together.ai/)
24
+ - Upon initial login, the system will automatically create an API key for you and provide a $5.0 credit
27
25
 
28
- - Visit and log in to [Together AI API](https://api.together.ai/)
29
- - Upon initial login, the system will automatically create an API key for you and provide a $5.0 credit
26
+ <Image alt={'Obtain together.ai API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/fcdcda9b-8668-4eac-b5cb-04803a888e92'} />
30
27
 
31
- <Image
32
- alt={'Obtain together.ai API key'}
33
- inStep
34
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/fcdcda9b-8668-4eac-b5cb-04803a888e92'}
35
- />
28
+ - If you haven't saved it, you can also view the API key at any time in the `API Key` interface under `Settings`
36
29
 
37
- - If you haven't saved it, you can also view the API key at any time in the `API Key` interface under `Settings`
30
+ <Image alt={'View together.ai API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/663335d0-fb37-4882-9c7f-ebbd53275644'} />
38
31
 
39
- <Image
40
- alt={'View together.ai API key'}
41
- inStep
42
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/663335d0-fb37-4882-9c7f-ebbd53275644'}
43
- />
32
+ ### Step 2: Configure Together AI in LobeChat
44
33
 
45
- ### Step 2: Configure Together AI in LobeChat
34
+ - Visit the `Settings` interface in LobeChat
35
+ - Find the setting for `together.ai` under `Language Model`
46
36
 
47
- - Visit the `Settings` interface in LobeChat
48
- - Find the setting for `together.ai` under `Language Model`
37
+ <Image alt={'Enter Together AI API key in LobeChat'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/0cc6c9b8-4688-472b-a80f-f84c5ebbc719'} />
49
38
 
50
- <Image
51
- alt={'Enter Together AI API key in LobeChat'}
52
- inStep
53
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/0cc6c9b8-4688-472b-a80f-f84c5ebbc719'}
54
- />
39
+ - Open together.ai and enter the obtained API key
40
+ - Choose a Together AI model for your assistant to start the conversation
55
41
 
56
- - Open together.ai and enter the obtained API key
57
- - Choose a Together AI model for your assistant to start the conversation
58
-
59
- <Image
60
- alt={'Select and use Together AI model'}
61
- inStep
62
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/34d92da4-783f-4f16-8c4a-9d8e9a03c8da'}
63
- />
64
-
65
- <Callout type={'warning'}>
66
- During usage, you may need to pay the API service provider, please refer to Together AI's pricing
67
- policy.
68
- </Callout>
42
+ <Image alt={'Select and use Together AI model'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/34d92da4-783f-4f16-8c4a-9d8e9a03c8da'} />
69
43
 
44
+ <Callout type={'warning'}>
45
+ During usage, you may need to pay the API service provider, please refer to Together AI's pricing
46
+ policy.
47
+ </Callout>
70
48
  </Steps>
71
49
 
72
50
  You can now engage in conversations using the models provided by Together AI in LobeChat.
@@ -10,61 +10,39 @@ tags:
10
10
 
11
11
  # 在 LobeChat 中使用 Together AI
12
12
 
13
- <Image
14
- alt={'在 LobeChat 中使用 Together AI'}
15
- cover
16
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/28e025dd-367b-4add-85b6-499f4aacda61'}
17
- />
13
+ <Image alt={'在 LobeChat 中使用 Together AI'} cover src={'https://github.com/lobehub/lobe-chat/assets/34400653/28e025dd-367b-4add-85b6-499f4aacda61'} />
18
14
 
19
- [together.ai](https://www.together.ai/) 是一家专注于生成式人工智能(AIGC)领域的平台,成立于2022年6月。 它致力于构建用于运行、训练和微调开源模型的云平台,以低于主流供应商的价格提供可扩展的计算能力。
15
+ [together.ai](https://www.together.ai/) 是一家专注于生成式人工智能 (AIGC) 领域的平台,成立于 2022 6 月。 它致力于构建用于运行、训练和微调开源模型的云平台,以低于主流供应商的价格提供可扩展的计算能力。
20
16
 
21
17
  本文档将指导你如何在 LobeChat 中使用 Together AI:
22
18
 
23
19
  <Steps>
20
+ ### 步骤一:获取 Together AI 的 API 密钥
24
21
 
25
- ### 步骤一:获取 Together AI API 密钥
22
+ - 访问并登录 [Together AI API](https://api.together.ai/)
23
+ - 初次登录时系统会自动为你创建好 API 密钥并赠送 $5.0 的额度
26
24
 
27
- - 访问并登录 [Together AI API](https://api.together.ai/)
28
- - 初次登录时系统会自动为你创建好 API 密钥并赠送 $5.0 的额度
25
+ <Image alt={'获得 together.ai API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/fcdcda9b-8668-4eac-b5cb-04803a888e92'} />
29
26
 
30
- <Image
31
- alt={'获得 together.ai API 密钥'}
32
- inStep
33
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/fcdcda9b-8668-4eac-b5cb-04803a888e92'}
34
- />
27
+ - 如果你没有保存,也可以在后续任意时间,通过 `设置` 中的 `API 密钥` 界面查看
35
28
 
36
- - 如果你没有保存,也可以在后续任意时间,通过 `设置` 中的 `API 密钥` 界面查看
29
+ <Image alt={'查看 together.ai API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/663335d0-fb37-4882-9c7f-ebbd53275644'} />
37
30
 
38
- <Image
39
- alt={'查看 together.ai API 密钥'}
40
- inStep
41
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/663335d0-fb37-4882-9c7f-ebbd53275644'}
42
- />
31
+ ### 步骤二:在 LobeChat 中配置 Together AI
43
32
 
44
- ### 步骤二:在 LobeChat 中配置 Together AI
33
+ - 访问 LobeChat 的`设置`界面
34
+ - 在`语言模型`下找到`together.ai`的设置项
45
35
 
46
- - 访问LobeChat的`设置`界面
47
- - 在`语言模型`下找到`together.ai`的设置项
36
+ <Image alt={'LobeChat 中填写 Together AI API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/0cc6c9b8-4688-472b-a80f-f84c5ebbc719'} />
48
37
 
49
- <Image
50
- alt={'LobeChat 中填写 Together AI API 密钥'}
51
- inStep
52
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/0cc6c9b8-4688-472b-a80f-f84c5ebbc719'}
53
- />
38
+ - 打开 together.ai 并填入获得的 API 密钥
39
+ - 为你的助手选择一个 Together AI 的模型即可开始对话
54
40
 
55
- - 打开 together.ai 并填入获得的 API 密钥
56
- - 为你的助手选择一个 Together AI 的模型即可开始对话
57
-
58
- <Image
59
- alt={' 选择并使用 Together AI 模型 '}
60
- inStep
61
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/34d92da4-783f-4f16-8c4a-9d8e9a03c8da'}
62
- />
63
-
64
- <Callout type={'warning'}>
65
- 在使用过程中你可能需要向 API 服务提供商付费,请参考 Together AI 的费用政策。
66
- </Callout>
41
+ <Image alt={' 选择并使用 Together AI 模型 '} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/34d92da4-783f-4f16-8c4a-9d8e9a03c8da'} />
67
42
 
43
+ <Callout type={'warning'}>
44
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Together AI 的费用政策。
45
+ </Callout>
68
46
  </Steps>
69
47
 
70
48
  至此你已经可以在 LobeChat 中使用 Together AI 提供的模型进行对话了。
@@ -10,54 +10,38 @@ tags:
10
10
 
11
11
  # Using Upstage in LobeChat
12
12
 
13
- <Image
14
- cover
15
- src={'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'}
16
- />
13
+ <Image cover src={'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'} />
17
14
 
18
15
  [Upstage](https://www.upstage.ai/) is a platform that offers AI models and services, focusing on applications in natural language processing and machine learning. It allows developers to access its powerful AI capabilities through APIs, supporting various tasks such as text generation and conversational systems.
19
16
 
20
17
  This article will guide you on how to use Upstage in LobeChat.
21
18
 
22
19
  <Steps>
23
- ### Step 1: Obtain an Upstage API Key
20
+ ### Step 1: Obtain an Upstage API Key
24
21
 
25
- - Register and log in to the [Upstage Console](https://console.upstage.ai/home)
26
- - Navigate to the `API Keys` page
27
- - Create a new API key
28
- - Copy and save the generated API key
22
+ - Register and log in to the [Upstage Console](https://console.upstage.ai/home)
23
+ - Navigate to the `API Keys` page
24
+ - Create a new API key
25
+ - Copy and save the generated API key
29
26
 
30
- <Image
31
- alt={'Save the API Key'}
32
- inStep
33
- src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'}
34
- />
27
+ <Image alt={'Save the API Key'} inStep src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'} />
35
28
 
36
- ### Step 2: Configure Upstage in LobeChat
29
+ ### Step 2: Configure Upstage in LobeChat
37
30
 
38
- - Access the `Settings` interface in LobeChat
39
- - Locate the `Upstage` settings under `Language Models`
31
+ - Access the `Settings` interface in LobeChat
32
+ - Locate the `Upstage` settings under `Language Models`
40
33
 
41
- <Image
42
- alt={'Enter API Key'}
43
- inStep
44
- src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'}
45
- />
34
+ <Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'} />
46
35
 
47
- - Enter the obtained API key
48
- - Select an Upstage model for your AI assistant to start the conversation
36
+ - Enter the obtained API key
37
+ - Select an Upstage model for your AI assistant to start the conversation
49
38
 
50
- <Image
51
- alt={'Select Upstage Model and Start Conversation'}
52
- inStep
53
- src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'}
54
- />
55
-
56
- <Callout type={'warning'}>
57
- Please note that you may need to pay the API service provider for usage. Refer to Upstage's
58
- pricing policy for more information.
59
- </Callout>
39
+ <Image alt={'Select Upstage Model and Start Conversation'} inStep src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'} />
60
40
 
41
+ <Callout type={'warning'}>
42
+ Please note that you may need to pay the API service provider for usage. Refer to Upstage's
43
+ pricing policy for more information.
44
+ </Callout>
61
45
  </Steps>
62
46
 
63
47
  You can now use the models provided by Upstage for conversations in LobeChat.
@@ -10,53 +10,37 @@ tags:
10
10
 
11
11
  # 在 LobeChat 中使用 Upstage
12
12
 
13
- <Image
14
- cover
15
- src={'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'}
16
- />
13
+ <Image cover src={'https://github.com/user-attachments/assets/14696698-03f7-4856-b36c-9a53997eb12c'} />
17
14
 
18
15
  [Upstage](https://www.upstage.ai/) 是一个提供 AI 模型和服务的平台,专注于自然语言处理和机器学习应用。它允许开发者通过 API 接入其强大的 AI 功能,支持多种任务,如文本生成、对话系统等。
19
16
 
20
17
  本文将指导你如何在 LobeChat 中使用 Upstage。
21
18
 
22
19
  <Steps>
23
- ### 步骤一:获得 Upstage 的 API Key
20
+ ### 步骤一:获得 Upstage 的 API Key
24
21
 
25
- - 注册并登录 [Upstage 控制台](https://console.upstage.ai/home)
26
- - 进入 `API Keys` 页面
27
- - 创建一个新的 API 密钥
28
- - 复制并保存生成的 API 密钥
22
+ - 注册并登录 [Upstage 控制台](https://console.upstage.ai/home)
23
+ - 进入 `API Keys` 页面
24
+ - 创建一个新的 API 密钥
25
+ - 复制并保存生成的 API 密钥
29
26
 
30
- <Image
31
- alt={'保存 API 密钥'}
32
- inStep
33
- src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'}
34
- />
27
+ <Image alt={'保存 API 密钥'} inStep src={'https://github.com/user-attachments/assets/8a0225e0-16ed-40ce-9cd5-553dda561679'} />
35
28
 
36
- ### 步骤二:在 LobeChat 中配置 Upstage
29
+ ### 步骤二:在 LobeChat 中配置 Upstage
37
30
 
38
- - 访问 LobeChat 的`设置`界面
39
- - 在`语言模型`下找到 `Upstage` 的设置项
31
+ - 访问 LobeChat 的`设置`界面
32
+ - 在`语言模型`下找到 `Upstage` 的设置项
40
33
 
41
- <Image
42
- alt={'填入 API 密钥'}
43
- inStep
44
- src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'}
45
- />
34
+ <Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/e89d2a56-4bf0-4bff-ac39-0d44789fa858'} />
46
35
 
47
- - 填入获得的 API 密钥
48
- - 为你的 AI 助手选择一个 Upstage 的模型即可开始对话
36
+ - 填入获得的 API 密钥
37
+ - 为你的 AI 助手选择一个 Upstage 的模型即可开始对话
49
38
 
50
- <Image
51
- alt={'选择 Upstage 模型并开始对话'}
52
- inStep
53
- src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'}
54
- />
55
-
56
- <Callout type={'warning'}>
57
- 在使用过程中你可能需要向 API 服务提供商付费,请参考 Upstage 的相关费用政策。
58
- </Callout>
39
+ <Image alt={'选择 Upstage 模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/88e14294-20a6-47c6-981e-fb65453b57cd'} />
59
40
 
41
+ <Callout type={'warning'}>
42
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Upstage 的相关费用政策。
43
+ </Callout>
60
44
  </Steps>
61
45
 
62
46
  至此你已经可以在 LobeChat 中使用 Upstage 提供的模型进行对话了。
@@ -13,63 +13,43 @@ tags:
13
13
 
14
14
  # Using Wenxin Qianfan in LobeChat
15
15
 
16
- <Image
17
- cover
18
- src={'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'}
19
- />
16
+ <Image cover src={'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'} />
20
17
 
21
- [Wenxin Qianfan](https://qianfan.cloud.baidu.com/) is an artificial intelligence large language model platform launched by Baidu, supporting a variety of application scenarios, including literary creation, commercial copywriting, and mathematical logic reasoning. The platform features deep semantic understanding and generation capabilities across modalities and languages, and it is widely utilized in fields such as search Q&A, content creation, and smart office applications.
18
+ [Wenxin Qianfan](https://qianfan.cloud.baidu.com/) is an artificial intelligence large language model platform launched by Baidu, supporting a variety of application scenarios, including literary creation, commercial copywriting, and mathematical logic reasoning. The platform features deep semantic understanding and generation capabilities across modalities and languages, and it is widely utilized in fields such as search Q\&A, content creation, and smart office applications.
22
19
 
23
20
  This article will guide you on how to use Wenxin Qianfan in LobeChat.
24
21
 
25
22
  <Steps>
26
- ### Step 1: Obtain the Wenxin Qianfan API Key
23
+ ### Step 1: Obtain the Wenxin Qianfan API Key
27
24
 
28
- - Register and log in to the [Baidu Intelligent Cloud Console](https://console.bce.baidu.com/)
29
- - Navigate to `Baidu Intelligent Cloud Qianfan ModelBuilder`
30
- - Choose `Application Access` from the left-side menu
31
- - Create an application
25
+ - Register and log in to the [Baidu Intelligent Cloud Console](https://console.bce.baidu.com/)
26
+ - Navigate to `Baidu Intelligent Cloud Qianfan ModelBuilder`
27
+ - Choose `Application Access` from the left-side menu
28
+ - Create an application
32
29
 
33
- <Image
34
- alt={'Create Application'}
35
- inStep
36
- src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'}
37
- />
30
+ <Image alt={'Create Application'} inStep src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'} />
38
31
 
39
- - Enter the `Security Authentication` -> `Access Key` management page from the user account menu
40
- - Copy the `Access Key` and `Secret Key`, and store them safely
32
+ - Enter the `Security Authentication` -> `Access Key` management page from the user account menu
33
+ - Copy the `Access Key` and `Secret Key`, and store them safely
41
34
 
42
- <Image
43
- alt={'Save Keys'}
44
- inStep
45
- src={'https://github.com/user-attachments/assets/bb9dadd3-7e9c-45fd-8c56-553ab7287453'}
46
- />
35
+ <Image alt={'Save Keys'} inStep src={'https://github.com/user-attachments/assets/bb9dadd3-7e9c-45fd-8c56-553ab7287453'} />
47
36
 
48
- ### Step 2: Configure Wenxin Qianfan in LobeChat
37
+ ### Step 2: Configure Wenxin Qianfan in LobeChat
49
38
 
50
- - Go to the `Settings` interface in LobeChat
51
- - Locate the settings for `Wenxin Qianfan` under `Language Model`
39
+ - Go to the `Settings` interface in LobeChat
40
+ - Locate the settings for `Wenxin Qianfan` under `Language Model`
52
41
 
53
- <Image
54
- alt={'Enter API Keys'}
55
- inStep
56
- src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'}
57
- />
42
+ <Image alt={'Enter API Keys'} inStep src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'} />
58
43
 
59
- - Enter the obtained `Access Key` and `Secret Key`
60
- - Select a Wenxin Qianfan model for your AI assistant to start interacting
44
+ - Enter the obtained `Access Key` and `Secret Key`
45
+ - Select a Wenxin Qianfan model for your AI assistant to start interacting
61
46
 
62
- <Image
63
- alt={'Select Wenxin Qianfan Model and Start Chat'}
64
- inStep
65
- src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'}
66
- />
67
-
68
- <Callout type={'warning'}>
69
- During usage, you may need to pay the API service provider. Please refer to Wenxin Qianfan's
70
- relevant fee policy.
71
- </Callout>
47
+ <Image alt={'Select Wenxin Qianfan Model and Start Chat'} inStep src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'} />
72
48
 
49
+ <Callout type={'warning'}>
50
+ During usage, you may need to pay the API service provider. Please refer to Wenxin Qianfan's
51
+ relevant fee policy.
52
+ </Callout>
73
53
  </Steps>
74
54
 
75
55
  You can now use the models provided by Wenxin Qianfan for conversations in LobeChat.
@@ -11,62 +11,42 @@ tags:
11
11
 
12
12
  # 在 LobeChat 中使用文心千帆
13
13
 
14
- <Image
15
- cover
16
- src={'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'}
17
- />
14
+ <Image cover src={'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'} />
18
15
 
19
16
  [文心千帆](https://qianfan.cloud.baidu.com/)是百度推出的一个人工智能大语言模型平台,支持多种应用场景,包括文学创作、商业文案生成、数理逻辑推算等。该平台具备跨模态、跨语言的深度语义理解与生成能力,广泛应用于搜索问答、内容创作和智能办公等领域。
20
17
 
21
18
  本文将指导你如何在 LobeChat 中使用文心千帆。
22
19
 
23
20
  <Steps>
24
- ### 步骤一:获得文心千帆的 API Key
21
+ ### 步骤一:获得文心千帆的 API Key
25
22
 
26
- - 注册并登录 [百度智能云控制台](https://console.bce.baidu.com/)
27
- - 进入 `百度智能云千帆 ModelBuilder`
28
- - 在左侧菜单中选择`应用接入`
29
- - 创建一个应用
23
+ - 注册并登录 [百度智能云控制台](https://console.bce.baidu.com/)
24
+ - 进入 `百度智能云千帆 ModelBuilder`
25
+ - 在左侧菜单中选择`应用接入`
26
+ - 创建一个应用
30
27
 
31
- <Image
32
- alt={'创建应用'}
33
- inStep
34
- src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'}
35
- />
28
+ <Image alt={'创建应用'} inStep src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'} />
36
29
 
37
- - 在用户账号菜单进入 `安全认证` -> `Access Key` 管理页面
38
- - 复制 `Access Key` 和 `Secret Key`,并妥善保存
30
+ - 在用户账号菜单进入 `安全认证` -> `Access Key` 管理页面
31
+ - 复制 `Access Key` 和 `Secret Key`,并妥善保存
39
32
 
40
- <Image
41
- alt={'保存密钥'}
42
- inStep
43
- src={'https://github.com/user-attachments/assets/bb9dadd3-7e9c-45fd-8c56-553ab7287453'}
44
- />
33
+ <Image alt={'保存密钥'} inStep src={'https://github.com/user-attachments/assets/bb9dadd3-7e9c-45fd-8c56-553ab7287453'} />
45
34
 
46
- ### 步骤二:在 LobeChat 中配置文心千帆
35
+ ### 步骤二:在 LobeChat 中配置文心千帆
47
36
 
48
- - 访问 LobeChat 的`设置`界面
49
- - 在`语言模型`下找到 `文心千帆` 的设置项
37
+ - 访问 LobeChat 的`设置`界面
38
+ - 在`语言模型`下找到 `文心千帆` 的设置项
50
39
 
51
- <Image
52
- alt={'填入 API 密钥'}
53
- inStep
54
- src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'}
55
- />
40
+ <Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'} />
56
41
 
57
- - 填入获得的 `Access Key` 和 `Secret Key`
58
- - 为你的 AI 助手选择一个文心千帆的模型即可开始对话
42
+ - 填入获得的 `Access Key` 和 `Secret Key`
43
+ - 为你的 AI 助手选择一个文心千帆的模型即可开始对话
59
44
 
60
- <Image
61
- alt={'选择文心千帆模型并开始对话'}
62
- inStep
63
- src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'}
64
- />
65
-
66
- <Callout type={'warning'}>
67
- 在使用过程中你可能需要向 API 服务提供商付费,请参考文心千帆的相关费用政策。
68
- </Callout>
45
+ <Image alt={'选择文心千帆模型并开始对话'} inStep src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'} />
69
46
 
47
+ <Callout type={'warning'}>
48
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考文心千帆的相关费用政策。
49
+ </Callout>
70
50
  </Steps>
71
51
 
72
52
  至此你已经可以在 LobeChat 中使用文心千帆提供的模型进行对话了。
@@ -12,59 +12,42 @@ tags:
12
12
 
13
13
  # Using xAI in LobeChat
14
14
 
15
- <Image
16
- cover
17
- src={'https://github.com/user-attachments/assets/cf3bfd44-9c13-4026-95cd-67f54f40ce6c'}
18
- />
15
+ <Image cover src={'https://github.com/user-attachments/assets/cf3bfd44-9c13-4026-95cd-67f54f40ce6c'} />
19
16
 
20
17
  [xAI](https://x.ai/) is an artificial intelligence company founded by Elon Musk in 2023, aimed at exploring and understanding the true nature of the universe. The company's mission is to solve complex scientific and mathematical problems using AI technology and to advance the field of artificial intelligence.
21
18
 
22
19
  This article will guide you on how to use xAI in LobeChat.
23
20
 
24
21
  <Steps>
22
+ ### Step 1: Obtain an API Key from xAI
25
23
 
26
- ### Step 1: Obtain an API Key from xAI
24
+ - Register and login to the [xAI console](https://console.x.ai/)
25
+ - Create an API token
26
+ - Copy and save the API token
27
27
 
28
- - Register and login to the [xAI console](https://console.x.ai/)
29
- - Create an API token
30
- - Copy and save the API token
28
+ <Image alt={'xAI API'} inStep src={'https://github.com/user-attachments/assets/09c994cf-78f8-46ea-9fef-a06022c0f6d7'} />
31
29
 
32
- <Image
33
- alt={'xAI API'}
34
- inStep
35
- src={'https://github.com/user-attachments/assets/09c994cf-78f8-46ea-9fef-a06022c0f6d7'}
36
- />
30
+ <Callout type={'warning'}>
31
+ Make sure to securely save the API token displayed in the popup; it only appears once. If you
32
+ accidentally lose it, you will need to create a new API token.
33
+ </Callout>
37
34
 
38
- <Callout type={'warning'}>
39
- Make sure to securely save the API token displayed in the popup; it only appears once. If you
40
- accidentally lose it, you will need to create a new API token.
41
- </Callout>
35
+ ### Step 2: Configure xAI in LobeChat
42
36
 
43
- ### Step 2: Configure xAI in LobeChat
37
+ - Go to the `Settings` menu in LobeChat
38
+ - Locate the `xAI` settings under `Language Model`
44
39
 
45
- - Go to the `Settings` menu in LobeChat
46
- - Locate the `xAI` settings under `Language Model`
40
+ <Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/12863a0e-a1ee-406d-8dee-011b20701fd6'} />
47
41
 
48
- <Image
49
- alt={'Enter API Key'}
50
- inStep
51
- src={'https://github.com/user-attachments/assets/12863a0e-a1ee-406d-8dee-011b20701fd6'}
52
- />
42
+ - Enter the API key you obtained
43
+ - Select an xAI model for your AI assistant to start a conversation
53
44
 
54
- - Enter the API key you obtained
55
- - Select an xAI model for your AI assistant to start a conversation
56
-
57
- <Image
58
- alt={'Select xAI Model and Start Conversation'}
59
- inStep
60
- src={'https://github.com/user-attachments/assets/899a4393-db41-45a6-97ec-9813e1f9879d'}
61
- />
62
-
63
- <Callout type={'warning'}>
64
- During use, you may need to pay the API service provider, so please refer to xAI's relevant
65
- pricing policies.
66
- </Callout>
45
+ <Image alt={'Select xAI Model and Start Conversation'} inStep src={'https://github.com/user-attachments/assets/899a4393-db41-45a6-97ec-9813e1f9879d'} />
67
46
 
47
+ <Callout type={'warning'}>
48
+ During use, you may need to pay the API service provider, so please refer to xAI's relevant
49
+ pricing policies.
50
+ </Callout>
68
51
  </Steps>
69
52
 
70
53
  You are now ready to engage in conversations using the models provided by xAI in LobeChat.