This took me a while to get going to pass the "api-version": "2025-01-01-preview" and then I kept hitting MAX TOKEN LENGTH issues when using a smaller model.
- Configure the provider in your
opencode.jsonfile:"I did this is my WSL instance"
mkdir -p ~/.config/opencode/ touch ~/.config/opencode/opencode.json code ~/.config/opencode/opencode.json