feat(opencode): use regex to whitelist/blacklist provider models#23283
feat(opencode): use regex to whitelist/blacklist provider models#23283flexdinesh wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: Related PR:
However, this is not an exact duplicate as PR #23283 specifically adds regex pattern support to the existing whitelist/blacklist functionality, while #18899 focuses on an enable/disable configuration field. No other duplicate PRs were found that directly address the same regex whitelist/blacklist feature. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Issue for this PR
Closes #18326
Type of change
What does this PR do?
This PR adds the ability to use regex patterns to whitelist/blacklist provider models in the config.
Before:
Now:
How did you verify your code works?
I updated my config, ran the code in my local using
bun devand verified that the regex patterns in blacklist/whitelist in opencode.json file are getting picked up.Screenshots / recordings
Zen models before the change:
Zen models after the change (claude models are now hidden):
Config:
Checklist
If you do not follow this template your PR will be automatically rejected.