Explorar o código

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

CaIon hai 6 meses
pai
achega
fa2edd9d3f
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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 {