Update llm lua to include phi4

This commit is contained in:
Daniel Weber 2025-01-08 16:26:45 -05:00
parent ba187eae92
commit cd709ec0f4

View File

@ -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",
}
}
})