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

This commit is contained in:
CaIon
2025-08-12 16:12:47 +08:00
parent 7997a04a68
commit fa2edd9d3f

View File

@@ -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 {