How to disable thinking in GLM-4.6? #2160

Closed
opened 2026-02-16 17:34:27 -05:00 by yindo · 3 comments
Owner

Originally created by @remorses on GitHub (Oct 18, 2025).

How to disable thinking in GLM-4.6 from Zen?

Originally created by @remorses on GitHub (Oct 18, 2025). How to disable thinking in GLM-4.6 from Zen?
yindo closed this issue 2026-02-16 17:34:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2875: Have an ability to turn on / off thinking mode - discusses customizable thinking mode settings for different models including the ability to toggle thinking on/off
  • #2531: Removing thinking tokens from nano-gpt provider - addresses methods to exclude/strip thinking tokens from model responses
  • #2484: Thinking Function and Thinking Blocks Visibility Issues - covers configuration of thinking settings in opencode.json and issues with thinking functionality

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #2875: Have an ability to turn on / off thinking mode - discusses customizable thinking mode settings for different models including the ability to toggle thinking on/off - #2531: Removing thinking tokens from nano-gpt provider - addresses methods to exclude/strip thinking tokens from model responses - #2484: Thinking Function and Thinking Blocks Visibility Issues - covers configuration of thinking settings in opencode.json and issues with thinking functionality Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 19, 2025):

@remorses we are gonna make it a lot easier in the future rn you can do this:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "opencode": {
      "models": {
        "glm-4.6": {
          "options": {
            "reasoning": {
              "enabled": false
            }
          }
        }
      }
    }
  }
}
@rekram1-node commented on GitHub (Oct 19, 2025): @remorses we are gonna make it a lot easier in the future rn you can do this: ``` { "$schema": "https://opencode.ai/config.json", "provider": { "opencode": { "models": { "glm-4.6": { "options": { "reasoning": { "enabled": false } } } } } } } ```
Author
Owner

@JosXa commented on GitHub (Nov 20, 2025):

On the Cerebras provider, this seems to do the trick:

  "provider": {
    "cerebras": {
      "models": {
        "zai-glm-4.6": {
          "name": "Z.AI GLM 4.6",
          "options": {
            "disable_reasoning": true
          }
        }
      }
    },
  }
@JosXa commented on GitHub (Nov 20, 2025): On the Cerebras provider, this seems to do the trick: ```json "provider": { "cerebras": { "models": { "zai-glm-4.6": { "name": "Z.AI GLM 4.6", "options": { "disable_reasoning": true } } } }, } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2160