summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-16 15:02:25 -0400
committerDax Raad <[email protected]>2025-06-16 15:02:25 -0400
commit2c9fd1e7760da4e1776d9cee7db93af1512c88a7 (patch)
treeb26a0422ccca227f84ddf182007792d922e48425 /README.md
parent63996c4189a6f66225a34c43328e616c5963e007 (diff)
downloadopencode-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.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 6b82000c5..9820f28e7 100644
--- a/README.md
+++ b/README.md
@@ -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"