feat: update opencode settings to use model version with bigger context.

This commit is contained in:
CronyAkatsuki 2026-01-18 16:54:16 +01:00
parent 22565726b3
commit a95d2aaba4
2 changed files with 25 additions and 3 deletions

View file

@ -28,7 +28,7 @@
programs.opencode = {
enable = true;
settings = {
model = "ollama/gpt-oss:20b";
model = "ollama/gpt-oss-20b-high-32k";
provider = {
ollama = {
npm = "@ai-sdk/openai-compatible";
@ -37,10 +37,16 @@
baseURL = "http://127.0.0.1:11434/v1";
};
models = {
"gpt-oss:20b" = {
name = "gpt-oss:20b";
"gpt-oss-20b-high-32k" = {
name = "gpt oss";
id = "gpt-oss-20b-32k";
reasoning = true;
tools = true;
options = {
extraBody = {
think = "high";
};
};
};
};
};