summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-14 18:55:39 -0400
committerDax Raad <[email protected]>2025-06-14 18:55:39 -0400
commit2ea0399aa72adf11638f023b02f9434e2ba0de7c (patch)
tree41824baff44d825d02f17077c571196ac1d2fb83 /README.md
parentfa1266263da67e5f577068822c08fe140c95679d (diff)
downloadopencode-2ea0399aa72adf11638f023b02f9434e2ba0de7c.tar.gz
opencode-2ea0399aa72adf11638f023b02f9434e2ba0de7c.zip
docs: use ollama example
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 7 insertions, 10 deletions
diff --git a/README.md b/README.md
index 5924c906b..1c096c110 100644
--- a/README.md
+++ b/README.md
@@ -82,17 +82,16 @@ You can use opencode with any provider listed at [here](https://ai-sdk.dev/provi
```json title="opencode.json"
{
- "$schema": "http://opencode.ai/config.json",
+ "$schema": "https://opencode.ai/config.json",
"provider": {
"@ai-sdk/openai-compatible": {
- "name": "MySpecialProvider",
+ "name": "ollama",
"options": {
- "apiKey": "xxx",
- "baseURL": "https://api.provider.com/v1"
+ "baseURL": "http://localhost:11434/v1"
},
"models": {
- "my-model-name": {
- "name": "My Model Name"
+ "llama2": {
+ "name": "llama2"
}
}
}
@@ -117,9 +116,9 @@ $ bun run src/index.ts
### FAQ
-#### How do I use this with OpenRouter
+#### How do I use this with OpenRou?ter
-Theoretically you can use this with OpenRouter with config like this
+OpenRouter is not yet in the models.dev database but you can configure it manually.
```json title="opencode.json"
{
@@ -139,5 +138,3 @@ Theoretically you can use this with OpenRouter with config like this
}
}
```
-
-However we are using [ai-sdk v5](https://ai-sdk.dev) which OpenRouter does not support yet. The moment they do this will work