feat: support gpt-4o-mini-realtime-preview
This commit is contained in:
@@ -46,6 +46,10 @@ var defaultModelRatio = map[string]float64{
|
|||||||
"gpt-4o-2024-08-06": 1.25, // $2.5 / 1M tokens
|
"gpt-4o-2024-08-06": 1.25, // $2.5 / 1M tokens
|
||||||
"gpt-4o-2024-11-20": 1.25, // $2.5 / 1M tokens
|
"gpt-4o-2024-11-20": 1.25, // $2.5 / 1M tokens
|
||||||
"gpt-4o-realtime-preview": 2.5,
|
"gpt-4o-realtime-preview": 2.5,
|
||||||
|
"gpt-4o-realtime-preview-2024-10-01": 2.5,
|
||||||
|
"gpt-4o-realtime-preview-2024-12-17": 2.5,
|
||||||
|
"gpt-4o-mini-realtime-preview": 0.3,
|
||||||
|
"gpt-4o-mini-realtime-preview-2024-12-17": 0.3,
|
||||||
"o1": 7.5,
|
"o1": 7.5,
|
||||||
"o1-2024-12-17": 7.5,
|
"o1-2024-12-17": 7.5,
|
||||||
"o1-preview": 7.5,
|
"o1-preview": 7.5,
|
||||||
@@ -431,6 +435,8 @@ func GetAudioRatio(name string) float64 {
|
|||||||
return 20
|
return 20
|
||||||
} else if strings.HasPrefix(name, "gpt-4o-audio") {
|
} else if strings.HasPrefix(name, "gpt-4o-audio") {
|
||||||
return 40
|
return 40
|
||||||
|
} else if strings.HasPrefix(name, "gpt-4o-mini-realtime") {
|
||||||
|
return 10 / 0.6
|
||||||
}
|
}
|
||||||
return 20
|
return 20
|
||||||
}
|
}
|
||||||
@@ -438,6 +444,8 @@ func GetAudioRatio(name string) float64 {
|
|||||||
func GetAudioCompletionRatio(name string) float64 {
|
func GetAudioCompletionRatio(name string) float64 {
|
||||||
if strings.HasPrefix(name, "gpt-4o-realtime") {
|
if strings.HasPrefix(name, "gpt-4o-realtime") {
|
||||||
return 2
|
return 2
|
||||||
|
} else if strings.HasPrefix(name, "gpt-4o-mini-realtime") {
|
||||||
|
return 2
|
||||||
}
|
}
|
||||||
return 2
|
return 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ var ModelList = []string{
|
|||||||
"o1-mini", "o1-mini-2024-09-12",
|
"o1-mini", "o1-mini-2024-09-12",
|
||||||
"o1", "o1-2024-12-17",
|
"o1", "o1-2024-12-17",
|
||||||
"gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01",
|
"gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01",
|
||||||
"gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01",
|
"gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", "gpt-4o-realtime-preview-2024-12-17",
|
||||||
|
"gpt-4o-mini-realtime-preview", "gpt-4o-mini-realtime-preview-2024-12-17",
|
||||||
"text-embedding-ada-002", "text-embedding-3-small", "text-embedding-3-large",
|
"text-embedding-ada-002", "text-embedding-3-small", "text-embedding-3-large",
|
||||||
"text-curie-001", "text-babbage-001", "text-ada-001",
|
"text-curie-001", "text-babbage-001", "text-ada-001",
|
||||||
"text-moderation-latest", "text-moderation-stable",
|
"text-moderation-latest", "text-moderation-stable",
|
||||||
|
|||||||
Reference in New Issue
Block a user