fix: scope reasoning_effort=none to OpenAI provider only (Xiaomi rejects 'none')
This commit is contained in:
@@ -191,7 +191,6 @@ func BuildOpenAIBody(request *models.UnifiedRequest, messagesJSON []interface{},
|
||||
}
|
||||
}
|
||||
body["tools"] = sanitizedTools
|
||||
body["reasoning_effort"] = "none" // pontytail: OpenAI reasoning models reject tools + reasoning_effort
|
||||
}
|
||||
if request.ToolChoice != nil {
|
||||
var toolChoice interface{}
|
||||
|
||||
Reference in New Issue
Block a user