AI playgroundPro
Compare two models on one prompt with parameters, reasoning, streaming, tokens and cost.
What's inside
- System prompt and temperature
- Reasoning trace
- Parallel streaming
- Tokens and cost
When to use
- Prompt engineering and model evaluation tools.
When not to use
- End-user chat.
Installation
Usage
Import it from @/components/blocks/ai-playground after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { AiPlayground } from "@/components/blocks/ai-playground";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<AiPlayground />
</main>
);
}API reference
AiPlayground
Compare two models side by side on the same prompt with system prompt, temperature, reasoning trace, tokens and cost. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Move through prompt, parameters and Run |
| ←or→ | Adjust temperature |
| Space | Toggle reasoning |
Accessibility
- Sliders and switches are labelled.
Motion
- Both answers stream in parallel; reasoning folds away when done.
Responsive behavior
- Model columns stack below 768px.
Performance
- Streams are simulated; nothing is sent.
Notes for AI
- Call your models from a server route and stream back to each column.
This page as Markdown, for assistants and coding agents:
/blocks/ai-playground/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt