From 2f5b79505fb813fa3c5a9c90665629a003fb3f5b Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Mon, 14 Jul 2025 09:11:35 +0100 Subject: [PATCH] switch back to ollama now that qwen3 works with tools --- lua/plugins/ai/codecompanion.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lua/plugins/ai/codecompanion.lua b/lua/plugins/ai/codecompanion.lua index 2b8f066..a541a4d 100644 --- a/lua/plugins/ai/codecompanion.lua +++ b/lua/plugins/ai/codecompanion.lua @@ -29,7 +29,7 @@ return { return require('codecompanion.adapters').extend('ollama', { schema = { model = { - default = 'devstral', + default = 'qwen3:14b', }, }, }) @@ -49,10 +49,15 @@ return { allow_insecure = true, }, --Refer to: https://github.com/olimorris/codecompanion.nvim/blob/main/lua/codecompanion/config.lua + -- strategies = { + -- chat = { adapter = 'anthropic' }, + -- inline = { adapter = 'anthropic' }, + -- cmd = { adapter = 'anthropic' }, + -- }, strategies = { - chat = { adapter = 'anthropic' }, - inline = { adapter = 'anthropic' }, - cmd = { adapter = 'anthropic' }, + chat = { adapter = 'ollama' }, + inline = { adapter = 'ollama' }, + cmd = { adapter = 'ollama' }, }, }, },