LLM Debugger

Snapshots

Cached request and response snapshots grouped by endpoint and model.

Requests
<% if (!groups.length) { %>
No snapshots yet. Enable cache and make a request to populate this browser.
<% } %> <% groups.forEach((group) => { %>

<%= group.hostPath %>

<% group.models.forEach((model) => { %>

<%= model.name %>

<% model.snapshots.forEach((snapshot) => { %> <% const status = Number(snapshot.status); %> <% const statusClass = Number.isFinite(status) ? (status < 400 ? 'ok' : 'bad') : ''; %> <% const routeHost = snapshot.routeHost || snapshot.host; %> <% const routeModel = snapshot.routeModel || model.name; %> <% const routeKey = snapshot.routeKey || snapshot.key; %> <% const detailHref = `/__viewer__/snapshots/${encodeURIComponent(routeHost)}/${encodeURIComponent(routeModel)}/${encodeURIComponent(routeKey)}`; %>
Key <%= snapshot.key %>
Method <%= snapshot.method %>
Status <%= snapshot.status || 'n/a' %>
Recorded <%= snapshot.recordedAt || 'n/a' %>
Prompt <%= snapshot.promptPreview || 'No prompt preview' %>
Open
<% }) %>
<% }) %>
<% }) %>