Ver Fonte

fix(relay): remove unnecessary channel type check for BadRequest

CaIon há 6 meses atrás
pai
commit
fa2edd9d3f
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      controller/relay.go

+ 0 - 4
controller/relay.go

@@ -312,10 +312,6 @@ func shouldRetry(c *gin.Context, openaiErr *types.NewAPIError, retryTimes int) b
 		return true
 	}
 	if openaiErr.StatusCode == http.StatusBadRequest {
-		channelType := c.GetInt("channel_type")
-		if channelType == constant.ChannelTypeAnthropic {
-			return true
-		}
 		return false
 	}
 	if openaiErr.StatusCode == 408 {