fix: remove incorrect logging

This commit is contained in:
JustSong 2023-12-10 20:44:37 +08:00
parent 2a70744dbf
commit 366b82128f

View File

@ -410,10 +410,6 @@ func relayTextHelper(c *gin.Context, relayMode int) *OpenAIErrorWithStatusCode {
defer func(ctx context.Context) {
// c.Writer.Flush()
go func() {
if promptTokens != textResponse.PromptTokens {
common.SysError(fmt.Sprintf("prompt tokens not match, expected %d, actual %d", promptTokens, textResponse.PromptTokens))
}
quota := 0
completionRatio := common.GetCompletionRatio(textRequest.Model)
promptTokens = textResponse.Usage.PromptTokens