Using Cloudflare Workers AI in LobeChat
Cloudflare Workers AI is a service that integrates AI capabilities into the Cloudflare Workers serverless computing platform. Its core functionality lies in delivering fast, scalable computing power through Cloudflare's global network, thereby reducing operational overhead.
This document will guide you on how to use Cloudflare Workers AI in LobeChat:
Step 1: Obtain Your Cloudflare Workers AI API Key
- Visit the Cloudflare website and sign up for an account.
- Log in to the Cloudflare dashboard.
- In the left-hand menu, locate the
AI
>Workers AI
option.
- In the
Using REST API
section, click theCreate Workers AI API Token
button. - In the drawer dialog, copy and save your
API token
. - Also, copy and save your
Account ID
.
- Please store your API token securely, as it will only be displayed once. If you accidentally lose it, you will need to create a new token.
Step 2: Configure Cloudflare Workers AI in LobeChat
- Go to the
Settings
interface in LobeChat. - Under
Language Model
, find theCloudflare
settings.
- Enter the
API Token
you obtained. - Input your
Account ID
. - Choose a Cloudflare Workers AI model for your AI assistant to start the conversation.
You may incur charges while using the API service, please refer to Cloudflare's pricing policy for details.
At this point, you can start conversing with the model provided by Cloudflare Workers AI in LobeChat.