Skip to content

fix(opencode): Support configuring github-copilot model costs#24788

Open
stevoland wants to merge 1 commit intoanomalyco:devfrom
stevoland:stevo/yqxuvttqsvvu
Open

fix(opencode): Support configuring github-copilot model costs#24788
stevoland wants to merge 1 commit intoanomalyco:devfrom
stevoland:stevo/yqxuvttqsvvu

Conversation

@stevoland
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #24787

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Allows configuring github-copilot model costs in config

How did you verify your code works?

{
  "provider": {
    "github-copilot": {
      "models": {
        "gpt-5.4": {
          "cost": {
            "input": 2.5,
            "output": 15,
            "cache_read": 0.25
          },
        },
      }
    }
  }
}

bun dev .

Used github-copilot/gpt-5.4 - got custom cost estimate
Used github-copilot/gpt-5.3-codex - got expected $0.00

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@stevoland stevoland marked this pull request as ready for review April 28, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github copilot costs hardcoded to 0

1 participant