Cloudflare 中文文档
Workers AI
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Hugging Face Chat UI

Use Workers AI with Chat UI, an open-source chat interface offered by Hugging Face.

​​ Prerequisites

You will need the following:

​​ Setup

First, decide how to reference your Account ID and API token (either directly in your .env.local using the CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN variables or in the endpoint configuration).

Then, follow the rest of the setup instructions in the Chat UI GitHub repository.

When setting up your models, specify the cloudflare endpoint.

​​ Supported models

This template works with any text generation models that begin with the @hf parameter.