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 { AiPromptDiff, AiPromptDiffContent, AiPromptDiffCopyButton, AiPromptDiffHeader, AiPromptDiffViewToggle } from '@/components/elements/ai-prompt-diff'export default function PromptDiffDemo() { return ( <AiPromptDiff className='w-full max-w-lg' before='You are a helpful assistant.\nAnswer briefly.' after='You are a concise, helpful assistant.\nAnswer in Japanese.\nCite sources when possible.' > <AiPromptDiffHeader title='System prompt'> <AiPromptDiffViewToggle /> </AiPromptDiffHeader> <AiPromptDiffContent /> <div className='flex items-center justify-end gap-4 border-t border-border px-4 py-2'> <AiPromptDiffCopyButton variant='before' /> <AiPromptDiffCopyButton variant='after' /> </div> </AiPromptDiff> )}