📌 📄 内容摘要:
hahaho (@hohaha) 在 cf 部署 workers ai 中发帖
cf workers ai 提供了60多个开源模型 以下是通过worker部署
没有账号的首先注册账号
有账号直接登录
[image]
[image]
[image]
[image]
删除原来所有的代码
粘贴以下代码
const API_KEY='linuxdo';
export default {
async fetch(request, env) {
const tasks = [];
let url = new URL(request.url);
const path = url.pathname;
const authHeader = request.headers.get("authorization") || request.headers.get("x-api-key");
const apiKey = au...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/354177/1 ─────────────────────────────
📢 来源:LINUX DO