You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds cost.tiers to legacy provider model configuration and carries it through v1 migration and both provider paths. Configured tiers replace a matching context boundary while preserving other catalog tiers. Explicit tiers take precedence over the legacy context_over_200k shorthand at the same boundary.
How did you verify your code works?
bun test test/config/config.test.ts test/config/provider.test.ts
bun test test/provider/provider.test.ts
bun typecheck in packages/core and packages/opencode
This is not a duplicate of #44223 or #44292. Those changes address runtime handling of catalog tiers; this PR adds the missing cost.tiers config surface for custom provider models and verifies its migration and merge behavior.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #50713
Type of change
What does this PR do?
Adds
cost.tiersto legacy provider model configuration and carries it through v1 migration and both provider paths. Configured tiers replace a matching context boundary while preserving other catalog tiers. Explicit tiers take precedence over the legacycontext_over_200kshorthand at the same boundary.How did you verify your code works?
bun test test/config/config.test.ts test/config/provider.test.tsbun test test/provider/provider.test.tsbun typecheckinpackages/coreandpackages/opencodeScreenshots / recordings
Not a UI change.
Checklist