@lobehub/chat 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +16 -14
  3. package/README.zh-CN.md +16 -14
  4. package/docs/self-hosting/advanced/feature-flags.zh-CN.mdx +2 -1
  5. package/docs/self-hosting/advanced/model-list.zh-CN.mdx +1 -0
  6. package/docs/self-hosting/advanced/server-database.mdx +4 -3
  7. package/docs/self-hosting/advanced/server-database.zh-CN.mdx +1 -0
  8. package/docs/self-hosting/advanced/settings-url-share.mdx +5 -4
  9. package/docs/self-hosting/advanced/settings-url-share.zh-CN.mdx +5 -4
  10. package/docs/self-hosting/advanced/sso-providers/zitadel.mdx +3 -3
  11. package/docs/self-hosting/advanced/sso-providers/zitadel.zh-CN.mdx +2 -1
  12. package/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx +10 -10
  13. package/docs/self-hosting/examples/ollama.mdx +23 -23
  14. package/docs/self-hosting/examples/ollama.zh-CN.mdx +23 -24
  15. package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +2 -3
  16. package/docs/self-hosting/platform/vercel.mdx +2 -2
  17. package/docs/self-hosting/platform/vercel.zh-CN.mdx +2 -1
  18. package/docs/self-hosting/platform/zeabur.mdx +6 -7
  19. package/docs/self-hosting/platform/zeabur.zh-CN.mdx +6 -7
  20. package/docs/usage/agents/prompt.mdx +1 -1
  21. package/docs/usage/agents/prompt.zh-CN.mdx +1 -1
  22. package/docs/usage/features/auth.mdx +13 -8
  23. package/docs/usage/features/auth.zh-CN.mdx +5 -3
  24. package/docs/usage/features/database.mdx +20 -14
  25. package/docs/usage/features/database.zh-CN.mdx +1 -1
  26. package/docs/usage/features/local-llm.mdx +5 -0
  27. package/docs/usage/features/local-llm.zh-CN.mdx +5 -0
  28. package/docs/usage/features/multi-ai-providers.mdx +5 -0
  29. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +5 -0
  30. package/docs/usage/features/plugin-system.zh-CN.mdx +2 -1
  31. package/docs/usage/features/pwa.mdx +3 -2
  32. package/docs/usage/features/pwa.zh-CN.mdx +3 -2
  33. package/docs/usage/providers/01ai.mdx +86 -0
  34. package/docs/usage/providers/01ai.zh-CN.mdx +85 -0
  35. package/docs/usage/providers/anthropic.mdx +79 -0
  36. package/docs/usage/providers/anthropic.zh-CN.mdx +74 -0
  37. package/docs/usage/providers/azure.mdx +89 -0
  38. package/docs/usage/providers/azure.zh-CN.mdx +82 -0
  39. package/docs/usage/providers/bedrock.mdx +140 -0
  40. package/docs/usage/providers/bedrock.zh-CN.mdx +135 -0
  41. package/docs/usage/providers/deepseek.mdx +91 -0
  42. package/docs/usage/providers/deepseek.zh-CN.mdx +86 -0
  43. package/docs/usage/providers/gemini.mdx +83 -0
  44. package/docs/usage/providers/gemini.zh-CN.mdx +80 -0
  45. package/docs/usage/providers/groq.mdx +1 -3
  46. package/docs/usage/providers/groq.zh-CN.mdx +1 -1
  47. package/docs/usage/providers/minimax.mdx +89 -0
  48. package/docs/usage/providers/minimax.zh-CN.mdx +85 -0
  49. package/docs/usage/providers/mistral.mdx +71 -0
  50. package/docs/usage/providers/mistral.zh-CN.mdx +66 -0
  51. package/docs/usage/providers/moonshot.mdx +70 -0
  52. package/docs/usage/providers/moonshot.zh-CN.mdx +66 -0
  53. package/docs/usage/providers/ollama/gemma.mdx +1 -1
  54. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +1 -1
  55. package/docs/usage/providers/ollama/qwen.mdx +1 -1
  56. package/docs/usage/providers/ollama/qwen.zh-CN.mdx +1 -1
  57. package/docs/usage/providers/ollama.mdx +1 -1
  58. package/docs/usage/providers/ollama.zh-CN.mdx +1 -1
  59. package/docs/usage/providers/openai.mdx +95 -0
  60. package/docs/usage/providers/openai.zh-CN.mdx +87 -0
  61. package/docs/usage/providers/openrouter.mdx +111 -0
  62. package/docs/usage/providers/openrouter.zh-CN.mdx +109 -0
  63. package/docs/usage/providers/perplexity.mdx +64 -0
  64. package/docs/usage/providers/perplexity.zh-CN.mdx +61 -0
  65. package/docs/usage/providers/qwen.mdx +93 -0
  66. package/docs/usage/providers/qwen.zh-CN.mdx +86 -0
  67. package/docs/usage/providers/stepfun.mdx +69 -0
  68. package/docs/usage/providers/stepfun.zh-CN.mdx +64 -0
  69. package/docs/usage/providers/togetherai.mdx +74 -0
  70. package/docs/usage/providers/togetherai.zh-CN.mdx +71 -0
  71. package/docs/usage/providers/zhipu.mdx +69 -0
  72. package/docs/usage/providers/zhipu.zh-CN.mdx +64 -0
  73. package/docs/usage/providers.mdx +36 -0
  74. package/docs/usage/providers.zh-CN.mdx +34 -0
  75. package/docs/usage/start.mdx +2 -0
  76. package/docs/usage/start.zh-CN.mdx +2 -0
  77. package/locales/ar/setting.json +1 -0
  78. package/locales/bg-BG/setting.json +1 -0
  79. package/locales/de-DE/setting.json +1 -0
  80. package/locales/en-US/setting.json +1 -0
  81. package/locales/es-ES/setting.json +1 -0
  82. package/locales/fr-FR/setting.json +1 -0
  83. package/locales/it-IT/setting.json +1 -0
  84. package/locales/ja-JP/setting.json +1 -0
  85. package/locales/ko-KR/setting.json +1 -0
  86. package/locales/nl-NL/setting.json +1 -0
  87. package/locales/pl-PL/setting.json +1 -0
  88. package/locales/pt-BR/setting.json +1 -0
  89. package/locales/ru-RU/setting.json +1 -0
  90. package/locales/tr-TR/setting.json +1 -0
  91. package/locales/vi-VN/setting.json +1 -0
  92. package/locales/zh-CN/setting.json +1 -0
  93. package/locales/zh-TW/setting.json +1 -0
  94. package/package.json +6 -5
  95. package/src/app/(main)/settings/llm/ProviderList/providers.tsx +33 -4
  96. package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +41 -11
  97. package/src/app/(main)/settings/llm/index.tsx +1 -2
  98. package/src/features/ChatInput/useSend.ts +2 -1
  99. package/src/features/Conversation/Messages/Assistant/ToolCalls/index.tsx +1 -1
  100. package/src/features/Conversation/Messages/components/Arguments.tsx +5 -3
  101. package/src/features/Conversation/Messages/hooks/useYamlArguments.ts +5 -2
  102. package/src/locales/default/setting.ts +1 -0
  103. package/src/store/chat/slices/plugin/action.test.ts +5 -5
  104. package/src/store/chat/slices/plugin/action.ts +6 -2
  105. package/src/store/tool/slices/builtin/action.test.ts +8 -11
  106. package/src/store/tool/slices/builtin/action.ts +9 -9
@@ -0,0 +1,83 @@
1
+ ---
2
+ title: Using Google Gemini in LobeChat
3
+ description: >-
4
+ Learn how to integrate and utilize Google Gemini AI in LobeChat to enhance
5
+ your conversational experience. Follow these steps to configure Google Gemini
6
+ and start leveraging its powerful capabilities.
7
+ tags:
8
+ - Google Gemini
9
+ - LobeChat
10
+ - AI integration
11
+ - Language Models
12
+ - Google AI Studio
13
+ ---
14
+
15
+ # Using Google Gemini in LobeChat
16
+
17
+ <Image
18
+ alt={'Using Google Gemini in LobeChat'}
19
+ cover
20
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/9a8dc1d4-152b-415f-a7cd-8f0c8fbb9913'}
21
+ />
22
+
23
+ Gemini AI is a set of large language models (LLMs) created by Google AI, known for its cutting-edge advancements in multimodal understanding and processing. It is essentially a powerful artificial intelligence tool capable of handling various tasks involving different types of data, not just text.
24
+
25
+ This document will guide you on how to use Google Gemini in LobeChat:
26
+
27
+ <Steps>
28
+
29
+ ### Step 1: Obtain Google API Key
30
+
31
+ - Visit and log in to [Google AI Studio](https://aistudio.google.com/)
32
+ - Navigate to `Get API Key` in the menu and click on `Create API Key`
33
+
34
+ <Image
35
+ alt={'Generate Google Gemini Key'}
36
+ inStep
37
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/ba3595e3-d9cb-4d0d-b414-8306b16df186'}
38
+ />
39
+
40
+ - Select a project and create an API key, or create one in a new project
41
+
42
+ <Image
43
+ alt={'Enter API Key Name'}
44
+ inStep
45
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/fa725e49-4c17-4055-82bc-98a31e73fa54'}
46
+ />
47
+
48
+ - Copy the API key from the pop-up dialog
49
+
50
+ <Image
51
+ alt={'Copy API Key'}
52
+ inStep
53
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/28d89add-cb18-4b86-9807-f2a5ed65ceba'}
54
+ />
55
+
56
+ ### Step 2: Configure OpenAI in LobeChat
57
+
58
+ - Go to the `Settings` interface in LobeChat
59
+ - Find the setting for `Google Gemini` under `Language Models`
60
+
61
+ <Image
62
+ alt={'Enter Google Gemini API Key in LobeChat'}
63
+ inStep
64
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/11442ce4-a615-49c4-937a-ca2ae93dd27c'}
65
+ />
66
+
67
+ - Enable Google Gemini and enter the obtained API key
68
+ - Choose a Gemini model for your assistant to start the conversation
69
+
70
+ <Image
71
+ alt={'Select and Use Gemini Model'}
72
+ inStep
73
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/ef9ed1b8-6828-4dd6-b86b-bb0b4fa40619'}
74
+ />
75
+
76
+ <Callout type={'warning'}>
77
+ During usage, you may need to pay the API service provider, please refer to Google Gemini's
78
+ pricing policy.
79
+ </Callout>
80
+
81
+ </Steps>
82
+
83
+ Congratulations! You can now use Google Gemini in LobeChat.
@@ -0,0 +1,80 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 Google Gemini
3
+ description: 本文将指导你如何在 LobeChat 中配置并使用 Google Gemini,一个由 Google AI 创建的强大语言模型。
4
+ tags:
5
+ - LobeChat
6
+ - Google Gemini
7
+ - Google AI
8
+ - 语言模型
9
+ - API 密钥
10
+ - 配置
11
+ ---
12
+
13
+ # 在 LobeChat 中使用 Google Gemini
14
+
15
+ <Image
16
+ alt={'在 LobeChat 中使用 Google Gemini'}
17
+ cover
18
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/9a8dc1d4-152b-415f-a7cd-8f0c8fbb9913'}
19
+ />
20
+
21
+ Gemini AI是由 Google AI 创建的一组大型语言模型(LLM),以其在多模式理解和处理方面的尖端进步而闻名。它本质上是一个强大的人工智能工具,可以处理涉及不同类型数据的各种任务,而不仅仅是文本。
22
+
23
+ 本文档将指导你如何在 LobeChat 中使用 Google Gemini:
24
+
25
+ <Steps>
26
+
27
+ ### 步骤一:获取 Google 的 API 密钥
28
+
29
+ - 访问并登录 [Google AI Studio](https://aistudio.google.com/)
30
+ - 在 `获取 API 密钥` 菜单中 `创建 API 密钥`
31
+
32
+ <Image
33
+ alt={'生成 Google Gemini 密钥'}
34
+ inStep
35
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/ba3595e3-d9cb-4d0d-b414-8306b16df186'}
36
+ />
37
+
38
+ - 选择一个项目并创建 API 密钥,或者在新项目中创建 API 密钥
39
+
40
+ <Image
41
+ alt={'输入 API 密钥名称'}
42
+ inStep
43
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/fa725e49-4c17-4055-82bc-98a31e73fa54'}
44
+ />
45
+
46
+ - 在弹出的对话框中复制 API 密钥
47
+
48
+ <Image
49
+ alt={'复制 API 密钥'}
50
+ inStep
51
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/28d89add-cb18-4b86-9807-f2a5ed65ceba'}
52
+ />
53
+
54
+ ### 步骤二:在 LobeChat 中配置OpenAI
55
+
56
+ - 访问LobeChat的`设置`界面
57
+ - 在`语言模型`下找到`Google Gemini`的设置项
58
+
59
+ <Image
60
+ alt={'LobeChat 中填写 Google Gemini API 密钥'}
61
+ inStep
62
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/11442ce4-a615-49c4-937a-ca2ae93dd27c'}
63
+ />
64
+
65
+ - 打开 Google Gemini 并填入获得的 API 密钥
66
+ - 为你的助手选择一个 Gemini 的模型即可开始对话
67
+
68
+ <Image
69
+ alt={' 选择并使用 Gemini 模型 '}
70
+ inStep
71
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/ef9ed1b8-6828-4dd6-b86b-bb0b4fa40619'}
72
+ />
73
+
74
+ <Callout type={'warning'}>
75
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Google Gemini 的费用政策。
76
+ </Callout>
77
+
78
+ </Steps>
79
+
80
+ 至此,你已经可以在 LobeChat 中使用 Google Gemini 啦。
@@ -14,14 +14,12 @@ tags:
14
14
  - Language Model
15
15
  ---
16
16
 
17
- import { Callout, Steps } from 'nextra/components';
18
-
19
17
  # Using Groq in LobeChat
20
18
 
21
19
  <Image
22
20
  alt={'Using Groq in LobeChat'}
23
21
  cover
24
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/d0d08d98-a8d2-4b97-97c0-24a4f01d7eac'}
22
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/1d840e27-fa74-4e71-b777-330bf41d6dff'}
25
23
  />
26
24
 
27
25
  Groq's [LPU Inference Engine](https://wow.groq.com/news_press/groq-lpu-inference-engine-leads-in-first-independent-llm-benchmark/) has excelled in the latest independent Large Language Model (LLM) benchmark, redefining the standard for AI solutions with its remarkable speed and efficiency. By integrating LobeChat with Groq Cloud, you can now easily leverage Groq's technology to accelerate the operation of large language models in LobeChat.
@@ -17,7 +17,7 @@ tags:
17
17
  <Image
18
18
  alt={'在 LobeChat 中使用 Groq'}
19
19
  cover
20
- src={'https://github.com/lobehub/lobe-chat/assets/34400653/d0d08d98-a8d2-4b97-97c0-24a4f01d7eac'}
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/1d840e27-fa74-4e71-b777-330bf41d6dff'}
21
21
  />
22
22
 
23
23
  Groq 的 [LPU 推理引擎](https://wow.groq.com/news_press/groq-lpu-inference-engine-leads-in-first-independent-llm-benchmark/) 在最新的独立大语言模型(LLM)基准测试中表现卓越,以其惊人的速度和效率重新定义了 AI 解决方案的标准。通过 LobeChat 与 Groq Cloud 的集成,你现在可以轻松地利用 Groq 的技术,在 LobeChat 中加速大语言模型的运行。
@@ -0,0 +1,89 @@
1
+ ---
2
+ title: Using Minimax in LobeChat
3
+ description: >-
4
+ Learn how to use MiniMax in LobeChat to enhance AI conversations. Obtain
5
+ MiniMax API key, configure MiniMax in LobeChat settings, and select a model
6
+ for your AI assistant.
7
+ tags:
8
+ - MiniMax
9
+ - LobeChat
10
+ - AI Conversations
11
+ - API Key
12
+ - Configure MiniMax
13
+ - MiniMax Models
14
+ ---
15
+
16
+ # Using Minimax in LobeChat
17
+
18
+ <Image
19
+ alt={'Using Minimax in LobeChat'}
20
+ cover
21
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/703f170b-c03b-4c71-b57d-c2357596bdfb'}
22
+ />
23
+
24
+ [MiniMax](https://www.minimaxi.com/) is a general artificial intelligence technology company founded in 2021, dedicated to co-creating intelligence with users. MiniMax has independently developed universal large models of different modalities, including trillion-parameter MoE text large models, speech large models, and image large models. They have also launched applications like Hai Luo AI.
25
+
26
+ This document will guide you on how to use Minimax in LobeChat:
27
+
28
+ <Steps>
29
+
30
+ ### Step 1: Obtain MiniMax API Key
31
+
32
+ - Register and log in to the [MiniMax Open Platform](https://www.minimaxi.com/platform)
33
+ - In `Account Management`, locate the `API Key` menu and create a new key
34
+
35
+ <Image
36
+ alt={'Create MiniMax API Key'}
37
+ inStep
38
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f6e46f1c-0ac9-42ae-8e83-ddb0cc6c5bf8'}
39
+ />
40
+
41
+ - Enter a name for the API key and create it
42
+
43
+ <Image
44
+ alt={'Enter API Key Name'}
45
+ inStep
46
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/cbc23ca9-1188-4b85-8ef0-e75ac7d74b92'}
47
+ />
48
+
49
+ - Copy the API key from the pop-up dialog box and save it securely
50
+
51
+ <Image
52
+ alt={'Save API Key'}
53
+ inStep
54
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/fb0f7574-c2f5-40d6-8613-3749e85ce881'}
55
+ />
56
+
57
+ <Callout type={'warning'}>
58
+ Please store the key securely as it will only appear once. If you accidentally lose it, you will
59
+ need to create a new key.
60
+ </Callout>
61
+
62
+ ### Step 2: Configure MiniMax in LobeChat
63
+
64
+ - Go to the `Settings` interface of LobeChat
65
+ - Find the setting for `MiniMax` under `Language Model`
66
+
67
+ <Image
68
+ alt={'Enter API Key'}
69
+ inStep
70
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/b839e04e-0cef-46a3-bb84-0484a3f51c69'}
71
+ />
72
+
73
+ - Open Minimax and enter the obtained API key
74
+ - Choose a MiniMax model for your AI assistant to start the conversation
75
+
76
+ <Image
77
+ alt={'Select MiniMax Model and Start Conversation'}
78
+ inStep
79
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f7d59c7a-abd0-4ebd-8c72-ca10c47a0f1a'}
80
+ />
81
+
82
+ <Callout type={'warning'}>
83
+ During usage, you may need to pay the API service provider, please refer to MiniMax's relevant
84
+ pricing policies.
85
+ </Callout>
86
+
87
+ </Steps>
88
+
89
+ You can now use the models provided by MiniMax to have conversations in LobeChat.
@@ -0,0 +1,85 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 Minimax
3
+ description: >-
4
+ 学习如何在 LobeChat 中配置并使用 MiniMax 智能模型进行对话。获取 MiniMax API 密钥、配置步骤详解,开始与 MiniMax
5
+ 模型交互。
6
+ tags:
7
+ - LobeChat
8
+ - MiniMax
9
+ - API密钥
10
+ - 智能模型
11
+ - 对话交互
12
+ ---
13
+
14
+ # 在 LobeChat 中使用 Minimax
15
+
16
+ <Image
17
+ alt={'在 LobeChat 中使用 Minimax'}
18
+ cover
19
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/703f170b-c03b-4c71-b57d-c2357596bdfb'}
20
+ />
21
+
22
+ [MiniMax](https://www.minimaxi.com/) 是 2021 年成立的通用人工智能科技公司,致力于与用户共创智能。MiniMax 自主研发了不同模态的通用大模型,其中包括万亿参数的 MoE 文本大模型、语音大模型以及图像大模型。并推出了海螺 AI 等应用。
23
+
24
+ 本文档将指导你如何在 LobeChat 中使用 Minimax:
25
+
26
+ <Steps>
27
+
28
+ ### 步骤一:获取 MiniMax API 密钥
29
+
30
+ - 注册并登录 [MiniMax 开放平台](https://www.minimaxi.com/platform)
31
+ - 在 `账户管理` 中找到 `接口密钥` 菜单,并创建新的密钥
32
+
33
+ <Image
34
+ alt={'创建 MiniMax API 密钥'}
35
+ inStep
36
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f6e46f1c-0ac9-42ae-8e83-ddb0cc6c5bf8'}
37
+ />
38
+
39
+ - 填写一个 API 密钥的名称并创建
40
+
41
+ <Image
42
+ alt={'填写 API 密钥名称'}
43
+ inStep
44
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/cbc23ca9-1188-4b85-8ef0-e75ac7d74b92'}
45
+ />
46
+
47
+ - 在弹出的对话框中复制 API 密钥,并妥善保存
48
+
49
+ <Image
50
+ alt={'保存 API 密钥'}
51
+ inStep
52
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/fb0f7574-c2f5-40d6-8613-3749e85ce881'}
53
+ />
54
+
55
+ <Callout type={'warning'}>
56
+ 请安全地存储密钥,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新密钥。
57
+ </Callout>
58
+
59
+ ### 步骤二:在LobeChat 中配置 MiniMax
60
+
61
+ - 访问 LobeChat 的`设置`界面
62
+ - 在`语言模型`下找到`MiniMax`的设置项
63
+
64
+ <Image
65
+ alt={'填入 API 密钥'}
66
+ inStep
67
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/b839e04e-0cef-46a3-bb84-0484a3f51c69'}
68
+ />
69
+
70
+ - 打开 Minimax 并填入获得的 API 密钥
71
+ - 为你的 AI 助手选择一个 MiniMax 的模型即可开始对话
72
+
73
+ <Image
74
+ alt={'选择 MiniMax 模型并开始对话'}
75
+ inStep
76
+ src={'https://github.com/lobehub/lobe-chat/assets/34400653/f7d59c7a-abd0-4ebd-8c72-ca10c47a0f1a'}
77
+ />
78
+
79
+ <Callout type={'warning'}>
80
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 MiniMax 的相关费用政策。
81
+ </Callout>
82
+
83
+ </Steps>
84
+
85
+ 至此你已经可以在 LobeChat 中使用 MiniMax 提供的模型进行对话了。
@@ -0,0 +1,71 @@
1
+ ---
2
+ title: Using Mistral AI in LobeChat
3
+ description: >-
4
+ Learn how to integrate Mistral AI into LobeChat for enhanced conversational
5
+ experiences. Follow the steps to configure Mistral AI and start using its
6
+ models.
7
+ tags:
8
+ - Mistral AI
9
+ - LobeChat
10
+ - AI integration
11
+ - API key
12
+ - conversation models
13
+ ---
14
+
15
+ # Using Mistral AI in LobeChat
16
+
17
+ <Image
18
+ alt={'Using Mistral AI in LobeChat'}
19
+ cover
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/a3f9f63a-48f8-4567-b960-7f3636c0d4ed'}
21
+ />
22
+
23
+ The Mistral AI API is now available for everyone to use. This document will guide you on how to use [Mistral AI](https://mistral.ai/) in LobeChat:
24
+
25
+ <Steps>
26
+
27
+ ### Step 1: Obtain Mistral AI API Key
28
+
29
+ - Create a [Mistral AI](https://mistral.ai/) account
30
+ - Obtain your [API key](https://console.mistral.ai/user/api-keys/)
31
+
32
+ <Image
33
+ alt={'Obtain your API Key'}
34
+ inStep
35
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/79faa59a-dfc0-4365-a679-5fc12c12bc70'}
36
+ />
37
+
38
+ ### Step 2: Configure Mistral AI in LobeChat
39
+
40
+ - Go to the `Settings` interface in LobeChat
41
+ - Find the setting for `Mistral AI` under `Language Model`
42
+
43
+ <Image
44
+ alt={'Enter API Key'}
45
+ inStep
46
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/ba8e688a-e0c1-4567-9013-94205f83fc60'}
47
+ />
48
+
49
+ <Callout type={'warning'}>
50
+ If you are using mistral.ai, your account must have a valid subscription for the API key to work
51
+ properly. Newly created API keys may take 2-3 minutes to become active. If the "Test" button
52
+ fails, please retry after 2-3 minutes.
53
+ </Callout>
54
+
55
+ - Enter the obtained API key
56
+ - Choose a Mistral AI model for your AI assistant to start the conversation
57
+
58
+ <Image
59
+ alt={'Select Mistral AI Model and Start Conversation'}
60
+ inStep
61
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/82cf4f5c-be5c-4126-a475-3a03468a9c39'}
62
+ />
63
+
64
+ <Callout type={'warning'}>
65
+ During usage, you may need to pay the API service provider, please refer to Mistral AI's relevant
66
+ pricing policies.
67
+ </Callout>
68
+
69
+ </Steps>
70
+
71
+ You can now engage in conversations using the models provided by Mistral AI in LobeChat.
@@ -0,0 +1,66 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 Mistral AI
3
+ description: 学习如何在 LobeChat 中配置并使用 Mistral AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
4
+ tags:
5
+ - LobeChat
6
+ - Mistral AI
7
+ - API 密钥
8
+ - AI 模型
9
+ - 对话
10
+ ---
11
+
12
+ # 在 LobeChat 中使用 Mistral AI
13
+
14
+ <Image
15
+ alt={'在 LobeChat 中使用 Mistral AI'}
16
+ cover
17
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/a3f9f63a-48f8-4567-b960-7f3636c0d4ed'}
18
+ />
19
+
20
+ Mistral AI API 现在可供所有人使用, 本文档将指导你如何在 LobeChat 中使用 [Mistral AI](https://mistral.ai/):
21
+
22
+ <Steps>
23
+
24
+ ### 步骤一:获取 Mistral AI API 密钥
25
+
26
+ - 创建一个 [Mistral AI](https://mistral.ai/) 帐户
27
+ - 获取您的 [API 密钥](https://console.mistral.ai/user/api-keys/)
28
+
29
+ <Image
30
+ alt={'创建 API Key'}
31
+ inStep
32
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/79faa59a-dfc0-4365-a679-5fc12c12bc70'}
33
+ />
34
+
35
+ ### 步骤二:在 LobeChat 中配置 Mistral AI
36
+
37
+ - 访问 LobeChat 的`设置`界面
38
+ - 在`语言模型`下找到`Mistral AI`的设置项
39
+
40
+ <Image
41
+ alt={'填入 API 密钥'}
42
+ inStep
43
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/ba8e688a-e0c1-4567-9013-94205f83fc60'}
44
+ />
45
+
46
+ <Callout type={'warning'}>
47
+ 如果您使用的是 mistral.ai,则您的帐户必须具有有效的订阅才能使 API 密钥正常工作。新创建的 API
48
+ 密钥需要 2-3 分钟才能开始工作。如果单击“测试”按钮但失败,请在 2-3 分钟后重试。
49
+ </Callout>
50
+
51
+ - 填入获得的 API 密钥
52
+ - 为你的 AI 助手选择一个 Mistral AI 的模型即可开始对话
53
+
54
+ <Image
55
+ alt={'选择 Mistral AI 模型并开始对话'}
56
+ inStep
57
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/82cf4f5c-be5c-4126-a475-3a03468a9c39'}
58
+ />
59
+
60
+ <Callout type={'warning'}>
61
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Mistral AI 的相关费用政策。
62
+ </Callout>
63
+
64
+ </Steps>
65
+
66
+ 至此你已经可以在 LobeChat 中使用 Mistral AI 提供的模型进行对话了。
@@ -0,0 +1,70 @@
1
+ ---
2
+ title: Using Moonshot AI in LobeChat
3
+ description: >-
4
+ Learn how to integrate Moonshot AI into LobeChat for AI-powered conversations.
5
+ Follow the steps to get the API key, configure Moonshot AI, and start engaging
6
+ with AI models.
7
+ tags:
8
+ - Moonshot AI
9
+ - LobeChat
10
+ - API integration
11
+ - AI models
12
+ - Conversation starters
13
+ ---
14
+
15
+ # Using Moonshot AI in LobeChat
16
+
17
+ <Image
18
+ alt={'Using Moonshot AI in LobeChat'}
19
+ cover
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/21b94782-875b-4dee-a572-3c5843f3e1e3'}
21
+ />
22
+
23
+ The Moonshot AI API is now available for everyone to use. This document will guide you on how to use [Moonshot AI](https://www.moonshot.cn/) in LobeChat:
24
+
25
+ <Steps>
26
+
27
+ ### Step 1: Get Moonshot AI API Key
28
+
29
+ - Apply for your [API key](https://platform.moonshot.cn/console/api-keys)
30
+
31
+ <Image
32
+ alt={'Apply for API Key'}
33
+ inStep
34
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/4e56e080-9b8c-42e1-87e1-11123dbb9067'}
35
+ />
36
+
37
+ ### Step 2: Configure Moonshot AI in LobeChat
38
+
39
+ - Visit the `Settings` interface in LobeChat
40
+ - Find the setting for `Moonshot AI` under `Language Models`
41
+
42
+ <Image
43
+ alt={'Enter API Key'}
44
+ inStep
45
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/e1b5f84f-015e-437c-98cc-a3431fa3b077'}
46
+ />
47
+
48
+ <Callout type={'warning'}>
49
+ If you are using mistral.ai, your account must have a valid subscription for the API key to work
50
+ properly. Newly created API keys may take 2-3 minutes to become active. If the "Test" button
51
+ fails, please retry after 2-3 minutes.
52
+ </Callout>
53
+
54
+ - Enter the API key you obtained
55
+ - Choose a Moonshot AI model for your AI assistant to start the conversation
56
+
57
+ <Image
58
+ alt={'Select Moonshot AI model and start conversation'}
59
+ inStep
60
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/eb7273f8-f0ed-4b9b-884e-96d29c406cb7'}
61
+ />
62
+
63
+ <Callout type={'warning'}>
64
+ During usage, you may need to pay the API service provider according to Moonshot AI's related
65
+ pricing policies.
66
+ </Callout>
67
+
68
+ </Steps>
69
+
70
+ You can now engage in conversations using the models provided by Moonshot AI in LobeChat.
@@ -0,0 +1,66 @@
1
+ ---
2
+ title: 在 LobeChat 中使用 Moonshot AI
3
+ description: 学习如何在 LobeChat 中配置和使用 Moonshot AI,包括获取 API 密钥和选择适合的 AI 模型进行对话。
4
+ tags:
5
+ - LobeChat
6
+ - Moonshot AI
7
+ - API 密钥
8
+ - AI 模型
9
+ - 对话
10
+ - 配置
11
+ ---
12
+
13
+ # 在 LobeChat 中使用 Moonshot AI
14
+
15
+ <Image
16
+ alt={'在 LobeChat 中使用 Moonshot AI'}
17
+ cover
18
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/21b94782-875b-4dee-a572-3c5843f3e1e3'}
19
+ />
20
+
21
+ Moonshot AI API 现在可供所有人使用, 本文档将指导你如何在 LobeChat 中使用 [Moonshot AI](https://www.moonshot.cn/):
22
+
23
+ <Steps>
24
+
25
+ ### 步骤一:获取 Moonshot AI API 密钥
26
+
27
+ - 申请您的 [API 密钥](https://platform.moonshot.cn/console/api-keys)
28
+
29
+ <Image
30
+ alt={'申请 API Key'}
31
+ inStep
32
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/4e56e080-9b8c-42e1-87e1-11123dbb9067'}
33
+ />
34
+
35
+ ### 步骤二:在 LobeChat 中配置 Moonshot AI
36
+
37
+ - 访问 LobeChat 的`设置`界面
38
+ - 在`语言模型`下找到`Moonshot AI`的设置项
39
+
40
+ <Image
41
+ alt={'填入 API 密钥'}
42
+ inStep
43
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/e1b5f84f-015e-437c-98cc-a3431fa3b077'}
44
+ />
45
+
46
+ <Callout type={'warning'}>
47
+ 如果您使用的是 mistral.ai,则您的帐户必须具有有效的订阅才能使 API 密钥正常工作。新创建的 API
48
+ 密钥需要 2-3 分钟才能开始工作。如果单击“测试”按钮但失败,请在 2-3 分钟后重试。
49
+ </Callout>
50
+
51
+ - 填入获得的 API 密钥
52
+ - 为你的 AI 助手选择一个 Moonshot AI 的模型即可开始对话
53
+
54
+ <Image
55
+ alt={'选择 Moonshot AI 模型并开始对话'}
56
+ inStep
57
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/eb7273f8-f0ed-4b9b-884e-96d29c406cb7'}
58
+ />
59
+
60
+ <Callout type={'warning'}>
61
+ 在使用过程中你可能需要向 API 服务提供商付费,请参考 Moonshot AI 的相关费用政策。
62
+ </Callout>
63
+
64
+ </Steps>
65
+
66
+ 至此你已经可以在 LobeChat 中使用 Moonshot AI 提供的模型进行对话了。
@@ -17,7 +17,7 @@ tags:
17
17
  <Image
18
18
  alt={'Using Gemma in LobeChat'}
19
19
  cover
20
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/e636cb41-5b7f-4949-a236-1cc1633bd223'}
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/65d2dd2a-fdcf-4f3f-a6af-4ed5164a510d'}
21
21
  />
22
22
 
23
23
  [Gemma](https://blog.google/technology/developers/gemma-open-models/) is an open-source large language model (LLM) from Google, designed to provide a more general and flexible model for various natural language processing tasks. Now, with the integration of LobeChat and [Ollama](https://ollama.com/), you can easily use Google Gemma in LobeChat.
@@ -17,7 +17,7 @@ tags:
17
17
  alt={'在 LobeChat 中使用 Gemma'}
18
18
  cover
19
19
  rounded
20
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/e636cb41-5b7f-4949-a236-1cc1633bd223'}
20
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/65d2dd2a-fdcf-4f3f-a6af-4ed5164a510d'}
21
21
  />
22
22
 
23
23
  [Gemma](https://blog.google/technology/developers/gemma-open-models/) 是 Google 开源的一款大语言模型(LLM),旨在提供一个更加通用、灵活的模型用于各种自然语言处理任务。现在,通过 LobeChat 与 [Ollama](https://ollama.com/) 的集成,你可以轻松地在 LobeChat 中使用 Google Gemma。
@@ -14,7 +14,7 @@ tags:
14
14
  <Image
15
15
  alt={'Using Qwen in LobeChat'}
16
16
  cover
17
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/7a5fd01a-9fed-49c1-93a3-422269213f19'}
17
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/b4a01219-e7b1-48a0-888c-f0271b18e3a6'}
18
18
  />
19
19
 
20
20
  [Qwen](https://github.com/QwenLM/Qwen1.5) is a large language model (LLM) open-sourced by Alibaba Cloud. It is officially defined as a constantly evolving AI large model, and it achieves more accurate Chinese recognition capabilities through more training set content.
@@ -14,7 +14,7 @@ tags:
14
14
  <Image
15
15
  alt={'在 LobeChat 中使用 Qwen'}
16
16
  cover
17
- src={'https://github.com/lobehub/lobe-chat/assets/28616219/7a5fd01a-9fed-49c1-93a3-422269213f19'}
17
+ src={'https://github.com/lobehub/lobe-chat/assets/17870709/b4a01219-e7b1-48a0-888c-f0271b18e3a6'}
18
18
  />
19
19
 
20
20
  [通义千问](https://github.com/QwenLM/Qwen1.5) 是阿里云开源的一款大语言模型(LLM),官方定义是一个不断进化的 AI 大模型,并通过更多的训练集内容达到更精准的中文识别能力。