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

Function normalizeComparableModelID

pkg/cli/model_costs.go:152–154  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

150}
151
152func normalizeComparableModelID(value string) string {
153 return strings.NewReplacer(".", "-", "_", "-").Replace(strings.ToLower(strings.TrimSpace(value)))
154}
155
156func usdToAIC(usd float64) float64 {
157 return usd / 0.01

Callers 1

findModelPricingFunction · 0.85

Calls 1

ToLowerMethod · 0.80

Tested by

no test coverage detected