UNPKG

@unified-llm/core

Version:

Unified LLM interface (in-memory).

8 lines 418 B
import type { Usage } from '../types/usage.js'; export type ModelPricingKey = "gpt-5.1" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano"; export declare function calculateUsageCost(usage: Usage, model: ModelPricingKey, options?: { cachedInputTokens?: number; currencyMultiplier?: number; }): number; export declare function accumulateUsage(totals: Usage, usage: unknown): void; //# sourceMappingURL=token-utils.d.ts.map