AI Comment Moderation

適用於 EmDash 1.4 的沙箱外掛,使用 Cloudflare Workers AI 進行留言審核。

外掛

AI Comment Moderation

適用於 EmDash 1.4 的沙箱外掛,使用 Cloudflare Workers AI 進行留言審核。

  • 分類: AI 智慧
  • 狀態: 可用
  • 版本: 2.1.0
  • 價格: 未知
  • 來源: npm 套件
  • 安裝方式: npm 原生整合
  • 核實日期: 2026-11-09

適用於 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。

詳細資訊