Repository navigation
fix(opencode): accept both sap-ai-provider package names - #67849
Open
jerome-benoit wants to merge 3 commits into
Open
jerome-benoit wants to merge 3 commits into
jerome-benoit wants to merge 3 commits into
Conversation
Preserve SAP reasoning settings and load the V2 facade when models.dev switches to the unsuffixed provider package.
3 tasks done
added 2 commits
December 2, 2026 20:31
The V2 facade drops cache-write token counts. Keep loading the root for existing unsuffixed configurations and preserve legacy loading.
Contributor
Author
|
Courtesy backport. The 1.x line no longer receives releases (npm |
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Backport of #67848. Related to #30481 and anomalyco/models.dev#14509.
Type of change
What does this PR do?
Keep SAP reasoning variants, catalog effort settings, and budget settings when models.dev advertises the unsuffixed package. The v1 loader already accepts V3 via the Vercel AI SDK, so it keeps loading the published root for both names: V3 for the unsuffixed package, V2 for the deprecated package. Forcing
/v2for the unsuffixed name would drop cache-write token counts that the V3 root reports. No flag or catalog update is needed.How did you verify your code works?
packages/opencode:bun test test/provider/transform.test.ts test/provider/provider.test.ts— 715 passed, including a loader regression test that keeps the unsuffixed V3 root.bun run --cwd packages/opencode typecheckpassed. Direct Oxlint on the three changed TypeScript files reported no errors; warnings were outside changed lines.Screenshots / recordings
Not a UI change.
Checklist