Skip to content

GLM models excluded from reasoning variants — no way to toggle thinking at runtime #18598

Closed

Description

@0717376

Description

GLM models (GLM-5, GLM-4.7, etc.) are explicitly excluded from reasoning variants in ProviderTransform.variants(), which means users cannot toggle thinking mode on/off during a session — neither through the UI variant selector nor via SDK variant field.

This is limiting because GLM-5's thinking mode is expensive for simple tasks and Z.AI recommends dynamically switching between thinking/non-thinking modes depending on task complexity.

Static config (model.options) works but requires restarting the session. Dynamic toggling via variants does not work because variants() returns {} for GLM.

Related: #14413, #16903

Steps to reproduce

  1. Configure GLM-5 model with "reasoning": true
  2. Open a session
  3. Try to switch reasoning variant — no options available

Expected behavior

GLM models should have none/high reasoning variants, allowing users to toggle thinking on/off at runtime, similar to how grok has low/high.

  • I have verified that this issue has not already been requested
  • I have read the contributing guidelines

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 22, 2026
  2. github-actions commented on Mar 22, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify how it differs.

  3. added a commit that references this issue on Mar 22, 2026
    0cb6496
  4. 0717376 commented on Mar 22, 2026

    @0717376
    Author

    This issue is related but distinct from both:

  5. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. rekram1-node commented on Jun 20, 2026

    @rekram1-node
    Contributor

    this is intentional, aside from glm 5.2 which actually supports them.

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