Skip to content

feat(core): add configured model variant fallbacks - #43574

Open
rekram1-node wants to merge 5 commits into
v2from
variant-fallbacks
Open

feat(core): add configured model variant fallbacks#43574
rekram1-node wants to merge 5 commits into
v2from
variant-fallbacks

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • generate conservative package-aware variants for newly configured models when variants is omitted
  • preserve explicit variant arrays, including variants: [] as an opt-out, across layered config
  • support AI SDK and native OpenAI, OpenAI-compatible, Azure, Google, Vertex, and Anthropic transports
  • map native fallbacks through providerOptions and retain -opencode.variant as the generation opt-out

Testing

  • bun test in packages/core (1920 pass, 16 skip)
  • bun typecheck in packages/core
  • focused config, variant, and model resolver tests
  • Prettier check on changed files

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.

1 participant