AI Comment Moderation
適用於 EmDash 1.4 的沙箱外掛,使用 Cloudflare Workers AI 進行留言審核。
外掛
AI Comment Moderation
適用於 EmDash 1.4 的沙箱外掛,使用 Cloudflare Workers AI 進行留言審核。
適用於 EmDash 1.4 的沙箱外掛,使用 Cloudflare Workers AI 進行留言審核。
安裝
從 npm 安裝此套件:
npm install emdash-plugin-ai-comment-moderation
在 Astro 設定中註冊此外掛:
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import aiCommentModeration from "emdash-plugin-ai-comment-moderation";
export default defineConfig({
integrations: [
emdash({
sandboxed: [aiCommentModeration],
sandboxRunner: "@emdash-cms/sandbox-workerd/sandbox",
}),
],
});
此範例使用適用於 Node.js 的 workerd 執行器:請在網站中安裝 @emdash-cms/sandbox-workerd 與 workerd,或繼續使用網站現有的 Cloudflare 沙箱執行器。必須有可用的沙箱執行器。
2.0.0 版需要 EmDash ^1.4.0,不再支援 EmDash 0.9。
詳細資訊
- 最新版本: 2.1.0
- 授權條款: MIT
- 發布者: jimiryquai
- 需求: EmDash
^1.4.0 - 原始碼儲存庫: https://github.com/jimiryquai/emdash-plugin-ai-comment-moderation
- npm 套件: emdash-plugin-ai-comment-moderation