today in albedo
{usageNote(reading ? offsetName(reading.offset) : offsetName(0))}
{#if !reading || reading.usage.state === 'loading'}{USAGE_COPY.readingUsage}
{:else if reading.usage.state === 'error'}{USAGE_COPY.usageFailed}
{:else if !today}no calls today
{:else}
{countText(today.calls)}
provider calls
{#if today.errors}{failedText(today.errors)} failed{/if}
{countText(today.input_tokens)}
input tokens
{#if cached !== null}{cached}% cached{/if}
{countText(today.output_tokens)}
output tokens
no calls today
{/if} {#if usageStale}{asOf(reading.usage)}{USAGE_COPY.usageStale}
{/if} {/if}limits
{USAGE_COPY.limitsNote}
{#if !reading || reading.limits.state === 'loading'}{USAGE_COPY.readingLimits}
{:else if reading.limits.state === 'error'}{USAGE_COPY.limitsFailed}
{:else} {#if limitsStale}{asOf(reading.limits)}{USAGE_COPY.limitsStale}
{/if} {#if groups.length}{USAGE_COPY.noLimits}
{/if} {/if}