Files
lobe-chat/docs/usage/providers/wenxin.mdx
T
CanisMinor 19da5e419d 🔧 chore: Add changelog workflow (#4662)
* 🔧 chore: Add changelog workflow

* 🔧 chore: Update schema

* 🔧 chore: Update schema

* 🔧 chore: Update changelog workflow

* 🔧 chore: Update changelog json

* 🔧 chore: Update changelog

* 📝 docs: Update Changelog
2024-11-26 14:48:06 +08:00

76 lines
2.4 KiB
Plaintext

---
title: Using Wenxin Qianfan in LobeChat
description: >-
Learn how to integrate and utilize Wenxin Qianfan's language model APIs in
LobeChat.
tags:
- LobeChat
- 百度
- 文心千帆
- API密钥
- Web UI
---
# Using Wenxin Qianfan in LobeChat
<Image
cover
src={'https://github.com/user-attachments/assets/e43dacf6-313e-499c-8888-f1065c53e424'}
/>
[Wenxin Qianfan](https://qianfan.cloud.baidu.com/) is an artificial intelligence large language model platform launched by Baidu, supporting a variety of application scenarios, including literary creation, commercial copywriting, and mathematical logic reasoning. The platform features deep semantic understanding and generation capabilities across modalities and languages, and it is widely utilized in fields such as search Q&A, content creation, and smart office applications.
This article will guide you on how to use Wenxin Qianfan in LobeChat.
<Steps>
### Step 1: Obtain the Wenxin Qianfan API Key
- Register and log in to the [Baidu Intelligent Cloud Console](https://console.bce.baidu.com/)
- Navigate to `Baidu Intelligent Cloud Qianfan ModelBuilder`
- Choose `Application Access` from the left-side menu
- Create an application
<Image
alt={'Create Application'}
inStep
src={'https://github.com/user-attachments/assets/927b1040-e23f-4919-92e2-80a400db8327'}
/>
- Enter the `Security Authentication` -> `Access Key` management page from the user account menu
- Copy the `Access Key` and `Secret Key`, and store them safely
<Image
alt={'Save Keys'}
inStep
src={'https://github.com/user-attachments/assets/bb9dadd3-7e9c-45fd-8c56-553ab7287453'}
/>
### Step 2: Configure Wenxin Qianfan in LobeChat
- Go to the `Settings` interface in LobeChat
- Locate the settings for `Wenxin Qianfan` under `Language Model`
<Image
alt={'Enter API Keys'}
inStep
src={'https://github.com/user-attachments/assets/e3995de7-38d9-489b-80a2-434477018469'}
/>
- Enter the obtained `Access Key` and `Secret Key`
- Select a Wenxin Qianfan model for your AI assistant to start interacting
<Image
alt={'Select Wenxin Qianfan Model and Start Chat'}
inStep
src={'https://github.com/user-attachments/assets/b6e6a3eb-13c6-46f0-9c7c-69a20deae30f'}
/>
<Callout type={'warning'}>
During usage, you may need to pay the API service provider. Please refer to Wenxin Qianfan's
relevant fee policy.
</Callout>
</Steps>
You can now use the models provided by Wenxin Qianfan for conversations in LobeChat.