Unsupported variants for grok-code #4747

Closed
opened 2026-02-16 17:45:15 -05:00 by yindo · 4 comments
Owner

Originally created by @bo-tato on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Some models like minimax don't have any variants specified by default, so ctrl+t does nothing.
The default opencode grok code fast 1 model does contain variants for different thinking levels that ctrl+t will cycle between, but will result in the error Bad Request: Model grok-code does not support parameter reasoningEffort.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @bo-tato on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Some models like minimax don't have any variants specified by default, so `ctrl+t` does nothing. The default opencode grok code fast 1 model does contain variants for different thinking levels that `ctrl+t` will cycle between, but will result in the error `Bad Request: Model grok-code does not support parameter reasoningEffort.` ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:45:15 -05:00
yindo closed this issue 2026-02-16 17:45:15 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

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

  • #7138: Support default variant configuration per agent
  • #7354: Add --variant flag to root opencode command
  • #6645: Support for Model Variants in (sub)agents
  • #7713: Commands Model Variant Specification

These issues address the broader challenge of properly handling model variants and reasoning efforts across different contexts. Your specific case with grok-code and minimax models lacking variant support appears to be part of the larger model variant system being improved.

For keybind-related issues, please also check our pinned keybinds documentation: #4997

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

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7138: Support default variant configuration per agent - #7354: Add `--variant` flag to root `opencode` command - #6645: Support for Model Variants in (sub)agents - #7713: Commands Model Variant Specification These issues address the broader challenge of properly handling model variants and reasoning efforts across different contexts. Your specific case with grok-code and minimax models lacking variant support appears to be part of the larger model variant system being improved. For keybind-related issues, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Author
Owner

@bo-tato commented on GitHub (Jan 11, 2026):

The issue isn't that grok-code lacks variant support. The issue is the default model configuration for grok-code contains variants that aren't actually supported and give errors if you select them.

@bo-tato commented on GitHub (Jan 11, 2026): The issue isn't that grok-code lacks variant support. The issue is the default model configuration for grok-code contains variants that aren't actually supported and give errors if you select them.
Author
Owner

@chindris-mihai-alexandru commented on GitHub (Jan 18, 2026):

This also occurs on the first message (not just after the Ctrl+T variant cycles) on v1.1.25:

the Grok API returns {"code":"Client specified an invalid argument","error":"Invalid arguments passed to the model."} which then causes a secondary AI_TypeValidationError because the error format is a string instead of the expected object schema.

@chindris-mihai-alexandru commented on GitHub (Jan 18, 2026): This also occurs on the first message (not just after the Ctrl+T variant cycles) on v1.1.25: the Grok API returns {"code":"Client specified an invalid argument","error":"Invalid arguments passed to the model."} which then causes a secondary AI_TypeValidationError because the error format is a string instead of the expected object schema.
Author
Owner

@rekram1-node commented on GitHub (Jan 18, 2026):

fixed:
https://github.com/anomalyco/opencode/commit/d841e70d2646d84c31f839e8cf7f94bc9bda66a8

@rekram1-node commented on GitHub (Jan 18, 2026): fixed: https://github.com/anomalyco/opencode/commit/d841e70d2646d84c31f839e8cf7f94bc9bda66a8
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4747