Skip to content

feat: add per-provider small_model configuration#16561

Open
rmagatti wants to merge 2 commits intoanomalyco:devfrom
rmagatti:feat/16207-provider-small-model
Open

feat: add per-provider small_model configuration#16561
rmagatti wants to merge 2 commits intoanomalyco:devfrom
rmagatti:feat/16207-provider-small-model

Conversation

@rmagatti
Copy link

@rmagatti rmagatti commented Mar 8, 2026

Issue for this PR

Closes #16207

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This adds support for small_model under each provider config and updates model resolution to prefer the provider-specific value over the global fallback.

It updates the explore agent to use the provider-scoped small model and adds tests plus docs so the precedence behavior is explicit and verified.

How did you verify your code works?

Added and ran provider precedence tests in packages/opencode/test/provider/provider.test.ts and validated docs/config examples for the new provider-level small_model key. I also actually ran this version of opencode and it successfully uses the small model for things like explore and switches properly depending on the provider I have selected.

Screenshots / recordings

N/A (no UI changes)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

[FEATURE]: Specify small_model per provider

1 participant