Skip to content

Same provider/model with different variants #25248

Closed as not planned
Closed as not planned

Description

@TomasKocman

Question

Hi. Is it possible to switch the model variant between plan and build agents while I use the same provider/model for both plan and build agents?

Expected behavior: when pressing tab, I would expect to change the variant.
Real behavior: the last used variant is applied. So I have to manually change the variant each time I switch between agents.

My config:

{
  "$schema": "https://opencode.ai/config.json",
  "default_agent": "plan",
  "agent": {
    "plan": {
      "model": "openai/gpt-5.5",
      "variant": "high"
    },
    "build": {
      "model": "openai/gpt-5.5",
      "variant": "medium"
    }
  }
}

OpenCode version
1.15.10

I use built-in variants for the openai provider.

Based on my experiments, the expected behavior I described above is applied when using different providers. But since I use openai provider for everything, the last active variant is used, and the configuration in config.json is ignored in this case.

Is this behavior expected? Or do I have just a skill issue, and it's actually possible to achieve my goal?

Thank you for your help!

Activity

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

    @github-actions
    Contributor

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

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

    @rekram1-node
    Contributor

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

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