AI pieces from Beste UI, drop-in widgets built with shadcn/ui and Tailwind CSS.
rate limited users get a 429 response
rate-limited users get a 429 response with a Retry-After header
Two-line before/after suggestion with a rose strike-through original and an emerald accepted revision.
Batch inference progress card with completed/failed counts and a stacked bar where the error segment shows in rose.
{
"answer": "Use Redis INCR",
"sources": 3,
"latency_ms": 420
}Mini code viewer for a structured response, with a filename header, copy button, and a preformatted JSON preview body.
Live token visualizer with tone-tinted token chips, tokens-per-second rate, and a pulsing caret at the end.
"where is my order?"
Intent ranking panel with the raw user input quoted above and a list of candidate labels with confidence bars.
Assistant persona card with a tone-colored header, role label, initial avatar, and a row of personality trait chips.
Pill showing the LLM provider with a branded initial avatar, the provider name, and the exact model identifier.
Horizontal pipeline diagram with tone-tinted stage nodes connected by arrows, showing the path from query to answer.
Vector query bar with namespace name, top_k value, and removable key:value filter chips for metadata.
Searches papers and drafts literature reviews on request.
Catalog card for a configured assistant with a tone-filled bot tile, name, short description, and the tool count.
Explain rate limiting strategies with simple examples.
Playground card with the selected model, a prompt draft box, and a tone-colored Run button to kick off the request.
Token and cost breakdown table with input/output rows and a totaled bottom line. Tone highlights the final amount.
Safety guardrail card with an emerald shield, active status pill, and a row of enabled policy tags.
Fine-tuning job row with base model + dataset, a status indicator, and a tone-colored progress bar that flips emerald on success.
Dataset summary with row count, total size, and a stacked train/val/test split bar. Tone controls the dataset icon tile and train segment.
Response blocked for containing targeted insults.
Moderation card with a rose shield icon, category label, severity pill, and the reason the output was blocked.
Training run card with current epoch, step counter, loss value, and a violet progress bar reflecting completion.
Attached image card with a tone-tinted thumbnail tile, a scanning line overlay, filename, dimensions, and detected-object chips.
Use INCR with an EXPIRE TTL to build a fixed-window limiter that resets every minute.
docs/guides/rate-limits.mdKnowledge base hit card with a document title, snippet, source path, and an emerald similarity score badge.
Vector embedding visualizer with a zero baseline, positive values drawn upward in the tone color and negatives drawn downward in muted.
Monospace prompt card with inline handlebars-style variables highlighted in violet against plain body text.
User wants to rate limit 100 req/min per key.
Leaky bucket gives smoother traffic than fixed window.
Redis INCR with TTL is the simplest implementation.
Collapsible reasoning panel with a brain icon header and italic thought bullets on a left border rail.