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 { AiRequestInspector, AiRequestInspectorHeader, AiRequestInspectorRequest, AiRequestInspectorResponse,} from "@/components/elements/ai-request-inspector"export default function RequestInspectorDemo() { return ( <AiRequestInspector className="w-full max-w-lg" duration={842} request={{ method: "POST", url: "/v1/chat/completions", headers: { "Content-Type": "application/json" }, body: { model: "gpt-4o", messages: [{ role: "user", content: "Summarize this report." }], }, }} response={{ status: 200, body: { id: "chatcmpl-123", choices: [ { message: { role: "assistant", content: "The report shows steady growth.", }, }, ], }, }} > <AiRequestInspectorHeader /> <AiRequestInspectorRequest /> <AiRequestInspectorResponse /> </AiRequestInspector> )}