[Issue] Custom provider baseurl, return opencode.json is invalid Required provider.anthropic.models
Description
Hi Team,
Thanks for the great product.
I use the config in doc show to custom base url.
In the old release, it works. But when i upgrade to the latest version 0.3.133 , it error Error: Config file at /Users/gongchao/.config/opencode/opencode.json is invalid ↳ Required provider.anthropic.models
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.anthropic.com/v1"
}
}
}
}
I have been using this method, hoping it can be fix. Thanks a lot.
OpenCode version
0.3.133
Steps to reproduce
- vim the opencode.json
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api.anthropic.com/v1"
}
}
}
}
- Run the opencode
Screenshot and/or share link
Operating System
macOS
Terminal
iTerm2
This appears to be a configuration validation regression where the models field is incorrectly required for provider configurations. Users should be able to customize just the baseURL option without specifying models. This is likely a schema validation issue introduced in the recent version update.
@tomsun28 you said upgrade to latest:
But when i upgrade to the latest version 0.3.133
Uhh that's not latest? Latest is 1.0.152 which is much more recent
This issue shouldn't happen on latest
Hi, sorry that was my mistake. The latest version is fine 👍