Skip to content

Commit

Permalink
fix: returnPreConsumedQuota
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Nov 9, 2024
1 parent 4131183 commit 8fc49f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion relay/relay-audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func AudioHelper(c *gin.Context) (openaiErr *dto.OpenAIErrorWithStatusCode) {

usage, openaiErr := adaptor.DoResponse(c, httpResp, relayInfo)
if openaiErr != nil {
returnPreConsumedQuota(c, relayInfo, userQuota, preConsumedQuota)
// reset status code 重置状态码
service.ResetStatusCode(openaiErr, statusCodeMappingStr)
return openaiErr
Expand Down

0 comments on commit 8fc49f9

Please sign in to comment.