|
|
@@ -41,7 +41,7 @@ func ResponsesHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *
|
|
|
}
|
|
|
adaptor.Init(info)
|
|
|
var requestBody io.Reader
|
|
|
- if model_setting.GetGlobalSettings().PassThroughRequestEnabled {
|
|
|
+ if model_setting.GetGlobalSettings().PassThroughRequestEnabled || info.ChannelSetting.PassThroughBodyEnabled {
|
|
|
body, err := common.GetRequestBody(c)
|
|
|
if err != nil {
|
|
|
return types.NewError(err, types.ErrorCodeReadRequestBodyFailed, types.ErrOptionWithSkipRetry())
|