chore: update completion ratio for GPT-3

This commit is contained in:
JustSong 2023-06-24 14:19:50 +08:00
parent 0fd1ff4d9e
commit 3aff61a973

View File

@ -123,7 +123,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
defer func() {
if consumeQuota {
quota := 0
completionRatio := 1.34 // default for gpt-3
completionRatio := 1.333333 // default for gpt-3
if strings.HasPrefix(textRequest.Model, "gpt-4") {
completionRatio = 2
}