diff options
| author | Dax Raad <[email protected]> | 2025-06-16 15:02:25 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-16 15:02:25 -0400 |
| commit | 2c9fd1e7760da4e1776d9cee7db93af1512c88a7 (patch) | |
| tree | b26a0422ccca227f84ddf182007792d922e48425 /README.md | |
| parent | 63996c4189a6f66225a34c43328e616c5963e007 (diff) | |
| download | opencode-2c9fd1e7760da4e1776d9cee7db93af1512c88a7.tar.gz opencode-2c9fd1e7760da4e1776d9cee7db93af1512c88a7.zip | |
BREAKING CHANGE: the config structure has changed, custom providers have an `npm` field now to specify which npm package to load. see examples in README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -84,8 +84,8 @@ You can use opencode with any provider listed at [here](https://ai-sdk.dev/provi { "$schema": "https://opencode.ai/config.json", "provider": { - "@ai-sdk/openai-compatible": { - "name": "ollama", + "ollama": { + "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "http://localhost:11434/v1" }, @@ -124,7 +124,8 @@ OpenRouter is not yet in the models.dev database, but you can configure it manua { "$schema": "https://opencode.ai/config.json", "provider": { - "@openrouter/ai-sdk-provider": { + "openrouter": { + "npm": "@openrouter/ai-sdk-provider", "name": "OpenRouter", "options": { "apiKey": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
