mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 13:28:11 +08:00
fix: hiding the thought process
This commit is contained in:
@@ -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}")
|
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
|
# 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:
|
if stream:
|
||||||
return self._handle_stream_response(request_body, show_thinking=show_thinking)
|
return self._handle_stream_response(request_body, show_thinking=show_thinking)
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ class ZHIPUAIBot(Bot, ZhipuAIImage):
|
|||||||
request_params["thinking"] = thinking
|
request_params["thinking"] = thinking
|
||||||
elif "glm-4.7" in request_params["model"]:
|
elif "glm-4.7" in request_params["model"]:
|
||||||
# Enable thinking by default for GLM-4.7
|
# Enable thinking by default for GLM-4.7
|
||||||
request_params["thinking"] = {"type": "enabled"}
|
request_params["thinking"] = {"type": "disabled"}
|
||||||
|
|
||||||
# Make API call with ZhipuAI SDK
|
# Make API call with ZhipuAI SDK
|
||||||
if stream:
|
if stream:
|
||||||
|
|||||||
Reference in New Issue
Block a user