From a8b11912dffbd3193262259c69178f00a4e9fee0 Mon Sep 17 00:00:00 2001 From: huangzhenpc Date: Tue, 26 Aug 2025 15:31:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(claude):=20=E4=BF=AE=E5=A4=8D=20Claude=20?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=99=A8=E4=B8=8D=E6=94=AF=E6=8C=81=E6=B8=A0?= =?UTF-8?q?=E9=81=93=E9=80=8F=E4=BC=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将条件从只检查全局透传改为全局透传或渠道透传 - 与其他适配器保持一致的透传逻辑 - 修复 killcode 客户端在仅开启渠道透传时无法正常工作的问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- relay/channel/claude/adaptor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/channel/claude/adaptor.go b/relay/channel/claude/adaptor.go index dbdfa564..4636691e 100644 --- a/relay/channel/claude/adaptor.go +++ b/relay/channel/claude/adaptor.go @@ -60,7 +60,7 @@ func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) { } func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Header, info *relaycommon.RelayInfo) error { - if model_setting.GetGlobalSettings().PassThroughRequestEnabled { + if model_setting.GetGlobalSettings().PassThroughRequestEnabled || info.ChannelSetting.PassThroughBodyEnabled { // 穿透模式:直接复制原始请求头,但跳过系统级头信息 for key, values := range c.Request.Header { keyLower := strings.ToLower(key)