opencode
opencode copied to clipboard
Osaurus integration leads to `Exceeded model context window size`
Description
I'm trying to use Osaurus as a model provider in a macOS environment, since I want to use Apple's Foundation local model. This is my configuration:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"osaurus": {
"npm": "@ai-sdk/openai-compatible",
"name": "Osaurus",
"options": {
"baseURL": "http://127.0.0.1:1337"
},
"models": {
"foundation": {
"name": "Apple Foundation Model",
"limit": {
"context": 200000,
"output": 65536
}
}
}
}
}
}
And this is the error I get when I try to push any prompt:
Exceeded model context window size
I am working in VSCode but I also tried in the terminal through opencode run --model osaurus/foundation "hello"
Plugins
None
OpenCode version
1.0.220
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
No response