Skip to content

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

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.

Activity

  1. github-actions commented on Nov 10, 2025

    @github-actions
    Contributor

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

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

  2. rekram1-node commented on Nov 10, 2025

    @rekram1-node
    Contributor

    Ah prolly a merging issue will fix

  3. self-assigned this
    on Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions