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 { Context, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextInputUsage, ContextOutputUsage, ContextTrigger,} from "@/components/ai-elements/context"export default function ContextDemo() { return ( <div className="flex w-full max-w-sm justify-end"> <Context defaultOpen maxTokens={128000} modelId="openai/gpt-4o" usedTokens={7000} usage={{ inputTokens: 5200, outputTokens: 1800 }} > <ContextTrigger /> <ContextContent> <ContextContentHeader /> <ContextContentBody> <div className="space-y-2"> <ContextInputUsage /> <ContextOutputUsage /> </div> </ContextContentBody> <ContextContentFooter /> </ContextContent> </Context> </div> )}