The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
import type { RequestUsage } from '../../types/chat'
import { requestUsageLine } from '../../lib/request-usage'
/**
* "1,234 in · 56 out" under an answer: what this request took, as the backend
* reported it (lib/request-usage.ts). Draws nothing without real numbers.
*/
export function RequestUsageLine({ usage, className = '' }: { usage: RequestUsage | undefined; className?: string }) {
const line = requestUsageLine(usage)
if (!line) return null
return (
<span
className={'t-micro tabular-nums text-gray-500 dark:text-gray-400 select-text ' + className}
title={line.title}
data-testid="request-usage"
>
{line.text}
</span>
)
}