Merge pull request #1109 from feitianbubu/fix-qwen-thinking

fix: ali parameter.enable_thinking must be set to false for non-strea…
This commit is contained in:
IcedTangerine
2025-05-26 19:32:34 +08:00
committed by GitHub

View File

@@ -57,6 +57,12 @@ func (a *Adaptor) ConvertOpenAIRequest(c *gin.Context, info *relaycommon.RelayIn
if request == nil {
return nil, errors.New("request is nil")
}
// fix: ali parameter.enable_thinking must be set to false for non-streaming calls
if !info.IsStream {
request.EnableThinking = false
}
switch info.RelayMode {
default:
aliReq := requestOpenAI2Ali(*request)