Skip to content

feat: label free models in OpenCode - #211

Merged
BrainerVirus merged 2 commits into
mainfrom
feature/free-model-labels
Oct 17, 2026
Merged

BrainerVirus merged 2 commits into
mainfrom
feature/free-model-labels

Conversation

@BrainerVirus

Copy link
Copy Markdown
Owner

Changes

  • Append (Free) to V1/V2 model display names when all catalog prices, including cache and context tiers, are zero; retain existing Free labels.
  • Keep model IDs, routing, and generated catalogs unchanged.
  • Remove project-level model defaults so user preferences apply.

Verification

  • 245 unit tests; lint, formatting, typechecking, and build passed.
  • Regression tests cover paid tiers/caches, existing labels, word boundaries, and V1/V2 parity.
  • Docker smoke tests on OpenCode V1.19.3 and V2.0.27 confirmed free/paid display names, unchanged wire IDs, and successful free-model requests. The final suffix-boundary refinement does not affect the tested catalog names.
  • Desktop GUI rendering was not directly checked. This is a display-name suffix, not a native badge; provider logo support is out of scope.

Workit-Session: ses_eb533518bffe5RbP5TmfQ0kZPa:ses_eb4b4daeaffefztzjkIWZG5gxc
Workit-Session: ses_eb533518bffe5RbP5TmfQ0kZPa:ses_eb4b1e31dffezzN8mF03s2yCdT
@BrainerVirus
BrainerVirus merged commit a54b37b into main Oct 17, 2026
5 checks passed
@BrainerVirus
BrainerVirus deleted the feature/free-model-labels branch October 17, 2026 19:22
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant