MCPcopy Create free account
hub / github.com/github/gh-aw / usdToAIC

Function usdToAIC

pkg/cli/model_costs.go:156–158  ·  view source on GitHub ↗
(usd float64)

Source from the content-addressed store, hash-verified

154}
155
156func usdToAIC(usd float64) float64 {
157 return usd / 0.01
158}
159
160func computeModelInferenceCostUSD(provider, model string, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, reasoningTokens int) float64 {
161 pricing, ok := findModelPricing(provider, model)

Callers 1

computeModelInferenceAICFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected