From cd709ec0f436cd63123b627f3937e15481ec2ce8 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Wed, 8 Jan 2025 16:26:45 -0500 Subject: [PATCH] Update llm lua to include phi4 --- after/plugin/llm.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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", } } })