Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { AIChatPlugin, AIPlugin } from "@platejs/ai/react"import { createPlateEditor, Plate, PlateContent } from "platejs/react"import { AILeaf } from "@/components/ui/ai-node"const editor = createPlateEditor({ plugins: [AIPlugin, AIChatPlugin], value: [ { type: "p", children: [ { text: "Revenue grew steadily across all regions. " }, { text: "Here is a short summary of your quarterly report.", ai: true, }, ], }, ], components: { ai: AILeaf, },})export default function AINodeDemo() { return ( <div className="w-full max-w-md text-sm leading-relaxed"> <Plate editor={editor}> <PlateContent readOnly className="outline-none" /> </Plate> </div> )}