chore: update completion ratio for GPT-3
This commit is contained in:
parent
0fd1ff4d9e
commit
3aff61a973
@ -123,7 +123,7 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
|
|||||||
defer func() {
|
defer func() {
|
||||||
if consumeQuota {
|
if consumeQuota {
|
||||||
quota := 0
|
quota := 0
|
||||||
completionRatio := 1.34 // default for gpt-3
|
completionRatio := 1.333333 // default for gpt-3
|
||||||
if strings.HasPrefix(textRequest.Model, "gpt-4") {
|
if strings.HasPrefix(textRequest.Model, "gpt-4") {
|
||||||
completionRatio = 2
|
completionRatio = 2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user