fix(iflow): remove thinking field from request body in thinking config handler

This commit is contained in:
hkfires
2026-01-01 19:40:28 +08:00
parent 4fc3d5e935
commit 3902fd7501

View File

@@ -504,6 +504,7 @@ func applyIFlowThinkingConfig(body []byte) []byte {
// Remove reasoning_effort as we'll convert to model-specific format // Remove reasoning_effort as we'll convert to model-specific format
body, _ = sjson.DeleteBytes(body, "reasoning_effort") body, _ = sjson.DeleteBytes(body, "reasoning_effort")
body, _ = sjson.DeleteBytes(body, "thinking")
// GLM-4.6/4.7: Use chat_template_kwargs // GLM-4.6/4.7: Use chat_template_kwargs
if strings.HasPrefix(model, "glm-4") { if strings.HasPrefix(model, "glm-4") {