@lobehub/chat 0.146.1 → 0.147.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 (358) hide show
  1. package/.env.example +3 -5
  2. package/.github/workflows/issue-close-require.yml +1 -1
  3. package/.github/workflows/release.yml +1 -1
  4. package/.github/workflows/test.yml +3 -1
  5. package/.i18nrc.js +13 -8
  6. package/.seorc.cjs +9 -0
  7. package/CHANGELOG.md +98 -0
  8. package/README.md +25 -25
  9. package/README.zh-CN.md +25 -25
  10. package/contributing/Home.md +1 -1
  11. package/docs/self-hosting/advanced/analytics.mdx +12 -0
  12. package/docs/self-hosting/advanced/analytics.zh-CN.mdx +10 -0
  13. package/docs/self-hosting/advanced/authentication.mdx +19 -0
  14. package/docs/self-hosting/advanced/authentication.zh-CN.mdx +15 -0
  15. package/docs/self-hosting/advanced/sso-providers/auth0.mdx +19 -2
  16. package/docs/self-hosting/advanced/sso-providers/auth0.zh-CN.mdx +15 -2
  17. package/docs/self-hosting/advanced/sso-providers/authentik.mdx +18 -3
  18. package/docs/self-hosting/advanced/sso-providers/authentik.zh-CN.mdx +14 -2
  19. package/docs/self-hosting/advanced/sso-providers/github.mdx +13 -0
  20. package/docs/self-hosting/advanced/sso-providers/github.zh-CN.mdx +13 -3
  21. package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.mdx +18 -2
  22. package/docs/self-hosting/advanced/sso-providers/microsoft-entra-id.zh-CN.mdx +15 -2
  23. package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +17 -2
  24. package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +14 -2
  25. package/docs/self-hosting/advanced/upstream-sync.mdx +13 -0
  26. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +10 -0
  27. package/docs/self-hosting/environment-variables/analytics.mdx +15 -0
  28. package/docs/self-hosting/environment-variables/analytics.zh-CN.mdx +13 -0
  29. package/docs/self-hosting/environment-variables/auth.mdx +14 -0
  30. package/docs/self-hosting/environment-variables/auth.zh-CN.mdx +15 -1
  31. package/docs/self-hosting/environment-variables/basic.mdx +15 -0
  32. package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +11 -0
  33. package/docs/self-hosting/environment-variables/model-provider.mdx +26 -0
  34. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +10 -0
  35. package/docs/self-hosting/environment-variables.mdx +13 -2
  36. package/docs/self-hosting/environment-variables.zh-CN.mdx +9 -0
  37. package/docs/self-hosting/examples/azure-openai.mdx +12 -0
  38. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +12 -0
  39. package/docs/self-hosting/examples/ollama.mdx +13 -0
  40. package/docs/self-hosting/examples/ollama.zh-CN.mdx +11 -0
  41. package/docs/self-hosting/faq/no-v1-suffix.mdx +12 -0
  42. package/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx +9 -0
  43. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +14 -0
  44. package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.zh-CN.mdx +11 -0
  45. package/docs/self-hosting/platform/docker-compose.mdx +21 -5
  46. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +18 -5
  47. package/docs/self-hosting/platform/docker.mdx +26 -8
  48. package/docs/self-hosting/platform/docker.zh-CN.mdx +27 -9
  49. package/docs/self-hosting/platform/netlify.mdx +18 -2
  50. package/docs/self-hosting/platform/netlify.zh-CN.mdx +14 -1
  51. package/docs/self-hosting/platform/railway.mdx +12 -0
  52. package/docs/self-hosting/platform/railway.zh-CN.mdx +11 -0
  53. package/docs/self-hosting/platform/repocloud.mdx +12 -0
  54. package/docs/self-hosting/platform/repocloud.zh-CN.mdx +10 -0
  55. package/docs/self-hosting/platform/sealos.mdx +11 -0
  56. package/docs/self-hosting/platform/sealos.zh-CN.mdx +10 -0
  57. package/docs/self-hosting/platform/vercel.mdx +12 -0
  58. package/docs/self-hosting/platform/vercel.zh-CN.mdx +11 -0
  59. package/docs/self-hosting/platform/zeabur.mdx +11 -0
  60. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +10 -0
  61. package/docs/self-hosting/start.mdx +12 -0
  62. package/docs/self-hosting/start.zh-CN.mdx +13 -0
  63. package/docs/usage/agents/concepts.mdx +13 -0
  64. package/docs/usage/agents/concepts.zh-CN.mdx +10 -0
  65. package/docs/usage/agents/custom-agent.mdx +16 -2
  66. package/docs/usage/agents/custom-agent.zh-CN.mdx +14 -2
  67. package/docs/usage/agents/model.mdx +11 -2
  68. package/docs/usage/agents/model.zh-CN.mdx +12 -0
  69. package/docs/usage/agents/prompt.mdx +15 -0
  70. package/docs/usage/agents/prompt.zh-CN.mdx +10 -0
  71. package/docs/usage/agents/topics.mdx +13 -0
  72. package/docs/usage/agents/topics.zh-CN.mdx +11 -0
  73. package/docs/usage/features/agent-market.mdx +11 -1
  74. package/docs/usage/features/agent-market.zh-CN.mdx +13 -0
  75. package/docs/usage/features/local-llm.mdx +12 -2
  76. package/docs/usage/features/local-llm.zh-CN.mdx +3 -3
  77. package/docs/usage/features/mobile.mdx +10 -1
  78. package/docs/usage/features/mobile.zh-CN.mdx +11 -0
  79. package/docs/usage/features/more.mdx +13 -0
  80. package/docs/usage/features/more.zh-CN.mdx +10 -0
  81. package/docs/usage/features/multi-ai-providers.mdx +14 -1
  82. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +16 -0
  83. package/docs/usage/features/plugin-system.mdx +12 -1
  84. package/docs/usage/features/plugin-system.zh-CN.mdx +9 -0
  85. package/docs/usage/features/pwa.mdx +11 -1
  86. package/docs/usage/features/pwa.zh-CN.mdx +13 -0
  87. package/docs/usage/features/text-to-image.mdx +11 -1
  88. package/docs/usage/features/text-to-image.zh-CN.mdx +13 -0
  89. package/docs/usage/features/theme.mdx +12 -1
  90. package/docs/usage/features/theme.zh-CN.mdx +11 -0
  91. package/docs/usage/features/tts.mdx +14 -1
  92. package/docs/usage/features/tts.zh-CN.mdx +12 -0
  93. package/docs/usage/features/vision.mdx +11 -1
  94. package/docs/usage/features/vision.zh-CN.mdx +10 -0
  95. package/docs/usage/plugins/basic-usage.mdx +12 -0
  96. package/docs/usage/plugins/basic-usage.zh-CN.mdx +10 -0
  97. package/docs/usage/plugins/custom-plugin.mdx +12 -0
  98. package/docs/usage/plugins/custom-plugin.zh-CN.mdx +10 -0
  99. package/docs/usage/plugins/development.mdx +18 -0
  100. package/docs/usage/plugins/development.zh-CN.mdx +12 -0
  101. package/docs/usage/plugins/store.mdx +12 -0
  102. package/docs/usage/plugins/store.zh-CN.mdx +9 -0
  103. package/docs/usage/providers/groq.mdx +14 -2
  104. package/docs/usage/providers/groq.zh-CN.mdx +12 -2
  105. package/docs/usage/providers/ollama/gemma.mdx +13 -3
  106. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +12 -3
  107. package/docs/usage/providers/ollama/qwen.mdx +12 -4
  108. package/docs/usage/providers/ollama/qwen.zh-CN.mdx +10 -3
  109. package/docs/usage/providers/ollama.mdx +19 -9
  110. package/docs/usage/providers/ollama.zh-CN.mdx +20 -9
  111. package/docs/usage/start.mdx +13 -2
  112. package/docs/usage/start.zh-CN.mdx +11 -2
  113. package/locales/ar/common.json +0 -26
  114. package/locales/ar/components.json +15 -0
  115. package/locales/ar/error.json +1 -52
  116. package/locales/ar/modelProvider.json +226 -0
  117. package/locales/ar/setting.json +48 -199
  118. package/locales/bg-BG/common.json +0 -26
  119. package/locales/bg-BG/components.json +15 -0
  120. package/locales/bg-BG/error.json +1 -52
  121. package/locales/bg-BG/modelProvider.json +226 -0
  122. package/locales/bg-BG/setting.json +48 -199
  123. package/locales/de-DE/common.json +0 -26
  124. package/locales/de-DE/components.json +15 -0
  125. package/locales/de-DE/error.json +1 -52
  126. package/locales/de-DE/modelProvider.json +226 -0
  127. package/locales/de-DE/setting.json +48 -199
  128. package/locales/en-US/common.json +0 -26
  129. package/locales/en-US/components.json +15 -0
  130. package/locales/en-US/error.json +1 -52
  131. package/locales/en-US/modelProvider.json +226 -0
  132. package/locales/en-US/setting.json +48 -199
  133. package/locales/es-ES/common.json +0 -26
  134. package/locales/es-ES/components.json +15 -0
  135. package/locales/es-ES/error.json +1 -52
  136. package/locales/es-ES/modelProvider.json +226 -0
  137. package/locales/es-ES/setting.json +48 -199
  138. package/locales/fr-FR/common.json +0 -26
  139. package/locales/fr-FR/components.json +15 -0
  140. package/locales/fr-FR/error.json +1 -52
  141. package/locales/fr-FR/modelProvider.json +226 -0
  142. package/locales/fr-FR/setting.json +48 -199
  143. package/locales/it-IT/common.json +0 -26
  144. package/locales/it-IT/components.json +15 -0
  145. package/locales/it-IT/error.json +1 -52
  146. package/locales/it-IT/modelProvider.json +226 -0
  147. package/locales/it-IT/setting.json +59 -210
  148. package/locales/ja-JP/common.json +0 -26
  149. package/locales/ja-JP/components.json +15 -0
  150. package/locales/ja-JP/error.json +1 -52
  151. package/locales/ja-JP/modelProvider.json +226 -0
  152. package/locales/ja-JP/setting.json +59 -210
  153. package/locales/ko-KR/common.json +0 -26
  154. package/locales/ko-KR/components.json +15 -0
  155. package/locales/ko-KR/error.json +1 -52
  156. package/locales/ko-KR/modelProvider.json +226 -0
  157. package/locales/ko-KR/setting.json +48 -199
  158. package/locales/nl-NL/common.json +0 -26
  159. package/locales/nl-NL/components.json +15 -0
  160. package/locales/nl-NL/error.json +4 -55
  161. package/locales/nl-NL/modelProvider.json +226 -0
  162. package/locales/nl-NL/setting.json +49 -200
  163. package/locales/pl-PL/common.json +0 -26
  164. package/locales/pl-PL/components.json +15 -0
  165. package/locales/pl-PL/error.json +1 -52
  166. package/locales/pl-PL/modelProvider.json +226 -0
  167. package/locales/pl-PL/setting.json +48 -199
  168. package/locales/pt-BR/common.json +0 -26
  169. package/locales/pt-BR/components.json +15 -0
  170. package/locales/pt-BR/error.json +1 -52
  171. package/locales/pt-BR/modelProvider.json +226 -0
  172. package/locales/pt-BR/setting.json +48 -199
  173. package/locales/ru-RU/common.json +0 -26
  174. package/locales/ru-RU/components.json +15 -0
  175. package/locales/ru-RU/error.json +1 -52
  176. package/locales/ru-RU/modelProvider.json +226 -0
  177. package/locales/ru-RU/setting.json +48 -199
  178. package/locales/tr-TR/common.json +0 -26
  179. package/locales/tr-TR/components.json +15 -0
  180. package/locales/tr-TR/error.json +1 -52
  181. package/locales/tr-TR/modelProvider.json +226 -0
  182. package/locales/tr-TR/setting.json +48 -199
  183. package/locales/vi-VN/common.json +0 -26
  184. package/locales/vi-VN/components.json +15 -0
  185. package/locales/vi-VN/error.json +1 -52
  186. package/locales/vi-VN/modelProvider.json +226 -0
  187. package/locales/vi-VN/setting.json +48 -199
  188. package/locales/zh-CN/common.json +0 -26
  189. package/locales/zh-CN/components.json +15 -0
  190. package/locales/zh-CN/error.json +2 -53
  191. package/locales/zh-CN/modelProvider.json +226 -0
  192. package/locales/zh-CN/setting.json +48 -199
  193. package/locales/zh-TW/common.json +0 -26
  194. package/locales/zh-TW/components.json +15 -0
  195. package/locales/zh-TW/error.json +1 -52
  196. package/locales/zh-TW/modelProvider.json +226 -0
  197. package/locales/zh-TW/setting.json +48 -199
  198. package/package.json +121 -117
  199. package/scripts/mdxWorkflow/index.ts +48 -0
  200. package/src/app/api/chat/[provider]/route.test.ts +4 -9
  201. package/src/app/api/chat/[provider]/route.ts +6 -23
  202. package/src/app/api/chat/{[provider]/agentRuntime.test.ts → agentRuntime.test.ts} +12 -12
  203. package/src/app/api/chat/{[provider]/agentRuntime.ts → agentRuntime.ts} +11 -30
  204. package/src/app/api/chat/auth/index.ts +42 -0
  205. package/src/app/api/chat/models/[provider]/route.ts +45 -0
  206. package/src/app/api/config/__snapshots__/route.test.ts.snap +127 -0
  207. package/src/app/api/config/route.test.ts +170 -0
  208. package/src/app/api/config/route.ts +46 -11
  209. package/src/app/api/plugin/gateway/route.ts +1 -1
  210. package/src/app/settings/llm/Azure/index.tsx +36 -43
  211. package/src/app/settings/llm/Bedrock/index.tsx +12 -20
  212. package/src/app/settings/llm/Ollama/index.tsx +2 -2
  213. package/src/app/settings/llm/OpenAI/index.tsx +9 -121
  214. package/src/app/settings/llm/OpenRouter/index.tsx +1 -1
  215. package/src/app/settings/llm/TogetherAI/index.tsx +0 -1
  216. package/src/app/settings/llm/components/ProviderConfig/index.tsx +48 -32
  217. package/src/app/settings/llm/components/ProviderModelList/CustomModelOption.tsx +94 -0
  218. package/src/app/settings/llm/components/ProviderModelList/MaxTokenSlider.tsx +88 -0
  219. package/src/app/settings/llm/components/ProviderModelList/ModelConfigModal.tsx +128 -0
  220. package/src/app/settings/llm/components/ProviderModelList/ModelFetcher.tsx +81 -0
  221. package/src/app/settings/llm/components/ProviderModelList/Option.tsx +38 -0
  222. package/src/app/settings/llm/components/ProviderModelList/index.tsx +142 -0
  223. package/src/app/settings/llm/const.ts +1 -1
  224. package/src/app/settings/llm/index.tsx +7 -6
  225. package/src/app/settings/tts/TTS/index.tsx +1 -1
  226. package/src/components/AntdStaticMethods/index.test.tsx +43 -0
  227. package/src/components/ModelIcon/index.tsx +25 -7
  228. package/src/components/ModelSelect/index.tsx +67 -56
  229. package/src/config/modelProviders/anthropic.ts +6 -1
  230. package/src/config/modelProviders/azure.ts +42 -0
  231. package/src/config/modelProviders/bedrock.ts +4 -1
  232. package/src/config/modelProviders/google.ts +2 -14
  233. package/src/config/modelProviders/groq.ts +3 -0
  234. package/src/config/modelProviders/index.ts +19 -14
  235. package/src/config/modelProviders/mistral.ts +5 -0
  236. package/src/config/modelProviders/moonshot.ts +3 -1
  237. package/src/config/modelProviders/ollama.ts +6 -17
  238. package/src/config/modelProviders/openai.ts +9 -13
  239. package/src/config/modelProviders/openrouter.ts +6 -1
  240. package/src/config/modelProviders/perplexity.ts +2 -0
  241. package/src/config/modelProviders/togetherai.ts +11 -0
  242. package/src/config/modelProviders/zeroone.ts +3 -0
  243. package/src/config/modelProviders/zhipu.ts +3 -0
  244. package/src/config/server/provider.ts +52 -7
  245. package/src/const/auth.ts +0 -1
  246. package/src/const/{settings.ts → settings/index.ts} +31 -4
  247. package/src/const/url.ts +1 -1
  248. package/src/database/core/db.ts +14 -0
  249. package/src/database/schemas/user.ts +1 -25
  250. package/src/features/AgentSetting/AgentConfig/ModelSelect.tsx +7 -11
  251. package/src/features/ChatInput/STT/common.tsx +80 -78
  252. package/src/features/ChatInput/STT/index.tsx +8 -6
  253. package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +8 -8
  254. package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +73 -0
  255. package/src/features/Conversation/Error/APIKeyForm/ProviderAvatar.tsx +74 -0
  256. package/src/features/Conversation/Error/APIKeyForm/index.tsx +25 -49
  257. package/src/features/ModelSwitchPanel/index.tsx +40 -13
  258. package/src/hooks/_header.ts +5 -20
  259. package/src/libs/agent-runtime/BaseAI.ts +17 -1
  260. package/src/libs/agent-runtime/anthropic/index.ts +3 -7
  261. package/src/libs/agent-runtime/azureOpenai/index.test.ts +166 -0
  262. package/src/libs/agent-runtime/azureOpenai/index.ts +16 -8
  263. package/src/libs/agent-runtime/bedrock/index.test.ts +199 -22
  264. package/src/libs/agent-runtime/bedrock/index.ts +11 -18
  265. package/src/libs/agent-runtime/groq/index.test.ts +350 -0
  266. package/src/libs/agent-runtime/groq/index.ts +14 -77
  267. package/src/libs/agent-runtime/mistral/index.test.ts +25 -19
  268. package/src/libs/agent-runtime/mistral/index.ts +24 -86
  269. package/src/libs/agent-runtime/moonshot/index.test.ts +2 -2
  270. package/src/libs/agent-runtime/moonshot/index.ts +14 -77
  271. package/src/libs/agent-runtime/openai/__snapshots__/index.test.ts.snap +99 -0
  272. package/src/libs/agent-runtime/openai/fixtures/openai-models.json +170 -0
  273. package/src/libs/agent-runtime/openai/index.test.ts +15 -50
  274. package/src/libs/agent-runtime/openai/index.ts +15 -107
  275. package/src/libs/agent-runtime/openrouter/__snapshots__/index.test.ts.snap +82 -0
  276. package/src/libs/agent-runtime/openrouter/fixtures/models.json +62 -0
  277. package/src/libs/agent-runtime/openrouter/index.test.ts +25 -9
  278. package/src/libs/agent-runtime/openrouter/index.ts +42 -84
  279. package/src/libs/agent-runtime/openrouter/type.ts +28 -0
  280. package/src/libs/agent-runtime/togetherai/index.test.ts +12 -9
  281. package/src/libs/agent-runtime/togetherai/index.ts +20 -85
  282. package/src/libs/agent-runtime/utils/anthropicHelpers.test.ts +14 -22
  283. package/src/libs/agent-runtime/utils/anthropicHelpers.ts +4 -10
  284. package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +147 -0
  285. package/src/libs/agent-runtime/zeroone/index.test.ts +350 -0
  286. package/src/libs/agent-runtime/zeroone/index.ts +14 -77
  287. package/src/locales/default/common.ts +0 -28
  288. package/src/locales/default/components.ts +15 -0
  289. package/src/locales/default/error.ts +2 -54
  290. package/src/locales/default/index.ts +4 -0
  291. package/src/locales/default/modelProvider.ts +229 -0
  292. package/src/locales/default/setting.ts +51 -202
  293. package/src/migrations/FromV3ToV4/fixtures/azure-input-v3.json +79 -0
  294. package/src/migrations/FromV3ToV4/fixtures/azure-output-v4.json +75 -0
  295. package/src/migrations/FromV3ToV4/fixtures/ollama-input-v3.json +85 -0
  296. package/src/migrations/FromV3ToV4/fixtures/ollama-output-v4.json +86 -0
  297. package/src/migrations/FromV3ToV4/fixtures/openai-input-v3.json +77 -0
  298. package/src/migrations/FromV3ToV4/fixtures/openai-output-v4.json +79 -0
  299. package/src/migrations/FromV3ToV4/fixtures/openrouter-input-v3.json +82 -0
  300. package/src/migrations/FromV3ToV4/fixtures/openrouter-output-v4.json +89 -0
  301. package/src/migrations/FromV3ToV4/fixtures/output-v4-from-v1.json +203 -0
  302. package/src/migrations/FromV3ToV4/index.ts +96 -0
  303. package/src/migrations/FromV3ToV4/migrations.test.ts +195 -0
  304. package/src/migrations/FromV3ToV4/types/v3.ts +59 -0
  305. package/src/migrations/FromV3ToV4/types/v4.ts +37 -0
  306. package/src/migrations/index.ts +11 -3
  307. package/src/services/_auth.test.ts +4 -6
  308. package/src/services/_auth.ts +8 -60
  309. package/src/services/_header.ts +5 -22
  310. package/src/services/_url.ts +1 -0
  311. package/src/services/chat.ts +16 -6
  312. package/src/services/global.ts +1 -1
  313. package/src/services/models.ts +23 -0
  314. package/src/services/ollama.ts +2 -2
  315. package/src/store/chat/slices/share/action.test.ts +113 -0
  316. package/src/store/chat/slices/share/action.ts +1 -1
  317. package/src/store/global/slices/common/action.test.ts +166 -1
  318. package/src/store/global/slices/common/action.ts +2 -1
  319. package/src/store/global/slices/settings/{action.test.ts → actions/general.test.ts} +1 -19
  320. package/src/store/global/slices/settings/{action.ts → actions/general.ts} +4 -19
  321. package/src/store/global/slices/settings/actions/index.ts +18 -0
  322. package/src/store/global/slices/settings/actions/llm.test.ts +60 -0
  323. package/src/store/global/slices/settings/actions/llm.ts +88 -0
  324. package/src/store/global/slices/settings/initialState.ts +3 -1
  325. package/src/store/global/slices/settings/reducers/customModelCard.test.ts +204 -0
  326. package/src/store/global/slices/settings/reducers/customModelCard.ts +64 -0
  327. package/src/store/global/slices/settings/selectors/index.ts +1 -0
  328. package/src/store/global/slices/settings/selectors/modelConfig.test.ts +189 -0
  329. package/src/store/global/slices/settings/selectors/modelConfig.ts +179 -0
  330. package/src/store/global/slices/settings/selectors/modelProvider.test.ts +47 -138
  331. package/src/store/global/slices/settings/selectors/modelProvider.ts +102 -243
  332. package/src/store/global/store.ts +1 -1
  333. package/src/types/llm.ts +12 -1
  334. package/src/types/serverConfig.ts +22 -0
  335. package/src/types/settings/index.ts +0 -12
  336. package/src/types/settings/modelProvider.ts +34 -90
  337. package/src/utils/client/switchLang.test.ts +34 -0
  338. package/src/utils/difference.test.ts +46 -0
  339. package/src/utils/difference.ts +15 -2
  340. package/src/utils/fetch.ts +1 -3
  341. package/src/utils/parseModels.ts +62 -0
  342. package/vercel.json +1 -1
  343. package/docs/package.json +0 -5
  344. package/src/features/Conversation/Error/APIKeyForm/Anthropic.tsx +0 -40
  345. package/src/features/Conversation/Error/APIKeyForm/Google.tsx +0 -61
  346. package/src/features/Conversation/Error/APIKeyForm/Groq.tsx +0 -60
  347. package/src/features/Conversation/Error/APIKeyForm/Mistral.tsx +0 -60
  348. package/src/features/Conversation/Error/APIKeyForm/Moonshot.tsx +0 -60
  349. package/src/features/Conversation/Error/APIKeyForm/OpenAI.tsx +0 -63
  350. package/src/features/Conversation/Error/APIKeyForm/OpenRouter.tsx +0 -40
  351. package/src/features/Conversation/Error/APIKeyForm/Perplexity.tsx +0 -60
  352. package/src/features/Conversation/Error/APIKeyForm/TogetherAI.tsx +0 -40
  353. package/src/features/Conversation/Error/APIKeyForm/ZeroOne.tsx +0 -60
  354. package/src/features/Conversation/Error/APIKeyForm/Zhipu.tsx +0 -62
  355. package/src/libs/agent-runtime/utils/env.ts +0 -1
  356. package/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap +0 -230
  357. /package/src/app/api/chat/{auth.ts → auth/utils.ts} +0 -0
  358. /package/src/components/{AntdStaticMethods.tsx → AntdStaticMethods/index.tsx} +0 -0
@@ -1,3 +1,14 @@
1
+ ---
2
+ title: LobeChat 移动设备适配 - 提升用户移动体验
3
+ description: LobeChat针对移动设备进行优化设计,版本迭代以实现更流畅直观的交互。欢迎通过GitHub Issues或Pull Requests提供反馈。
4
+ tags:
5
+ - LobeChat
6
+ - 移动设备适配
7
+ - 用户体验
8
+ - 版本迭代
9
+ - GitHub
10
+ - 反馈
11
+ ---
1
12
  # 移动设备适配
2
13
 
3
14
  <Image alt={'移动端设备适配'} cover src={'https://github.com/lobehub/lobe-chat/assets/28616219/11110732-8d5a-4049-b556-c2561cb66182'} />
@@ -1,3 +1,16 @@
1
+ ---
2
+ title: More Features in LobeChat - Enhancing Design and Technical Capabilities
3
+ description: >-
4
+ Explore the additional features offered, including exquisite UI design, smooth
5
+ conversation experience, fast deployment options, privacy and security
6
+ measures, and custom domain support.
7
+ tags:
8
+ - UI Design
9
+ - Conversation Experience
10
+ - Deployment
11
+ - Privacy
12
+ - Custom Domain
13
+ ---
1
14
  # More Features
2
15
 
3
16
  In addition to the above features, our design and technical capabilities will provide you with more assurance in usage:
@@ -1,3 +1,13 @@
1
+ ---
2
+ title: 更多 LobeChat 特性 - 提供精致 UI 设计和流畅的对话体验
3
+ description: 了解更多产品特性,包括精致 UI 设计、流畅的对话体验和快速部署功能,为用户带来更好的体验。
4
+ tags:
5
+ - 精致 UI 设计
6
+ - 流畅对话体验
7
+ - 快速部署
8
+ - 隐私安全
9
+ - 自定义域名
10
+ ---
1
11
  # 更多特性
2
12
 
3
13
  除了上述功能特性以外,我们的所具有的设计和技术能力将为你带来了更多使用保障:
@@ -1,5 +1,18 @@
1
1
  ---
2
- title: Multi AI Providers
2
+ title: LobeChat with Multi AI Providers
3
+ description: >-
4
+ Discover how LobeChat offers diverse model service provider support, including
5
+ AWS Bedrock, Google AI Gemini series, ChatGLM, and Moonshot AI, to cater to
6
+ various user needs. Explore local model support with Ollama integration.
7
+ tags:
8
+ - LobeChat
9
+ - model service providers
10
+ - AWS Bedrock
11
+ - Google AI Gemini
12
+ - ChatGLM
13
+ - Moonshot AI
14
+ - local model support
15
+ - Ollama
3
16
  ---
4
17
 
5
18
  # Multi-Model Service Provider Support
@@ -1,3 +1,19 @@
1
+ ---
2
+ title: LobeChat 支持多模型服务商
3
+ description: 了解 LobeChat 在多模型服务商支持方面的最新进展,包括已支持的模型服务商和计划中的扩展,以及本地模型支持的使用方式。
4
+ tags:
5
+ - LobeChat
6
+ - AI 会话服务
7
+ - 模型服务商
8
+ - 多模型支持
9
+ - 本地模型支持
10
+ - AWS Bedrock
11
+ - Google AI
12
+ - ChatGLM
13
+ - Moonshot AI
14
+ - 01 AI
15
+ - Ollama
16
+ ---
1
17
  # 多模型服务商支持
2
18
 
3
19
  <Image alt={'多模型服务商支持'} borderless cover src={'https://github.com/lobehub/lobe-chat/assets/28616219/b164bc54-8ba2-4c1e-b2f2-f4d7f7e7a551'} />
@@ -1,5 +1,16 @@
1
1
  ---
2
- title: Plugin System
2
+ title: Plugin System in LobeChat
3
+ description: >-
4
+ Explore the diverse plugin ecosystem of LobeChat, extending its capabilities
5
+ to provide real-time information, interact with various platforms, and
6
+ simplify user interactions.
7
+ tags:
8
+ - LobeChat
9
+ - Plugin Ecosystem
10
+ - Assistant Functionality
11
+ - Plugin Development
12
+ - SDK
13
+ - Chat Application
3
14
  ---
4
15
 
5
16
  # Plugin System
@@ -1,3 +1,12 @@
1
+ ---
2
+ title: LobeChat 插件生态系统 - 功能扩展与开发资源
3
+ description: 了解 LobeChat 插件生态系统如何增强 LobeChat 助手的实用性和灵活性,以及提供的开发资源和插件开发指南。
4
+ tags:
5
+ - LobeChat
6
+ - 插件生态系统
7
+ - 开发资源
8
+ - 插件开发指南
9
+ ---
1
10
  # 插件系统
2
11
 
3
12
  <Image
@@ -1,5 +1,15 @@
1
1
  ---
2
- title: Progressive Web Apps (PWA)
2
+ title: LobeChat support Progressive Web Apps (PWA)
3
+ description: >-
4
+ Discover how LobeChat utilizes Progressive Web App (PWA) technology to provide
5
+ a seamless and near-native app experience on both desktop and mobile devices.
6
+ Learn how to install LobeChat as a desktop app for enhanced convenience.
7
+ tags:
8
+ - Progressive Web App
9
+ - PWA
10
+ - LobeChat
11
+ - Web Applications
12
+ - User Experience
3
13
  ---
4
14
 
5
15
  # Progressive Web App (PWA)
@@ -1,3 +1,16 @@
1
+ ---
2
+ title: LobeChat 支持渐进式 Web 应用(PWA)- 提升用户体验
3
+ description: 了解渐进式 Web 应用(PWA)技术如何提升网页应用至接近原生应用体验,以及如何在桌面和移动设备上提供优化的用户体验。
4
+ tags:
5
+ - 渐进式 Web 应用
6
+ - PWA 技术
7
+ - 用户体验
8
+ - 桌面应用
9
+ - 移动设备
10
+ - 轻量级
11
+ - 高性能
12
+ - 响应式布局
13
+ ---
1
14
  # 渐进式 Web 应用(PWA)
2
15
 
3
16
  <Image alt={'渐进式 Web 应用(PWA)'} borderless cover src={'https://github.com/lobehub/lobe-chat/assets/28616219/ecc8364a-cfc4-4a3d-b6fd-68b2d9bc5f0d'} />
@@ -1,5 +1,15 @@
1
1
  ---
2
- title: Text to Image
2
+ title: Text to Image in LobeChat
3
+ description: >-
4
+ Transform your ideas into images with the latest text-to-image generation
5
+ technology integrated into LobeChat AI Assistant. Experience a private and
6
+ immersive creative process.
7
+ tags:
8
+ - Text to Image Generation
9
+ - LobeChat AI Assistant
10
+ - DALL-E 3
11
+ - MidJourney
12
+ - Pollinations
3
13
  ---
4
14
 
5
15
  # Text to Image Generation
@@ -1,3 +1,16 @@
1
+ ---
2
+ title: LobeChat 文生图:文本转图片生成技术
3
+ description: >-
4
+ LobeChat 现在支持最新的文本到图片生成技术,让用户可以在与助手对话中直接调用文生图工具进行创作。利用 DALL-E 3、MidJourney 和
5
+ Pollinations 等 AI 工具,助手们可以将你的想法转化为图像,让创作过程更私密和沉浸式。
6
+ tags:
7
+ - LobeChat
8
+ - 文生图
9
+ - DALL-E 3
10
+ - MidJourney
11
+ - Pollinations
12
+ - AI工具
13
+ ---
1
14
  # Text to Image 文生图
2
15
 
3
16
  <Image
@@ -1,5 +1,16 @@
1
1
  ---
2
- title: Custom Themes
2
+ title: LobeChat support Custom Themes
3
+ description: >-
4
+ Explore LobeChat's flexible theme modes and color customization options for a
5
+ personalized interface design. Switch between light and dark modes, customize
6
+ theme colors, and choose between conversation bubble and document modes.
7
+ tags:
8
+ - Custom Themes
9
+ - Personalized User Experiences
10
+ - Theme Modes
11
+ - Color Customization
12
+ - Interface Design
13
+ - LobeChat
3
14
  ---
4
15
 
5
16
  # Custom Themes
@@ -1,3 +1,14 @@
1
+ ---
2
+ title: LobeChat 自定义主题 - 个性化体验
3
+ description: 了解 LobeChat 的灵活多变主题模式,包括日间亮色模式和夜间深色模式,以及颜色定制选项,让用户根据喜好调整应用主题色彩。
4
+ tags:
5
+ - LobeChat
6
+ - 自定义主题
7
+ - 主题模式
8
+ - 颜色定制
9
+ - 界面设计
10
+ - 个性化体验
11
+ ---
1
12
  # 自定义主题
2
13
 
3
14
  <Image alt={'自定义主题'} borderless cover src={'https://github.com/lobehub/lobe-chat/assets/28616219/9eca103c-9335-4a4c-8192-271a0b857b26'} />
@@ -1,5 +1,18 @@
1
1
  ---
2
- title: Speech Synthesis and Recognition (TTS & STT)
2
+ title: LobeChat support Speech Synthesis and Recognition (TTS & STT)
3
+ description: >-
4
+ Experience seamless Text-to-Speech (TTS) and Speech-to-Text (STT) technologies
5
+ in LobeChat. Choose from a variety of high-quality voices for personalized
6
+ communication. Learn more about Lobe TTS toolkit @lobehub/tts.
7
+ tags:
8
+ - LobeChat
9
+ - TTS
10
+ - STT
11
+ - Voice Conversation
12
+ - Lobe TTS
13
+ - Text-to-Speech
14
+ - Speech-to-Text
15
+ - Voice Options
3
16
  ---
4
17
 
5
18
  # TTS & STT Voice Conversation
@@ -1,3 +1,15 @@
1
+ ---
2
+ title: LobeChat 支持 TTS & STT 语音会话
3
+ description: LobeChat 支持文字转语音(TTS)和语音转文字(STT)技术,提供高品质声音选项,个性化交流体验。了解更多关于 Lobe TTS 工具包。
4
+ tags:
5
+ - TTS
6
+ - STT
7
+ - 语音会话
8
+ - LobeChat
9
+ - Lobe TTS
10
+ - 文字转语音
11
+ - 语音转文字
12
+ ---
1
13
  # TTS & STT 语音会话
2
14
 
3
15
  <Image
@@ -1,5 +1,15 @@
1
1
  ---
2
- title: Vision Recognition
2
+ title: LobeChat support Vision Recognition
3
+ description: >-
4
+ Discover how LobeChat integrates visual recognition capabilities like OpenAI's
5
+ gpt-4-vision and Google Gemini Pro vision for intelligent conversations based
6
+ on uploaded images.
7
+ tags:
8
+ - LobeChat
9
+ - Model Vision Recognition
10
+ - Multimodal Interaction
11
+ - Visual Elements
12
+ - Intelligent Conversations
3
13
  ---
4
14
 
5
15
  # Model Vision Recognition
@@ -1,3 +1,13 @@
1
+ ---
2
+ title: LobeChat 支持多模态交互:视觉识别助力智能对话
3
+ description: LobeChat 支持多种具有视觉识别能力的大语言模型,用户可上传或拖拽图片,助手将识别内容并展开智能对话,打造更智能、多元化的聊天场景。
4
+ tags:
5
+ - LobeChat
6
+ - 多模态交互
7
+ - 视觉识别
8
+ - 智能对话
9
+ - 大语言模型
10
+ ---
1
11
  # 模型视觉识别
2
12
 
3
13
  <Image
@@ -1,3 +1,15 @@
1
+ ---
2
+ title: Enhance Your LobeChat Assistant with Plugins
3
+ description: >-
4
+ Learn how to expand your LobeChat assistant's capabilities by enabling and
5
+ using various plugins. Access the Plugin Store, install plugins, and configure
6
+ them to enhance your assistant's functionality.
7
+ tags:
8
+ - LobeChat plugins
9
+ - Plugin Store
10
+ - Using Plugins
11
+ - Plugin Configuration
12
+ ---
1
13
  # Plugin Usage
2
14
 
3
15
  The plugin system is a key element in expanding the capabilities of assistants in LobeChat. You can enhance the assistant's abilities by enabling a variety of plugins.
@@ -1,3 +1,13 @@
1
+ ---
2
+ title: LobeChat 插件使用指南
3
+ description: 了解如何在 LobeChat 中使用插件来增强助手功能,包括插件商店浏览、安装、配置等操作。
4
+ tags:
5
+ - LobeChat
6
+ - 插件
7
+ - 助手功能
8
+ - 插件商店
9
+ - 插件配置
10
+ ---
1
11
  # 插件使用
2
12
 
3
13
  插件体系是 LobeChat 中扩展助理的能力的关键要素,你可以通过为助手启用各式各样的插件来增强助手的各项能力。
@@ -1,3 +1,15 @@
1
+ ---
2
+ title: Custom LobeChat Plugins Installation and Development Guide
3
+ description: >-
4
+ Learn how to install custom plugins in LobeChat and develop your own plugins
5
+ to enhance your AI assistant's capabilities.
6
+ tags:
7
+ - Custom Plugins
8
+ - LobeChat
9
+ - Plugin Installation
10
+ - Plugin Development
11
+ - ChatGPT Plugins
12
+ ---
1
13
  # Custom Plugins
2
14
 
3
15
  ## Installing Custom Plugins
@@ -1,3 +1,13 @@
1
+ ---
2
+ title: 自定义插件 - LobeChat 插件安装与开发指南
3
+ description: 学习如何安装自定义插件和开发 LobeChat 插件,扩展你的 AI 智能助手的功能。
4
+ tags:
5
+ - 自定义插件
6
+ - LobeChat
7
+ - 插件安装
8
+ - 插件开发
9
+ - AI 智能助手
10
+ ---
1
11
  # 自定义插件
2
12
 
3
13
  ## 安装自定义插件
@@ -1,3 +1,21 @@
1
+ ---
2
+ title: LobeChat Plugin Development Guide
3
+ description: >-
4
+ Learn how to create and integrate custom plugins in LobeChat, including plugin
5
+ composition, custom plugin workflow, local plugin development, manifest
6
+ structure, project structure, server-side implementation, plugin UI interface,
7
+ deployment, and release.
8
+ tags:
9
+ - Plugin Development
10
+ - LobeChat
11
+ - Custom Plugins
12
+ - Plugin Workflow
13
+ - Manifest Structure
14
+ - Server-side Implementation
15
+ - Plugin UI Interface
16
+ - Deployment
17
+ - Release
18
+ ---
1
19
  # Plugin Development Guide
2
20
 
3
21
  ## Plugin Composition
@@ -1,3 +1,15 @@
1
+ ---
2
+ title: LobeChat 插件开发指南
3
+ description: 学习如何在 LobeChat 中添加和使用自定义插件,包括创建插件项目、在角色设置中添加本地插件、测试插件功能以及插件开发流程和部署。
4
+ tags:
5
+ - LobeChat
6
+ - 插件开发
7
+ - 自定义插件
8
+ - 插件部署
9
+ - 插件发布
10
+ - 插件UI
11
+ - 插件SDK
12
+ ---
1
13
  # 插件开发指南
2
14
 
3
15
  ## 插件构成
@@ -1,3 +1,15 @@
1
+ ---
2
+ title: LobeChat Plugin Store
3
+ description: >-
4
+ Learn how to access the Plugin Store in LobeChat to easily install and use
5
+ various plugins for enhanced functionality.
6
+ tags:
7
+ - Plugin Store
8
+ - LobeChat
9
+ - Install Plugins
10
+ - Extension Tools
11
+ - Enhanced Functionality
12
+ ---
1
13
  # Plugin Store
2
14
 
3
15
  You can access the plugin store by going to `Extension Tools` -> `Plugin Store` in the session toolbar.
@@ -1,3 +1,12 @@
1
+ ---
2
+ title: LobeChat 插件商店
3
+ description: 在 LobeChat 中浏览和安装各种实用插件,提升会话工具条的功能和体验。
4
+ tags:
5
+ - LobeChat
6
+ - 插件商店
7
+ - 扩展工具
8
+ - 会话工具条
9
+ ---
1
10
  # 插件商店
2
11
 
3
12
  你可以在会话工具条中的 `扩展工具` -> `插件商店`,进入插件商店。
@@ -1,6 +1,17 @@
1
1
  ---
2
2
  title: Using Groq in LobeChat
3
- image: https://github.com/lobehub/lobe-chat/assets/34400653/cf368841-f8e6-4cc5-b81d-09f82ef0afd9
3
+ description: >-
4
+ Integrate Groq's LPU Inference Engine with LobeChat to accelerate large
5
+ language models. Learn how to obtain GroqCloud API keys and configure Groq in
6
+ LobeChat for optimal performance.
7
+ tags:
8
+ - Groq
9
+ - LobeChat
10
+ - AI solutions
11
+ - LPU Inference Engine
12
+ - GroqCloud
13
+ - API keys
14
+ - Language Model
4
15
  ---
5
16
 
6
17
  import { Callout, Steps } from 'nextra/components';
@@ -30,7 +41,8 @@ This document will guide you on how to use Groq in LobeChat:
30
41
 
31
42
  <Callout type={'warning'}>
32
43
  Safely store the key from the pop-up as it will only appear once. If you accidentally lose it, you will need to create a new key.
33
- </Callout>
44
+
45
+ </Callout>
34
46
 
35
47
  ### Configure Groq in LobeChat
36
48
 
@@ -1,6 +1,15 @@
1
1
  ---
2
2
  title: 在 LobeChat 中使用 Groq
3
- image: https://github.com/lobehub/lobe-chat/assets/34400653/cf368841-f8e6-4cc5-b81d-09f82ef0afd9
3
+ description: >-
4
+ 通过 LobeChat 与 Groq Cloud 的集成,利用 Groq 的技术加速大语言模型的运行。了解如何获取 GroqCloud API Key,并在
5
+ LobeChat 中配置 Groq,体验 Groq 强大的性能。
6
+ tags:
7
+ - Groq
8
+ - LobeChat
9
+ - 大语言模型
10
+ - AI 解决方案
11
+ - API Key
12
+ - GroqCloud
4
13
  ---
5
14
 
6
15
  # 在 LobeChat 中使用 Groq
@@ -28,7 +37,8 @@ Groq 的 [LPU 推理引擎](https://wow.groq.com/news_press/groq-lpu-inference-e
28
37
 
29
38
  <Callout type={'warning'}>
30
39
  妥善保存弹窗中的 key,它只会出现一次,如果不小心丢失了,你需要重新创建一个 key。
31
- </Callout>
40
+
41
+ </Callout>
32
42
 
33
43
  ### 在 LobeChat 中配置 Groq
34
44
 
@@ -1,6 +1,15 @@
1
1
  ---
2
- title: Using Google Gemma Model
3
- image: https://github.com/lobehub/lobe-chat/assets/28616219/817f5655-4f9e-414b-af9f-9ccc5410a06d
2
+ title: Using Google Gemma Model in LobeChat
3
+ description: >-
4
+ Learn how to integrate and utilize Google Gemma in LobeChat, an open-source
5
+ large language model, in LobeChat with the help of Ollama. Follow these steps
6
+ to pull and select the Gemma model for natural language processing tasks.
7
+ tags:
8
+ - Google Gemma
9
+ - LobeChat
10
+ - Ollama
11
+ - Natural Language Processing
12
+ - Language Model
4
13
  ---
5
14
 
6
15
  # Using Google Gemma Model
@@ -36,7 +45,8 @@ This document will guide you on how to use Google Gemma in LobeChat:
36
45
  If you do not see the Ollama provider in the model selection panel, please refer to [Integrating
37
46
  with Ollama](/en/self-hosting/examples/ollama) to learn how to enable the Ollama provider in
38
47
  LobeChat.
39
- </Callout>
48
+
49
+ </Callout>
40
50
  </Steps>
41
51
 
42
52
  Now, you can start conversing with the local Gemma model using LobeChat.
@@ -1,6 +1,14 @@
1
1
  ---
2
- title: 使用 Google Gemma 模型
3
- image: https://github.com/lobehub/lobe-chat/assets/28616219/817f5655-4f9e-414b-af9f-9ccc5410a06d
2
+ title: LobeChat 中使用 Google Gemma 模型
3
+ description: >-
4
+ 通过 LobeChat 与 Ollama 的集成,轻松使用 Google Gemma 模型进行自然语言处理任务。安装 Ollama,拉取 Gemma
5
+ 模型,选择模型面板中的 Gemma 模型,开始对话。
6
+ tags:
7
+ - Google Gemma
8
+ - LobeChat
9
+ - Ollama
10
+ - 自然语言处理
11
+ - 模型选择
4
12
  ---
5
13
 
6
14
  # 使用 Google Gemma 模型
@@ -35,7 +43,8 @@ image: https://github.com/lobehub/lobe-chat/assets/28616219/817f5655-4f9e-414b-a
35
43
  <Callout type={'info'}>
36
44
  如果你没有在模型选择面板中看到 Ollama 服务商,请查阅 [与 Ollama
37
45
  集成](/zh/self-hosting/examples/ollama) 了解如何在 LobeChat 中开启 Ollama 服务商。
38
- </Callout>
46
+
47
+ </Callout>
39
48
  </Steps>
40
49
 
41
50
  接下来,你就可以使用 LobeChat 与本地 Gemma 模型对话了。
@@ -1,6 +1,12 @@
1
1
  ---
2
- title: Using the Local Qwen Model
3
- image: https://github.com/lobehub/lobe-chat/assets/28616219/689e19ea-3003-4e15-a1d5-b7343d5ba898
2
+ title: Using Local Qwen Model in LobeChat
3
+ description: 通过LobeChat和Ollama的集成,您可以轻松在LobeChat中使用Qwen。本文将指导您如何在LobeChat中使用本地部署版本的Qwen。
4
+ tags:
5
+ - Qwen
6
+ - LobeChat
7
+ - Ollama
8
+ - 本地部署
9
+ - AI大模型
4
10
  ---
5
11
 
6
12
  # Using the Local Qwen Model
@@ -29,7 +35,8 @@ Now, through the integration of LobeChat and [Ollama](https://ollama.com/), you
29
35
  The local version of Qwen provides different model sizes to choose from. Please refer to the
30
36
  [Qwen's Ollama integration page](https://ollama.com/library/qwen) to understand how to choose the
31
37
  model size.
32
- </Callout>
38
+
39
+ </Callout>
33
40
 
34
41
  <Image alt={'Use Ollama Pull Qwen Model'} height={473} inStep src={'https://github.com/lobehub/lobe-chat/assets/1845053/fe34fdfe-c2e4-4d6a-84d7-4ebc61b2516a'} />
35
42
 
@@ -41,7 +48,8 @@ Now, through the integration of LobeChat and [Ollama](https://ollama.com/), you
41
48
 
42
49
  <Callout type={'info'}>
43
50
  If you do not see the Ollama provider in the model selection panel, please refer to [Integration with Ollama](/en/self-hosting/examples/ollama) to learn how to enable the Ollama provider in LobeChat.
44
- </Callout>
51
+
52
+ </Callout>
45
53
  </Steps>
46
54
 
47
55
  Next, you can have a conversation with the local Qwen model in LobeChat.
@@ -1,6 +1,12 @@
1
1
  ---
2
- title: 使用本地通义千问 Qwen 模型
3
- image: https://github.com/lobehub/lobe-chat/assets/28616219/689e19ea-3003-4e15-a1d5-b7343d5ba898
2
+ title: LobeChat 中使用本地通义千问 Qwen 模型
3
+ description: 通过 LobeChat 与 Ollama 的集成,轻松在本地部署的通义千问 Qwen 模型中进行对话。学习如何安装和选择 Qwen 模型。
4
+ tags:
5
+ - 通义千问
6
+ - Qwen模型
7
+ - LobeChat集成
8
+ - Ollama
9
+ - 本地部署
4
10
  ---
5
11
 
6
12
  # 使用本地通义千问 Qwen 模型
@@ -39,7 +45,8 @@ image: https://github.com/lobehub/lobe-chat/assets/28616219/689e19ea-3003-4e15-a
39
45
  <Callout type={'info'}>
40
46
  如果你没有在模型选择面板中看到 Ollama 服务商,请查阅 [与 Ollama
41
47
  集成](/zh/self-hosting/examples/ollama) 了解如何在 LobeChat 中开启 Ollama 服务商。
42
- </Callout>
48
+
49
+ </Callout>
43
50
  </Steps>
44
51
 
45
52
  接下来,你就可以使用 LobeChat 与本地 Qwen 模型对话了。
@@ -1,6 +1,12 @@
1
1
  ---
2
2
  title: Using Ollama in LobeChat
3
- image: https://github.com/lobehub/lobe-chat/assets/28616219/bb5b3611-3aa8-4ec7-a6dc-f35a13b34d81
3
+ description: 了解如何在 LobeChat 中使用 Ollama 框架,以增强您的应用程序。
4
+ tags:
5
+ - Ollama
6
+ - LobeChat
7
+ - 语言模型
8
+ - 集成
9
+ - 自定义配置
4
10
  ---
5
11
 
6
12
  # Using Ollama in LobeChat
@@ -17,9 +23,9 @@ This document will guide you on how to use Ollama in LobeChat:
17
23
  First, you need to install Ollama, which supports macOS, Windows, and Linux systems. Depending on your operating system, choose one of the following installation methods:
18
24
 
19
25
  <Tabs items={['macOS', 'Linux', 'Windows (Preview)', 'Docker']}>
20
- <Tabs.Tab>[Download Ollama for macOS](https://ollama.com/download) and unzip it.</Tabs.Tab>
26
+ <Tab>[Download Ollama for macOS](https://ollama.com/download) and unzip it.</Tab>
21
27
 
22
- <Tabs.Tab>
28
+ <Tab>
23
29
  ````bash
24
30
  Install using the following command:
25
31
 
@@ -28,18 +34,21 @@ This document will guide you on how to use Ollama in LobeChat:
28
34
  ````
29
35
 
30
36
  Alternatively, you can refer to the [Linux manual installation guide](https://github.com/jmorganca/ollama/blob/main/docs/linux.md).
31
- </Tabs.Tab>
37
+
38
+ </Tab>
32
39
 
33
- <Tabs.Tab>[Download Ollama for Windows](https://ollama.com/download) and install it.</Tabs.Tab>
40
+ <Tab>[Download Ollama for Windows](https://ollama.com/download) and install it.</Tab>
34
41
 
35
- <Tabs.Tab>
42
+ <Tab>
36
43
  If you prefer using Docker, Ollama also provides an official Docker image, which you can pull using the following command:
37
44
 
38
45
  ```bash
39
46
  docker pull ollama/ollama
40
47
  ```
41
- </Tabs.Tab>
42
- </Tabs>
48
+
49
+ </Tab>
50
+
51
+ </Tabs>
43
52
 
44
53
  ### Pulling Models to Local with Ollama
45
54
 
@@ -60,7 +69,8 @@ This document will guide you on how to use Ollama in LobeChat:
60
69
  <Callout type={'info'}>
61
70
  You can visit [Integrating with Ollama](/en/self-hosting/examples/ollama) to learn how to deploy
62
71
  LobeChat to meet the integration requirements with Ollama.
63
- </Callout>
72
+
73
+ </Callout>
64
74
  </Steps>
65
75
 
66
76
  ## Custom Configuration