(name string)
| 582 | } |
| 583 | |
| 584 | func 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 | |
| 593 | func ModelRatio2JSONString() string { |
| 594 | modelRatioMapMutex.RLock() |
no outgoing calls
no test coverage detected