Skip to content

[FEATURE]: Add disable_reasoning parameter for GLM/Cerebras thinking toggle #11987

Closed

Description

@iamadamreed

Problem

GLM-4.5/4.6/4.7 and Cerebras models support disable_reasoning boolean parameter to control thinking/reasoning output. Currently no way to configure this in OpenCode agent settings.

Proposed Solution

Add disable_reasoning as optional boolean in agent configuration:

{
  "agent": {
    "fast-build": {
      "model": "cerebras/zai-glm-4.7",
      "disable_reasoning": true
    }
  }
}

Benefits

  • Reduce token usage/costs for simple tasks
  • Faster responses when deep reasoning not needed
  • Avoids reasoning tag parsing issues
  • User control over thinking verbosity

Implementation Notes

  • Apply to GLM and Cerebras providers
  • Default: false (thinking enabled)
  • Parameter name matches GLM/Cerebras API spec

Activity

  1. github-actions commented on Feb 3, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if these don't address your specific case.

  2. github-actions commented on Apr 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions