Skip to content

Commit

Permalink
fix: remove incorrect logging
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Dec 10, 2023
1 parent 2a70744 commit 366b821
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions controller/relay-text.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 366b821

Please sign in to comment.