心流API调用,参数好像没有看到关闭思考的选项。
{
"model": "glm-4.6",
"stream": true,
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "你是谁"
}
],
"chat_template_kwargs": {
"enable_thinking": false
}
}
参考这个试试
1 个赞