From 72b1cacea1ba0d1f3dedacbab2e088e98fd7e172 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 4 Feb 2026 19:36:01 +0800 Subject: [PATCH] fix: hiding the thought process --- models/minimax/minimax_bot.py | 2 +- models/zhipuai/zhipuai_bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/minimax/minimax_bot.py b/models/minimax/minimax_bot.py index 46c3eba..246978b 100644 --- a/models/minimax/minimax_bot.py +++ b/models/minimax/minimax_bot.py @@ -236,7 +236,7 @@ class MinimaxBot(Bot): logger.debug(f"[MINIMAX] API call: model={model}, tools={len(converted_tools) if converted_tools else 0}, stream={stream}") # Check if we should show thinking process - show_thinking = kwargs.pop("show_thinking", conf().get("minimax_show_thinking", True)) + show_thinking = kwargs.pop("show_thinking", conf().get("minimax_show_thinking", False)) if stream: return self._handle_stream_response(request_body, show_thinking=show_thinking) diff --git a/models/zhipuai/zhipuai_bot.py b/models/zhipuai/zhipuai_bot.py index c0ccf4d..ddb1af7 100644 --- a/models/zhipuai/zhipuai_bot.py +++ b/models/zhipuai/zhipuai_bot.py @@ -205,7 +205,7 @@ class ZHIPUAIBot(Bot, ZhipuAIImage): request_params["thinking"] = thinking elif "glm-4.7" in request_params["model"]: # Enable thinking by default for GLM-4.7 - request_params["thinking"] = {"type": "enabled"} + request_params["thinking"] = {"type": "disabled"} # Make API call with ZhipuAI SDK if stream: