diff --git a/after/plugin/llm.lua b/after/plugin/llm.lua index a582154..c7cb2e2 100644 --- a/after/plugin/llm.lua +++ b/after/plugin/llm.lua @@ -10,13 +10,23 @@ require("codecompanion").setup({ }, }) end, + phi4 = function() + return require("codecompanion.adapters").extend("ollama", { + name = "phi4", -- Give this adapter a different name to differentiate it from the default ollama adapter + schema = { + model = { + default = "phi4:latest", + }, + }, + }) + end, }, strategies = { chat = { - adapter= "llama3_2", + adapter= "phi4", }, inline = { - adapter="llama3_2", + adapter="phi4", } } })