fix: audio transcription only charge for the length of audio duration

This commit is contained in:
Laisky.Cai
2025-01-08 05:00:33 +00:00
parent 3915ce9814
commit c6c8053ccc
9 changed files with 238 additions and 79 deletions

View File

@@ -337,6 +337,8 @@ var CompletionRatio = map[string]float64{
// aws llama3
"llama3-8b-8192(33)": 0.0006 / 0.0003,
"llama3-70b-8192(33)": 0.0035 / 0.00265,
// whisper
"whisper-1": 0, // only count input tokens
}
var (