Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTotalCostMicros ¶
func CalculateTotalCostMicros( usage codersdk.ChatMessageUsage, cost *codersdk.ModelCostConfig, ) *int64
Returns cost in micros -- millionths of a dollar, rounded up to the next whole microdollar. Returns nil when pricing is not configured or when all priced usage fields are nil, allowing callers to distinguish "zero cost" from "unpriced".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.