Skip to content

Cost is always displayed as zero ($0.00) for custom models that extend built-in ones #4162

@updbqn

Description

@updbqn

Description

When extending a built-in model the session cost does not update.

e.g. Using the example from the docs:

https://opencode.ai/docs/models/#configure-models

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

Using gpt-5-high the cost is always 0.
Using gpt-5 the cost updates as expected.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions