feat: support gpt-4o-audio-preview

This commit is contained in:
CalciumIon
2024-11-04 15:27:12 +08:00
parent 8b8abfadaf
commit 139a104b26
5 changed files with 2715 additions and 2284 deletions

View File

@@ -337,15 +337,15 @@ func GetCompletionRatio(name string) float64 {
name = "gpt-4o-gizmo-*"
}
if strings.HasPrefix(name, "gpt-4") && !strings.HasSuffix(name, "-all") && !strings.HasSuffix(name, "-gizmo-*") {
if strings.HasPrefix(name, "gpt-4-turbo") || strings.HasSuffix(name, "preview") {
return 3
}
if strings.HasPrefix(name, "gpt-4o") {
if name == "gpt-4o-2024-05-13" {
return 3
}
return 4
}
if strings.HasPrefix(name, "gpt-4-turbo") || strings.HasSuffix(name, "preview") {
return 3
}
return 2
}
if strings.HasPrefix(name, "o1-") {