5 lines
1.2 KiB
Plaintext

@model IReadOnlyList<AiProviderAttemptRow>
@{ViewData["Title"]="AI provider requests";ViewData["ShellClass"]="pd-workspace-full-width";}
<h1>AI provider requests</h1><p><a href="/admin/ai">Back to AI policies and usage</a></p><p>Token budgets are conservative execution limits, not actual billed tokens. Missing telemetry remains unrecorded. No manuscript content is stored in this ledger.</p>
<div class="table-responsive"><table class="table"><thead><tr><th>Request</th><th>Provider / model</th><th>UTC / duration</th><th>Status</th><th>Token budget</th><th>Actual input / output / cache tokens</th><th>Actual / estimated cost</th></tr></thead><tbody>@foreach(var item in Model){<tr><td>@item.RequestNumber</td><td>@item.Provider / @item.Model</td><td>@item.StartedUtc.ToString("u") / @(item.DurationMs?.ToString()??"Unrecorded") ms</td><td>@item.Status</td><td>@item.TokenBudget</td><td>@(item.InputTokens?.ToString()??"Unrecorded") / @(item.OutputTokens?.ToString()??"Unrecorded") / @(item.CacheTokens?.ToString()??"Unrecorded")</td><td>@(item.ActualCost?.ToString()??"Unrecorded") / @(item.EstimatedCost?.ToString()??"Unrecorded") @item.CostCurrency</td></tr>}</tbody></table></div>