diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-09-07 16:38:19 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-09-07 16:38:19 -0500 |
commit | 2c31f903bfa20df6659c84e734d43500ca38e0be (patch) | |
tree | cd93710298df8fcbd90b763a9184f79d224c59b2 /nvim/.config | |
parent | 879bbe8ee8c712cfa223f89d20715c3698ba521d (diff) |
fix(nvim): use less context tokens for ollama
Diffstat (limited to 'nvim/.config')
-rw-r--r-- | nvim/.config/nvim/lua/plugins/codecompanion.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nvim/.config/nvim/lua/plugins/codecompanion.lua b/nvim/.config/nvim/lua/plugins/codecompanion.lua index 0d70b9e..0bb7501 100644 --- a/nvim/.config/nvim/lua/plugins/codecompanion.lua +++ b/nvim/.config/nvim/lua/plugins/codecompanion.lua @@ -23,6 +23,17 @@ local M = { adapter = "ollama", }, }, + adapters = { + ollama = function() + return require("codecompanion.adapters").extend("ollama", { + schema = { + num_ctx = { + default = 8192, + }, + }, + }) + end, + }, }, }, } |