fix(think-mode): disable thinking parameter for Z.ai GLM models

Z.ai GLM models don't support thinking/reasoning parameters.
Ensure these are omitted entirely to prevent empty responses.

Fixes #980

Community-reported-by: @iserifith
This commit is contained in:
YeonGyu-Kim
2026-02-14 14:03:32 +09:00
parent daf011c616
commit 9f52e48e8f
4 changed files with 73 additions and 8 deletions
+1 -2
View File
@@ -154,8 +154,7 @@ export const THINKING_CONFIGS = {
"zai-coding-plan": {
extra_body: {
thinking: {
type: "enabled",
clear_thinking: false,
type: "disabled",
},
},
},