Skip to content

Commit ae94b7f

Browse files
committed
opencode ollama provider
1 parent 6b3a86f commit ae94b7f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

home-manager/development/opencode.nix

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ in
154154
};
155155
};
156156
};
157+
ollama = {
158+
npm = "@ai-sdk/openai-compatible";
159+
options = {
160+
baseURL = "http://localhost:11434/v1";
161+
};
162+
models = {
163+
"gpt-oss:latest" = {
164+
tools = true;
165+
};
166+
};
167+
};
157168
};
158169
mcp = {
159170
viro = {

0 commit comments

Comments
 (0)