MCPcopy Create free account
hub / github.com/diillson/chatcli / modelKey

Function modelKey

cli/cost_tracker.go:125–127  ·  view source on GitHub ↗

modelKey returns the map key for a provider+model pair.

(provider, model string)

Source from the content-addressed store, hash-verified

123
124// modelKey returns the map key for a provider+model pair.
125func modelKey(provider, model string) string {
126 return strings.ToLower(provider) + ":" + strings.ToLower(model)
127}
128
129// RecordRealUsage records actual token usage from an API response.
130// This is the preferred path — provides accurate cost tracking.

Callers 1

RecordRealUsageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected