Repository navigation
OpenCode 2: add Claude models the host catalogue is missing - #688
Merged
Merged
Conversation
Install a synchronous Anthropic provider transform before effort variants. Synthesize only capability rows with catalogue facts, retaining exact host IDs and their rows unchanged. Match OC2's models.dev conversion for chat metadata, modalities, per-million prices, five-minute cache writes and release timestamps. Per scope clarification, catalogue metadata is ungated like existing model variants: stock request credentials remain owned by OpenCode's transport. Include limited Mythos rows as OC1 does; OC1 adds no limited flag to its native model rows. Request-hook ownership is unchanged. Verified failing-first catalogue tests, 117 filtered OC2/setup/snapshot tests, and the fast gate including Core/OpenCode/Pi typechecks.
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.
OpenCode 2: add Claude models the host catalogue is missing. Worker delivery rebased onto main; see the commit messages.
Summary by cubic
On OpenCode 2, Claude models the plugin supports but OpenCode's own catalogue doesn't yet list (e.g. Claude Fable 5.2) now appear in the model picker, matching OpenCode 1.
Adds a provider transform that inserts missing catalogue rows with limits, prices, and adaptive-effort variants, while preserving exact host rows and leaving other providers untouched. Request routing and credentials are unchanged.
Written for commit bbad1c3. Summary will update on new commits.