diff --git a/docs/usage/providers/cloudflare.mdx b/docs/usage/providers/cloudflare.mdx new file mode 100644 index 000000000000..148309f8b5a9 --- /dev/null +++ b/docs/usage/providers/cloudflare.mdx @@ -0,0 +1,82 @@ +--- +title: Using Cloudflare Workers AI in LobeChat +description: Learn how to integrate and utilize Cloudflare Workers AI Models in LobeChat. +tags: + - LobeChat + - Cloudflare + - Workers AI + - Provider + - API Key + - Web UI +--- + +# Using Cloudflare Workers AI in LobeChat + + + +[Cloudflare Workers AI](https://www.cloudflare.com/developer-platform/products/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](https://www.cloudflare.com/) and sign up for an account. +- Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/). +- In the left-hand menu, locate the `AI` > `Workers AI` option. + +{'Cloudflare + +- In the `Using REST API` section, click the `Create Workers AI API Token` button. +- In the drawer dialog, copy and save your `API token`. +- Also, copy and save your `Account ID`. + +{'Cloudflare + + + +- 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 the `Cloudflare` settings. + +{'Input + +- Enter the `API Token` you obtained. +- Input your `Account ID`. +- Choose a Cloudflare Workers AI model for your AI assistant to start the conversation. + +{'Choose + + + 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. diff --git a/docs/usage/providers/cloudflare.zh-CN.mdx b/docs/usage/providers/cloudflare.zh-CN.mdx new file mode 100644 index 000000000000..8d8c6467e3d8 --- /dev/null +++ b/docs/usage/providers/cloudflare.zh-CN.mdx @@ -0,0 +1,79 @@ +--- +title: 在 LobeChat 中使用 Cloudflare Workers AI +description: 学习如何在 LobeChat 中配置和使用 Cloudflare Workers AI 的 API Key,以便开始对话和交互。 +tags: + - LobeChat + - Cloudflare + - Workers AI + - 供应商 + - API密钥 + - Web UI +--- + +# 在 LobeChat 中使用 Cloudflare Workers AI + + + +[Cloudflare Workers AI](https://www.cloudflare.com/developer-platform/products/workers-ai/) 是一种将人工智能能力集成到 Cloudflare Workers 无服务器计算平台的服务。其核心功能在于通过 Cloudflare 的全球网络提供快速、可扩展的计算能力,降低运维开销。 + +本文档将指导你如何在 LobeChat 中使用 Cloudflare Workers AI: + + + +### 步骤一: 获取 Cloudflare Workers AI 的 API Key + +- 访问 [Cloudflare 官网](https://www.cloudflare.com/) 并注册一个账号。 +- 登录 [Cloudflare 控制台](https://dash.cloudflare.com/). +- 在左侧的菜单中找到 `AI` > `Workers AI` 选项。 + +{'Cloudflare + +- 在 `使用 REST API` 中点击 `创建 Workers AI API 令牌` 按钮 +- 在弹出的侧边栏中复制并保存你的 `API 令牌` +- 同时也复制并保存你的 `账户ID` + +{'Cloudflare + + + - 请安全地存储 API 令牌,因为它只会出现一次。如果您意外丢失它,您将需要创建一个新令牌。 + + +### 步骤二: 在 LobeChat 中配置 Cloudflare Workers AI + +- 访问 LobeChat 的`设置`界面 +- 在`语言模型`下找到 `Cloudflare` 的设置项 + +{'填入访问令牌'} + +- 填入获得的 `API 令牌` +- 填入你的`账户ID` +- 为你的 AI 助手选择一个 Cloudflare Workers AI 的模型即可开始对话 + +{'选择 + + + 在使用过程中你可能需要向 API 服务提供商付费,请参考 Cloudflare 的相关费用政策。 + + + + +至此你已经可以在 LobeChat 中使用 Cloudflare Workers AI 提供的模型进行对话了。