@lobehub/chat 1.99.2 → 1.99.3
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.
- package/.cursor/rules/project-introduce.mdc +1 -56
- package/.cursor/rules/testing-guide/db-model-test.mdc +453 -0
- package/.cursor/rules/testing-guide/electron-ipc-test.mdc +80 -0
- package/.cursor/rules/testing-guide/testing-guide.mdc +401 -0
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/docs/usage/providers/ai21.mdx +1 -1
- package/docs/usage/providers/ai21.zh-CN.mdx +1 -1
- package/docs/usage/providers/ai360.mdx +1 -1
- package/docs/usage/providers/ai360.zh-CN.mdx +1 -1
- package/docs/usage/providers/anthropic.mdx +1 -1
- package/docs/usage/providers/anthropic.zh-CN.mdx +1 -1
- package/docs/usage/providers/azure.mdx +1 -1
- package/docs/usage/providers/azure.zh-CN.mdx +1 -1
- package/docs/usage/providers/baichuan.mdx +1 -1
- package/docs/usage/providers/baichuan.zh-CN.mdx +1 -1
- package/docs/usage/providers/bedrock.mdx +1 -1
- package/docs/usage/providers/bedrock.zh-CN.mdx +1 -1
- package/docs/usage/providers/cloudflare.mdx +1 -1
- package/docs/usage/providers/cloudflare.zh-CN.mdx +1 -1
- package/docs/usage/providers/deepseek.mdx +1 -1
- package/docs/usage/providers/deepseek.zh-CN.mdx +1 -1
- package/docs/usage/providers/fal.mdx +69 -0
- package/docs/usage/providers/fal.zh-CN.mdx +68 -0
- package/docs/usage/providers/fireworksai.mdx +1 -1
- package/docs/usage/providers/fireworksai.zh-CN.mdx +1 -1
- package/docs/usage/providers/giteeai.mdx +1 -1
- package/docs/usage/providers/giteeai.zh-CN.mdx +1 -1
- package/docs/usage/providers/github.mdx +1 -1
- package/docs/usage/providers/github.zh-CN.mdx +1 -1
- package/docs/usage/providers/google.mdx +1 -1
- package/docs/usage/providers/google.zh-CN.mdx +1 -1
- package/docs/usage/providers/groq.mdx +1 -1
- package/docs/usage/providers/groq.zh-CN.mdx +1 -1
- package/docs/usage/providers/hunyuan.mdx +1 -1
- package/docs/usage/providers/hunyuan.zh-CN.mdx +1 -1
- package/docs/usage/providers/internlm.mdx +1 -1
- package/docs/usage/providers/internlm.zh-CN.mdx +1 -1
- package/docs/usage/providers/jina.mdx +1 -1
- package/docs/usage/providers/jina.zh-CN.mdx +1 -1
- package/docs/usage/providers/minimax.mdx +1 -1
- package/docs/usage/providers/minimax.zh-CN.mdx +1 -1
- package/docs/usage/providers/mistral.mdx +1 -1
- package/docs/usage/providers/mistral.zh-CN.mdx +1 -1
- package/docs/usage/providers/moonshot.mdx +1 -1
- package/docs/usage/providers/moonshot.zh-CN.mdx +1 -1
- package/docs/usage/providers/novita.mdx +1 -1
- package/docs/usage/providers/novita.zh-CN.mdx +1 -1
- package/docs/usage/providers/ollama.mdx +1 -1
- package/docs/usage/providers/ollama.zh-CN.mdx +1 -1
- package/docs/usage/providers/openai.mdx +4 -4
- package/docs/usage/providers/openai.zh-CN.mdx +4 -4
- package/docs/usage/providers/openrouter.mdx +1 -1
- package/docs/usage/providers/openrouter.zh-CN.mdx +1 -1
- package/docs/usage/providers/perplexity.mdx +1 -1
- package/docs/usage/providers/perplexity.zh-CN.mdx +1 -1
- package/docs/usage/providers/ppio.mdx +1 -1
- package/docs/usage/providers/ppio.zh-CN.mdx +1 -1
- package/docs/usage/providers/qiniu.mdx +1 -1
- package/docs/usage/providers/qiniu.zh-CN.mdx +1 -1
- package/docs/usage/providers/qwen.mdx +1 -1
- package/docs/usage/providers/qwen.zh-CN.mdx +1 -1
- package/docs/usage/providers/sambanova.mdx +1 -1
- package/docs/usage/providers/sambanova.zh-CN.mdx +1 -1
- package/docs/usage/providers/sensenova.mdx +1 -1
- package/docs/usage/providers/sensenova.zh-CN.mdx +1 -1
- package/docs/usage/providers/siliconcloud.mdx +1 -1
- package/docs/usage/providers/siliconcloud.zh-CN.mdx +1 -1
- package/docs/usage/providers/spark.mdx +1 -1
- package/docs/usage/providers/spark.zh-CN.mdx +1 -1
- package/docs/usage/providers/stepfun.mdx +1 -1
- package/docs/usage/providers/stepfun.zh-CN.mdx +1 -1
- package/docs/usage/providers/taichu.mdx +1 -1
- package/docs/usage/providers/taichu.zh-CN.mdx +1 -1
- package/docs/usage/providers/togetherai.mdx +1 -1
- package/docs/usage/providers/togetherai.zh-CN.mdx +1 -1
- package/docs/usage/providers/upstage.mdx +1 -1
- package/docs/usage/providers/upstage.zh-CN.mdx +1 -1
- package/docs/usage/providers/vllm.mdx +1 -1
- package/docs/usage/providers/vllm.zh-CN.mdx +1 -1
- package/docs/usage/providers/wenxin.mdx +1 -1
- package/docs/usage/providers/wenxin.zh-CN.mdx +1 -1
- package/docs/usage/providers/xai.mdx +1 -1
- package/docs/usage/providers/xai.zh-CN.mdx +1 -1
- package/docs/usage/providers/zeroone.mdx +1 -1
- package/docs/usage/providers/zeroone.zh-CN.mdx +1 -1
- package/docs/usage/providers/zhipu.mdx +1 -1
- package/docs/usage/providers/zhipu.zh-CN.mdx +1 -1
- package/package.json +2 -2
- package/src/config/aiModels/openai.ts +24 -9
- package/src/libs/model-runtime/BaseAI.ts +1 -0
- package/src/libs/model-runtime/hunyuan/index.ts +4 -6
- package/src/libs/model-runtime/novita/__snapshots__/index.test.ts.snap +18 -0
- package/src/libs/model-runtime/openai/__snapshots__/index.test.ts.snap +28 -0
- package/src/libs/model-runtime/openai/index.test.ts +1 -338
- package/src/libs/model-runtime/openai/index.ts +0 -127
- package/src/libs/model-runtime/openrouter/__snapshots__/index.test.ts.snap +3 -0
- package/src/libs/model-runtime/ppio/__snapshots__/index.test.ts.snap +2 -0
- package/src/libs/model-runtime/utils/modelParse.ts +1 -0
- package/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts +364 -12
- package/src/libs/model-runtime/utils/openaiCompatibleFactory/index.ts +145 -43
- package/src/libs/model-runtime/utils/openaiHelpers.test.ts +151 -0
- package/src/libs/model-runtime/utils/openaiHelpers.ts +26 -1
- package/src/libs/model-runtime/xai/index.ts +1 -4
- package/src/store/aiInfra/slices/aiModel/action.ts +1 -1
- package/src/store/aiInfra/slices/aiProvider/action.ts +5 -2
- package/src/types/aiModel.ts +1 -0
- package/src/types/llm.ts +3 -1
- package/.cursor/rules/testing-guide.mdc +0 -881
@@ -0,0 +1,69 @@
|
|
1
|
+
---
|
2
|
+
title: Using Fal API Key in LobeChat
|
3
|
+
description: >-
|
4
|
+
Learn how to integrate Fal API Key in LobeChat for AI image and video generation using cutting-edge models like FLUX, Kling, and more.
|
5
|
+
|
6
|
+
tags:
|
7
|
+
- Fal AI
|
8
|
+
- Image Generation
|
9
|
+
- Video Generation
|
10
|
+
- API Key
|
11
|
+
- Web UI
|
12
|
+
---
|
13
|
+
|
14
|
+
# Using Fal in LobeChat
|
15
|
+
|
16
|
+
<Image alt={'Using Fal in LobeChat'} cover src={'https://github.com/user-attachments/assets/febb2ffb-8fe8-4f88-b8c9-8fa0985a2352'} />
|
17
|
+
|
18
|
+
[Fal.ai](https://fal.ai/) is a lightning-fast inference platform specialized in AI media generation, hosting state-of-the-art models for image and video creation including FLUX, Kling, HiDream, and other cutting-edge generative models. This document will guide you on how to use Fal in LobeChat:
|
19
|
+
|
20
|
+
<Steps>
|
21
|
+
### Step 1: Obtain Fal API Key
|
22
|
+
|
23
|
+
- Register for a [Fal.ai account](https://fal.ai/).
|
24
|
+
- Navigate to [API Keys dashboard](https://fal.ai/dashboard/keys) and click **Add key** to create a new API key.
|
25
|
+
- Copy the generated API key and keep it secure; it will only be shown once.
|
26
|
+
|
27
|
+
<Image
|
28
|
+
alt={'Open the creation window'}
|
29
|
+
inStep
|
30
|
+
src={
|
31
|
+
'https://github.com/user-attachments/assets/a2203b3a-1657-485a-a060-b018e7b2faaa'
|
32
|
+
}
|
33
|
+
/>
|
34
|
+
|
35
|
+
<Image
|
36
|
+
alt={'Create API Key'}
|
37
|
+
inStep
|
38
|
+
src={
|
39
|
+
'https://github.com/user-attachments/assets/a216e326-6a51-4f3a-b8c1-23bb995ddac2'
|
40
|
+
}
|
41
|
+
/>
|
42
|
+
|
43
|
+
<Image
|
44
|
+
alt={'Retrieve API Key'}
|
45
|
+
inStep
|
46
|
+
src={
|
47
|
+
'https://github.com/user-attachments/assets/faee998d-4349-4c17-a5c4-07a7ff65f18e'
|
48
|
+
}
|
49
|
+
/>
|
50
|
+
|
51
|
+
### Step 2: Configure Fal in LobeChat
|
52
|
+
|
53
|
+
- Visit the `Settings` page in LobeChat.
|
54
|
+
- Under **AI Service Provider**, locate the **Fal** configuration section.
|
55
|
+
|
56
|
+
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/7566f679-f935-4a5b-9c98-a8d99d9c7994'} />
|
57
|
+
|
58
|
+
- Paste the API key you obtained.
|
59
|
+
- Choose a Fal model (e.g. `fal-ai/flux-pro`, `fal-ai/kling-video`, `fal-ai/hidream-i1-fast`) for image or video generation.
|
60
|
+
|
61
|
+
<Image alt={'Select Fal model for media generation'} inStep src={'https://github.com/user-attachments/assets/817167ff-4723-4f84-8528-c779c5c3a118'} />
|
62
|
+
|
63
|
+
<Callout type={'warning'}>
|
64
|
+
During usage, you may incur charges according to Fal's pricing policy. Please review Fal's
|
65
|
+
official pricing before heavy usage.
|
66
|
+
</Callout>
|
67
|
+
</Steps>
|
68
|
+
|
69
|
+
You can now use Fal's advanced image and video generation models directly within LobeChat to create stunning visual content.
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
title: 在 LobeChat 中使用 Fal API Key
|
3
|
+
description: >-
|
4
|
+
学习如何在 LobeChat 中配置和使用 Fal API Key,使用 FLUX、Kling 等尖端模型进行 AI 图像和视频生成。
|
5
|
+
|
6
|
+
tags:
|
7
|
+
- Fal
|
8
|
+
- 图像生成
|
9
|
+
- 视频生成
|
10
|
+
- API Key
|
11
|
+
- Web UI
|
12
|
+
---
|
13
|
+
|
14
|
+
# 在 LobeChat 中使用 Fal
|
15
|
+
|
16
|
+
<Image alt={'在 LobeChat 中使用 Fal'} cover src={'https://github.com/user-attachments/assets/febb2ffb-8fe8-4f88-b8c9-8fa0985a2352'} />
|
17
|
+
|
18
|
+
[Fal.ai](https://fal.ai/) 是一个专门从事 AI 媒体生成的快速推理平台,提供包括 FLUX、Kling、HiDream 等在内的最先进图像和视频生成模型。本文将指导你如何在 LobeChat 中使用 Fal:
|
19
|
+
|
20
|
+
<Steps>
|
21
|
+
### 步骤一:获取 Fal API Key
|
22
|
+
|
23
|
+
- 注册 [Fal.ai](https://fal.ai/) 账户;
|
24
|
+
- 前往 [API Keys 控制台](https://fal.ai/dashboard/keys),点击 **Add key** 创建新的 API 密钥;
|
25
|
+
- 复制生成的 API Key 并妥善保存,它只会显示一次。
|
26
|
+
|
27
|
+
<Image
|
28
|
+
alt={'打开创建窗口'}
|
29
|
+
inStep
|
30
|
+
src={
|
31
|
+
'https://github.com/user-attachments/assets/a2203b3a-1657-485a-a060-b018e7b2faaa'
|
32
|
+
}
|
33
|
+
/>
|
34
|
+
|
35
|
+
<Image
|
36
|
+
alt={'创建 API Key'}
|
37
|
+
inStep
|
38
|
+
src={
|
39
|
+
'https://github.com/user-attachments/assets/a216e326-6a51-4f3a-b8c1-23bb995ddac2'
|
40
|
+
}
|
41
|
+
/>
|
42
|
+
|
43
|
+
<Image
|
44
|
+
alt={'获取 API Key'}
|
45
|
+
inStep
|
46
|
+
src={
|
47
|
+
'https://github.com/user-attachments/assets/faee998d-4349-4c17-a5c4-07a7ff65f18e'
|
48
|
+
}
|
49
|
+
/>
|
50
|
+
|
51
|
+
### 步骤二:在 LobeChat 中配置 Fal
|
52
|
+
|
53
|
+
- 访问 LobeChat 的 `设置` 页面;
|
54
|
+
- 在 `AI服务商` 下找到 `Fal` 的设置项;
|
55
|
+
|
56
|
+
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/7566f679-f935-4a5b-9c98-a8d99d9c7994'} />
|
57
|
+
|
58
|
+
- 粘贴获取到的 API Key;
|
59
|
+
- 选择一个 Fal 模型(如 `fal-ai/flux-pro`、`fal-ai/kling-video`、`fal-ai/hidream-i1-fast`)用于图像或视频生成。
|
60
|
+
|
61
|
+
<Image alt={'选择 Fal 模型进行媒体生成'} inStep src={'https://github.com/user-attachments/assets/817167ff-4723-4f84-8528-c779c5c3a118'} />
|
62
|
+
|
63
|
+
<Callout type={'warning'}>
|
64
|
+
在使用过程中,你可能需要向 Fal 支付相应费用,请在大量调用前查阅 Fal 的官方计费政策。
|
65
|
+
</Callout>
|
66
|
+
</Steps>
|
67
|
+
|
68
|
+
至此,你已经可以在 LobeChat 中使用 Fal 提供的先进图像和视频生成模型来创作精美的视觉内容了。
|
@@ -39,7 +39,7 @@ This article will guide you on how to use Fireworks AI in LobeChat.
|
|
39
39
|
### Step 2: Configure Fireworks AI in LobeChat
|
40
40
|
|
41
41
|
- Access the `Settings` interface in LobeChat
|
42
|
-
- Under `
|
42
|
+
- Under `AI Service Provider`, locate the settings for `Fireworks AI`
|
43
43
|
|
44
44
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/12c1957d-f050-4235-95da-d55ddedfa6c9'} />
|
45
45
|
|
@@ -36,7 +36,7 @@ tags:
|
|
36
36
|
### 步骤二:在 LobeChat 中配置 Fireworks AI
|
37
37
|
|
38
38
|
- 访问 LobeChat 的`设置`界面
|
39
|
-
-
|
39
|
+
- 在`AI 服务商`下找到 `Fireworks AI` 的设置项
|
40
40
|
|
41
41
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/12c1957d-f050-4235-95da-d55ddedfa6c9'} />
|
42
42
|
|
@@ -40,7 +40,7 @@ This article will guide you on how to use Gitee AI in LobeChat.
|
|
40
40
|
### Step 2: Configure Gitee AI in LobeChat
|
41
41
|
|
42
42
|
- Access the `Settings` page in LobeChat
|
43
|
-
- Under `
|
43
|
+
- Under `AI Service Provider`, find the settings for `Gitee AI`
|
44
44
|
|
45
45
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/eaa2a1fb-41ad-473d-ac10-a39c05886425'} />
|
46
46
|
|
@@ -37,7 +37,7 @@ tags:
|
|
37
37
|
### 步骤二:在 LobeChat 中配置 Gitee AI
|
38
38
|
|
39
39
|
- 访问 LobeChat 的`设置`界面
|
40
|
-
-
|
40
|
+
- 在`AI 服务商`下找到 `Gitee AI` 的设置项
|
41
41
|
|
42
42
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/user-attachments/assets/eaa2a1fb-41ad-473d-ac10-a39c05886425'} />
|
43
43
|
|
@@ -54,7 +54,7 @@ Currently, the usage of the Playground and free API is subject to limits on the
|
|
54
54
|
### Step 2: Configure GitHub Models in LobeChat
|
55
55
|
|
56
56
|
- Navigate to the `Settings` interface in LobeChat.
|
57
|
-
- Under `
|
57
|
+
- Under `AI Service Provider`, find the GitHub settings.
|
58
58
|
|
59
59
|
<Image alt={'Entering Access Token'} inStep src={'https://github.com/user-attachments/assets/a00f06cc-da7c-41e8-a4d5-d4b675a22673'} />
|
60
60
|
|
@@ -53,7 +53,7 @@ tags:
|
|
53
53
|
### 步骤二:在 LobeChat 中配置 GitHub Models
|
54
54
|
|
55
55
|
- 访问 LobeChat 的`设置`界面
|
56
|
-
-
|
56
|
+
- 在`AI 服务商`下找到 `GitHub` 的设置项
|
57
57
|
|
58
58
|
<Image alt={'填入访问令牌'} inStep src={'https://github.com/user-attachments/assets/a00f06cc-da7c-41e8-a4d5-d4b675a22673'} />
|
59
59
|
|
@@ -37,7 +37,7 @@ This document will guide you on how to use Google Gemini in LobeChat:
|
|
37
37
|
### Step 2: Configure OpenAI in LobeChat
|
38
38
|
|
39
39
|
- Go to the `Settings` interface in LobeChat
|
40
|
-
- Find the setting for `Google Gemini` under `
|
40
|
+
- Find the setting for `Google Gemini` under `AI Service Provider`
|
41
41
|
|
42
42
|
<Image alt={'Enter Google Gemini API Key in LobeChat'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/11442ce4-a615-49c4-937a-ca2ae93dd27c'} />
|
43
43
|
|
@@ -35,7 +35,7 @@ Gemini AI 是由 Google AI 创建的一组大型语言模型(LLM),以其
|
|
35
35
|
### 步骤二:在 LobeChat 中配置 OpenAI
|
36
36
|
|
37
37
|
- 访问 LobeChat 的`设置`界面
|
38
|
-
-
|
38
|
+
- 在`AI 服务商`下找到`Google Gemini`的设置项
|
39
39
|
|
40
40
|
<Image alt={'LobeChat 中填写 Google Gemini API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/11442ce4-a615-49c4-937a-ca2ae93dd27c'} />
|
41
41
|
|
@@ -45,7 +45,7 @@ This document will guide you on how to use Groq in LobeChat:
|
|
45
45
|
|
46
46
|
### Configure Groq in LobeChat
|
47
47
|
|
48
|
-
You can find the Groq configuration option in `Settings` -> `
|
48
|
+
You can find the Groq configuration option in `Settings` -> `AI Service Provider`, where you can input the API Key you just obtained.
|
49
49
|
|
50
50
|
<Image alt={'Groq service provider settings'} height={274} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/88948a3a-6681-4a8d-9734-a464e09e4957'} />
|
51
51
|
</Steps>
|
@@ -40,7 +40,7 @@ Groq 的 [LPU 推理引擎](https://wow.groq.com/news_press/groq-lpu-inference-e
|
|
40
40
|
|
41
41
|
### 在 LobeChat 中配置 Groq
|
42
42
|
|
43
|
-
你可以在 `设置` ->
|
43
|
+
你可以在 `设置` -> `AI 服务商` 中找到 Groq 的配置选项,将刚才获取的 API Key 填入。
|
44
44
|
|
45
45
|
<Image alt={'Groq 服务商设置'} height={274} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/88948a3a-6681-4a8d-9734-a464e09e4957'} />
|
46
46
|
</Steps>
|
@@ -34,7 +34,7 @@ This article will guide you on how to use Tencent Hunyuan in LobeChat.
|
|
34
34
|
### Step 2: Configure Tencent Hunyuan in LobeChat
|
35
35
|
|
36
36
|
- Go to the `Settings` page in LobeChat
|
37
|
-
- Find the `Tencent Hunyuan` settings under `
|
37
|
+
- Find the `Tencent Hunyuan` settings under `AI Service Provider`
|
38
38
|
|
39
39
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/796c94af-9bad-4e3c-b1c7-dbb17c215c56'} />
|
40
40
|
|
@@ -35,7 +35,7 @@ This article will guide you on how to use InternLM in LobeChat.
|
|
35
35
|
### Step 2: Configure InternLM in LobeChat
|
36
36
|
|
37
37
|
- Go to the `Settings` interface in LobeChat
|
38
|
-
- Find the settings option for `InternLM` under `
|
38
|
+
- Find the settings option for `InternLM` under `AI Service Provider`
|
39
39
|
|
40
40
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/8ec7656e-1e3d-41e0-95a0-f6883135c2fc'} />
|
41
41
|
|
@@ -35,7 +35,7 @@ This document will guide you on how to use Jina AI in LobeChat:
|
|
35
35
|
### Step 2: Configure Jina AI in LobeChat
|
36
36
|
|
37
37
|
- Visit LobeChat's `Application Settings` interface.
|
38
|
-
- Find the `Jina AI` setting under `
|
38
|
+
- Find the `Jina AI` setting under `AI Service Provider`.
|
39
39
|
|
40
40
|
<Image alt={'Fill in Jina AI API Key'} inStep src={'https://github.com/user-attachments/assets/1077bee5-b379-4063-b7bd-23b98ec146e2'} />
|
41
41
|
|
@@ -34,7 +34,7 @@ tags:
|
|
34
34
|
### 步骤二:在 LobeChat 中配置 Jina AI
|
35
35
|
|
36
36
|
- 访问 LobeChat 的 `应用设置`界面
|
37
|
-
- 在
|
37
|
+
- 在 `AI 服务商` 下找到 `Jina AI` 的设置项
|
38
38
|
|
39
39
|
<Image alt={'填写 Jina AI API 密钥'} inStep src={'https://github.com/user-attachments/assets/1077bee5-b379-4063-b7bd-23b98ec146e2'} />
|
40
40
|
|
@@ -42,7 +42,7 @@ This document will guide you on how to use Minimax in LobeChat:
|
|
42
42
|
### Step 2: Configure MiniMax in LobeChat
|
43
43
|
|
44
44
|
- Go to the `Settings` interface of LobeChat
|
45
|
-
- Find the setting for `MiniMax` under `
|
45
|
+
- Find the setting for `MiniMax` under `AI Service Provider`
|
46
46
|
|
47
47
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/b839e04e-0cef-46a3-bb84-0484a3f51c69'} />
|
48
48
|
|
@@ -41,7 +41,7 @@ tags:
|
|
41
41
|
### 步骤二:在 LobeChat 中配置 MiniMax
|
42
42
|
|
43
43
|
- 访问 LobeChat 的`设置`界面
|
44
|
-
-
|
44
|
+
- 在`AI 服务商`下找到`MiniMax`的设置项
|
45
45
|
|
46
46
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/b839e04e-0cef-46a3-bb84-0484a3f51c69'} />
|
47
47
|
|
@@ -26,7 +26,7 @@ The Mistral AI API is now available for everyone to use. This document will guid
|
|
26
26
|
### Step 2: Configure Mistral AI in LobeChat
|
27
27
|
|
28
28
|
- Go to the `Settings` interface in LobeChat
|
29
|
-
- Find the setting for `Mistral AI` under `
|
29
|
+
- Find the setting for `Mistral AI` under `AI Service Provider`
|
30
30
|
|
31
31
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ba8e688a-e0c1-4567-9013-94205f83fc60'} />
|
32
32
|
|
@@ -24,7 +24,7 @@ Mistral AI API 现在可供所有人使用,本文档将指导你如何在 Lobe
|
|
24
24
|
### 步骤二:在 LobeChat 中配置 Mistral AI
|
25
25
|
|
26
26
|
- 访问 LobeChat 的`设置`界面
|
27
|
-
-
|
27
|
+
- 在`AI 服务商`下找到`Mistral AI`的设置项
|
28
28
|
|
29
29
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/ba8e688a-e0c1-4567-9013-94205f83fc60'} />
|
30
30
|
|
@@ -25,7 +25,7 @@ The Moonshot AI API is now available for everyone to use. This document will gui
|
|
25
25
|
### Step 2: Configure Moonshot AI in LobeChat
|
26
26
|
|
27
27
|
- Visit the `Settings` interface in LobeChat
|
28
|
-
- Find the setting for `Moonshot AI` under `
|
28
|
+
- Find the setting for `Moonshot AI` under `AI Service Provider`
|
29
29
|
|
30
30
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/e1b5f84f-015e-437c-98cc-a3431fa3b077'} />
|
31
31
|
|
@@ -23,7 +23,7 @@ Moonshot AI API 现在可供所有人使用,本文档将指导你如何在 Lob
|
|
23
23
|
### 步骤二:在 LobeChat 中配置 Moonshot AI
|
24
24
|
|
25
25
|
- 访问 LobeChat 的`设置`界面
|
26
|
-
-
|
26
|
+
- 在`AI 服务商`下找到`Moonshot AI`的设置项
|
27
27
|
|
28
28
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/e1b5f84f-015e-437c-98cc-a3431fa3b077'} />
|
29
29
|
|
@@ -38,7 +38,7 @@ This document will guide you on how to integrate Novita AI in LobeChat:
|
|
38
38
|
### Step 3: Configure Novita AI in LobeChat
|
39
39
|
|
40
40
|
- Visit the `Settings` interface in LobeChat
|
41
|
-
- Find the setting for `novita.ai` under `
|
41
|
+
- Find the setting for `novita.ai` under `AI Service Provider`
|
42
42
|
|
43
43
|
<Image alt={'Enter Novita AI API key in LobeChat'} inStep src={'https://github.com/user-attachments/assets/00c02637-873e-4e7e-9dc3-a95085b16dd7'} />
|
44
44
|
|
@@ -38,7 +38,7 @@ tags:
|
|
38
38
|
### 步骤三:在 LobeChat 中配置 Novita AI
|
39
39
|
|
40
40
|
- 访问 LobeChat 的 `设置` 界面
|
41
|
-
- 在
|
41
|
+
- 在 `AI 服务商` 下找到 `novita.ai` 的设置项
|
42
42
|
- 打开 novita.ai 并填入获得的 API 密钥
|
43
43
|
|
44
44
|
<Image alt={'在 LobeChat 中输入 Novita AI API 密钥'} inStep src={'https://github.com/user-attachments/assets/00c02637-873e-4e7e-9dc3-a95085b16dd7'} />
|
@@ -163,7 +163,7 @@ ollama pull llama3
|
|
163
163
|
|
164
164
|
## Custom Configuration
|
165
165
|
|
166
|
-
You can find Ollama's configuration options in `Settings` -> `
|
166
|
+
You can find Ollama's configuration options in `Settings` -> `AI Service Provider`, where you can configure Ollama's proxy, model names, etc.
|
167
167
|
|
168
168
|
<Image alt={'Ollama Provider Settings'} height={274} src={'https://github.com/lobehub/lobe-chat/assets/28616219/54b3696b-5b13-4761-8c1b-1e664867b2dd'} />
|
169
169
|
|
@@ -161,7 +161,7 @@ ollama pull llama3
|
|
161
161
|
|
162
162
|
## 自定义配置
|
163
163
|
|
164
|
-
你可以在 `设置` ->
|
164
|
+
你可以在 `设置` -> `AI 服务商` 中找到 Ollama 的配置选项,你可以在这里配置 Ollama 的代理、模型名称等。
|
165
165
|
|
166
166
|
<Image alt={'Ollama 服务商设置'} height={274} src={'https://github.com/lobehub/lobe-chat/assets/28616219/54b3696b-5b13-4761-8c1b-1e664867b2dd'} />
|
167
167
|
|
@@ -31,7 +31,7 @@ This document will guide you on how to use [OpenAI](https://openai.com/) in Lobe
|
|
31
31
|
alt={'Open the creation window'}
|
32
32
|
inStep
|
33
33
|
src={
|
34
|
-
|
34
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296253192-ff2193dd-f125-4e58-82e8-91bc376c0d68.png'
|
35
35
|
}
|
36
36
|
/>
|
37
37
|
|
@@ -41,7 +41,7 @@ This document will guide you on how to use [OpenAI](https://openai.com/) in Lobe
|
|
41
41
|
alt={'Create API Key'}
|
42
42
|
inStep
|
43
43
|
src={
|
44
|
-
|
44
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296254170-803bacf0-4471-4171-ae79-0eab08d621d1.png'
|
45
45
|
}
|
46
46
|
/>
|
47
47
|
|
@@ -51,7 +51,7 @@ This document will guide you on how to use [OpenAI](https://openai.com/) in Lobe
|
|
51
51
|
alt={'Retrieve API Key'}
|
52
52
|
inStep
|
53
53
|
src={
|
54
|
-
|
54
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296255167-f2745f2b-f083-4ba8-bc78-9b558e0002de.png'
|
55
55
|
}
|
56
56
|
/>
|
57
57
|
|
@@ -62,7 +62,7 @@ This document will guide you on how to use [OpenAI](https://openai.com/) in Lobe
|
|
62
62
|
### Step 2: Configure OpenAI in LobeChat
|
63
63
|
|
64
64
|
- Visit the `Settings` page in LobeChat
|
65
|
-
- Find the setting for `OpenAI` under `
|
65
|
+
- Find the setting for `OpenAI` under `AI Service Provider`
|
66
66
|
|
67
67
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/3f31bc33-509f-4ad2-ba81-280c2a6ec5fa'} />
|
68
68
|
|
@@ -28,7 +28,7 @@ tags:
|
|
28
28
|
alt={'打开创建窗口'}
|
29
29
|
inStep
|
30
30
|
src={
|
31
|
-
|
31
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296253192-ff2193dd-f125-4e58-82e8-91bc376c0d68.png'
|
32
32
|
}
|
33
33
|
/>
|
34
34
|
|
@@ -38,7 +38,7 @@ tags:
|
|
38
38
|
alt={'创建 API Key'}
|
39
39
|
inStep
|
40
40
|
src={
|
41
|
-
|
41
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296254170-803bacf0-4471-4171-ae79-0eab08d621d1.png'
|
42
42
|
}
|
43
43
|
/>
|
44
44
|
|
@@ -48,7 +48,7 @@ tags:
|
|
48
48
|
alt={'获取 API Key'}
|
49
49
|
inStep
|
50
50
|
src={
|
51
|
-
|
51
|
+
'https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296255167-f2745f2b-f083-4ba8-bc78-9b558e0002de.png'
|
52
52
|
}
|
53
53
|
/>
|
54
54
|
|
@@ -57,7 +57,7 @@ tags:
|
|
57
57
|
### 步骤二:在 LobeChat 中配置 OpenAI
|
58
58
|
|
59
59
|
- 访问 LobeChat 的`设置`界面
|
60
|
-
-
|
60
|
+
- 在`AI 服务商`下找到`OpenAI`的设置项
|
61
61
|
|
62
62
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/3f31bc33-509f-4ad2-ba81-280c2a6ec5fa'} />
|
63
63
|
|
@@ -55,7 +55,7 @@ This document will guide you on how to use OpenRouter in LobeChat:
|
|
55
55
|
### Step 4: Configure OpenRouter in LobeChat
|
56
56
|
|
57
57
|
- Visit the `Settings` interface in LobeChat
|
58
|
-
- Find the setting for `OpenRouter` under `
|
58
|
+
- Find the setting for `OpenRouter` under `AI Service Provider`
|
59
59
|
- Enable OpenRouter and enter the API key you obtained
|
60
60
|
|
61
61
|
<Image alt={'Configure OpenRouter in LobeChat'} height={518} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/5c3898ab-23d7-44c2-bbd9-b255e25e400c'} />
|
@@ -51,7 +51,7 @@ tags:
|
|
51
51
|
### 步骤四:在 LobeChat 中配置 OpenRouter
|
52
52
|
|
53
53
|
- 访问 LobeChat 的 `设置` 界面
|
54
|
-
- 在
|
54
|
+
- 在 `AI 服务商` 下找到 `OpenRouter` 的设置项
|
55
55
|
- 打开 OpenRouter 并填入获得的 API 密钥
|
56
56
|
|
57
57
|
<Image alt={'在 LobeChat 中配置 OpenRouter'} height={518} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/5c3898ab-23d7-44c2-bbd9-b255e25e400c'} />
|
@@ -26,7 +26,7 @@ The Perplexity AI API is now available for everyone to use. This document will g
|
|
26
26
|
### Step 2: Configure Perplexity AI in LobeChat
|
27
27
|
|
28
28
|
- Go to the `Settings` interface in LobeChat
|
29
|
-
- Find the setting for `Perplexity AI` under `
|
29
|
+
- Find the setting for `Perplexity AI` under `AI Service Provider`
|
30
30
|
|
31
31
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'} />
|
32
32
|
|
@@ -24,7 +24,7 @@ Perplexity AI API 现在可供所有人使用,本文档将指导你如何在 L
|
|
24
24
|
### 步骤二:在 LobeChat 中配置 Perplexity AI
|
25
25
|
|
26
26
|
- 访问 LobeChat 的`设置`界面
|
27
|
-
-
|
27
|
+
- 在`AI 服务商`下找到`Perplexity AI`的设置项
|
28
28
|
|
29
29
|
<Image alt={'填入 API 密钥'} inStep src={'https://github.com/lobehub/lobe-chat/assets/17870709/51f8f8f6-5d8a-4cf0-a2e5-d96c69fe05b8'} />
|
30
30
|
|
@@ -38,7 +38,7 @@ This document will guide you on how to integrate PPIO in LobeChat:
|
|
38
38
|
### Step 3: Configure PPIO in LobeChat
|
39
39
|
|
40
40
|
- Visit the `Settings` interface in LobeChat
|
41
|
-
- Find the setting for `PPIO` under `
|
41
|
+
- Find the setting for `PPIO` under `AI Service Provider`
|
42
42
|
|
43
43
|
<Image alt={'Enter PPIO API key in LobeChat'} inStep src={'https://github.com/user-attachments/assets/9b70b292-6c52-4715-b844-ff5df78d16b9'} />
|
44
44
|
|
@@ -38,7 +38,7 @@ tags:
|
|
38
38
|
### 步骤三:在 LobeChat 中配置 PPIO 派欧云
|
39
39
|
|
40
40
|
- 访问 LobeChat 的 `设置` 界面
|
41
|
-
- 在
|
41
|
+
- 在 `AI 服务商` 下找到 `PPIO` 的设置项
|
42
42
|
- 打开 PPIO 并填入获得的 API 密钥
|
43
43
|
|
44
44
|
<Image alt={'在 LobeChat 中输入 PPIO API 密钥'} inStep src={'https://github.com/user-attachments/assets/9b70b292-6c52-4715-b844-ff5df78d16b9'} />
|
@@ -41,7 +41,7 @@ This document will guide you on how to use Qiniu's AI Models in LobeChat:
|
|
41
41
|
### Step 2: Configure Qiniu's AI Model Service in LobeChat
|
42
42
|
|
43
43
|
- Visit the `Settings` interface in LobeChat
|
44
|
-
- Find the setting for `Qiniu` under `
|
44
|
+
- Find the setting for `Qiniu` under `AI Service Provider`
|
45
45
|
|
46
46
|
<Image alt={'Enter API key'} inStep src={'https://static.sufy.com/lobehub/439047682-40bd5ec0-c2fe-4397-9ae1-f6d0b9e55287.png'} />
|
47
47
|
|
@@ -46,7 +46,7 @@ This document will guide you on how to use Tongyi Qianwen in LobeChat:
|
|
46
46
|
### Step 3: Configure Tongyi Qianwen in LobeChat
|
47
47
|
|
48
48
|
- Visit the `Settings` interface in LobeChat.
|
49
|
-
- Find the setting for `Tongyi Qianwen` under `
|
49
|
+
- Find the setting for `Tongyi Qianwen` under `AI Service Provider`.
|
50
50
|
|
51
51
|
<Image alt={'Enter API key'} inStep src={'https://github.com/lobehub/lobe-chat/assets/34400653/c2e6a58b-95eb-4f40-8add-83f4316a719b'} />
|
52
52
|
|
@@ -34,7 +34,7 @@ This document will guide you on how to use SambaNova in LobeChat:
|
|
34
34
|
### Step 2: Configure SambaNova in LobeChat
|
35
35
|
|
36
36
|
- Access the `Application Settings` interface of LobeChat
|
37
|
-
- Find the `SambaNova` setting item under `
|
37
|
+
- Find the `SambaNova` setting item under `AI Service Provider`
|
38
38
|
|
39
39
|
<Image alt={'Fill in the SambaNova API Key'} inStep src={'https://github.com/user-attachments/assets/328e9755-8da9-4849-8569-e099924822fe'} />
|
40
40
|
|
@@ -33,7 +33,7 @@ tags:
|
|
33
33
|
### 步骤二:在 LobeChat 中配置 SambaNova
|
34
34
|
|
35
35
|
- 访问 LobeChat 的 `应用设置`界面
|
36
|
-
- 在
|
36
|
+
- 在 `AI 服务商` 下找到 `SambaNova` 的设置项
|
37
37
|
|
38
38
|
<Image alt={'填写 SambaNova API 密钥'} inStep src={'https://github.com/user-attachments/assets/328e9755-8da9-4849-8569-e099924822fe'} />
|
39
39
|
|
@@ -40,7 +40,7 @@ This article will guide you on how to use SenseNova in LobeChat.
|
|
40
40
|
### Step 2: Configure SenseNova in LobeChat
|
41
41
|
|
42
42
|
- Access the `Settings` interface on LobeChat.
|
43
|
-
- Find the setting for `SenseNova` under `
|
43
|
+
- Find the setting for `SenseNova` under `AI Service Provider`.
|
44
44
|
|
45
45
|
<Image alt={'Enter Access Key'} inStep src={'https://github.com/user-attachments/assets/0c73c453-6ee3-4f90-bc5d-119c52c38fef'} />
|
46
46
|
|
@@ -30,7 +30,7 @@ This article will guide you on how to use SiliconCloud in LobeChat.
|
|
30
30
|
### Step 2: Configure SiliconCloud in LobeChat
|
31
31
|
|
32
32
|
- Go to the `Settings` page in LobeChat
|
33
|
-
- Under `
|
33
|
+
- Under `AI Service Provider`, find the setting for `SiliconFlow`
|
34
34
|
|
35
35
|
<Image alt={'Enter API Key'} inStep src={'https://github.com/user-attachments/assets/4c792f62-5203-4f13-8f23-df228f70d67f'} />
|
36
36
|
|