MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetAudioCompletionRatio

Function GetAudioCompletionRatio

setting/ratio_setting/model_ratio.go:584–591  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

582}
583
584func GetAudioCompletionRatio(name string) float64 {
585 if strings.HasPrefix(name, "gpt-4o-realtime") {
586 return 2
587 } else if strings.HasPrefix(name, "gpt-4o-mini-realtime") {
588 return 2
589 }
590 return 2
591}
592
593func ModelRatio2JSONString() string {
594 modelRatioMapMutex.RLock()

Callers 3

calculateAudioQuotaFunction · 0.92
PostWssConsumeQuotaFunction · 0.92
PostAudioConsumeQuotaFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected