chatbot-template/lib/usage.ts
Nicklas Scharpff 5ab695262f
Update tokenlens to canary with server side fetching (#1196)
Co-authored-by: josh <josh@afterima.ge>
2025-09-15 10:32:28 +01:00

5 lines
251 B
TypeScript

import type { LanguageModelUsage } from 'ai';
import type { UsageData } from 'tokenlens/helpers';
// Server-merged usage: base usage + TokenLens summary + optional modelId
export type AppUsage = LanguageModelUsage & UsageData & { modelId?: string };