From fa2edd9d3fea8ad03479289821fd4a5bb8ad6b10 Mon Sep 17 00:00:00 2001 From: CaIon Date: Tue, 12 Aug 2025 16:12:47 +0800 Subject: [PATCH] fix(relay): remove unnecessary channel type check for BadRequest --- controller/relay.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/controller/relay.go b/controller/relay.go index c97eca20..d235f550 100644 --- a/controller/relay.go +++ b/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 {