Commit 7c34c010 by IcedTangerine Committed by GitHub

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

fix: ali parameter.enable_thinking must be set to false for non-strea…
parents 79d67d2d ea075f75
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment