Demo mode — no AI model was called. Responses are simulated until an OpenRouter key is configured. You selected
anthropic/claude-haiku-5.5; nothing was sent to it.
Here is the shape of an answer a real model would give — a short explanation and a runnable snippet:
// Debounce: run `fn` only after `ms` of silence.
export function debounce<T extends (...args: never[]) => void>(fn: T, ms = 250) {
let timer: ReturnType<typeof setTimeout> | undefined;
return (...args: Parameters<T>) => {
clearTimeout(timer);
timer = setTimeout(() => fn(...args), ms);
};
}
- Code blocks get a language label and a Copy button.
- In live mode, pick a model with strong coding results for this kind of task.