Skip to content

Conversation

@Tarquinen
Copy link
Contributor

Models defined in user config (opencode.jsonc) with custom providers now get auto-generated variants via ProviderTransform.variants().

@rekram1-node rekram1-node changed the title fix: auto-generate variants for user-configured custom provider models fix: variants for custom models Dec 30, 2025
release_date: model.release_date ?? existingModel?.release_date ?? "",
variants: {},
}
parsedModel.variants = mapValues(ProviderTransform.variants(parsedModel), (v) => ({ disabled: false, ...v }))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has a bug actually...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesnt allow user to disable variants

Copy link

@IgorWarzocha IgorWarzocha Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesnt allow user to disable variants

#6477 tested this one. Seems to be working on codex-oauth - cycles through entries and changes reasoning effort.

@Tarquinen
Copy link
Contributor Author

I figured letting the variant function do the work deciding which variants are available would be fine? Users still can cycle to no variant option if they want, and by default a variant is not picked for them. If you want to go a different route let me know, i'll close this one

@Tarquinen Tarquinen closed this Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants