Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CostUSD ¶
func CostUSD(model string, usage session.TokenUsage) (float64, bool)
CostUSD estimates one session's usage cost. cached_tokens is treated as cache-read input when the provider does not expose the read/create split.
func NormalizeModel ¶
NormalizeModel strips provider prefixes, vendor-tag suffixes, and dated snapshot suffixes so a family stays priced after the snapshot date rotates.
Types ¶
Click to show internal directories.
Click to hide internal directories.