Skip to content

How to add new custom model variants with extended options? #2829

Description

@tomaszferens

How can I create a new custom model variant (e.g., gpt-5-high) that extends an existing model (gpt-5) with different options, without overwriting the original model configuration?

I want to have multiple configurations of the same base model with different options. For example:

  • gpt-5: Default configuration with medium reasoning effort
  • gpt-5-high: Same model but with reasoningEffort: "high"

Attempted to add a custom model in ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "opencode": {
      "models": {
        "gpt-5-high": {
          "options": {
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "reasoningSummary": "auto"
          }
        }
      }
    }
  }
}

But I'm getting an error: AI_APICallError: Model gpt-5-high not supported

Is it possible to create custom model aliases/variants that extend existing models with different options?

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