Uh oh!
There was an error while loading. Please reload this page.
fix(provider): derive variants from reasoning options - #36543
Merged
Conversation
Drop variant generation from models.dev reasoning options; keep only the schema field and normalization into Provider.Model. Variant conversion will land in a follow-up PR.
Uh oh!
There was an error while loading. Please reload this page.
JeongEEE added a commit
to JeongEEE/opencode
that referenced
this pull request
Jul 13, 2026
upstream PR anomalyco#36543 changed provider.ts's ProviderReasoningOption schema to permit null in effort values (e.g. ["high", null]), but the hand-maintained SDK generated type wasn't updated to match, breaking typecheck across provider.ts/share-next.ts. Patch types.gen.ts like the existing EventPluginRefreshed addition, until upstream regenerates the SDK. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
avion23 pushed a commit
to avion23/opencode
that referenced
this pull request
Jul 17, 2026
avion23 pushed a commit
to avion23/opencode
that referenced
this pull request
Jul 20, 2026
3kaiu pushed a commit
to 3kaiu/opencode-x
that referenced
this pull request
Jul 31, 2026
MarsQiu007 referenced
this pull request
in MarsQiu007/openNovel
Jul 31, 2026
banlanzs pushed a commit
to banlanzs/opencode
that referenced
this pull request
Aug 6, 2026
charlesverge pushed a commit
to charlesverge/opencode
that referenced
this pull request
Aug 11, 2026
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 freeto 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.
Summary
reasoning_optionsmetadata from models.dev into legacy provider modelstransform.tsguessing only for models absent from the catalog and preserve config overridesVerification
cd packages/core && bun typecheckcd packages/core && bun test test/models.test.tscd packages/opencode && bun typecheckcd packages/opencode && bun test test/provider/transform.test.ts test/provider/provider.test.tsCloses#36141
Closes#36391