-
Hi, I'm trying to switch between a local ollama adapter and an anthropic adapter, defined thusly: adapters = {
ollama = function()
return require("codecompanion.adapters").extend("ollama", {
name = "qwen",
env = {
url = [REDACTED],
},
headers = {
["Content-Type"] = "application/json",
["Authorization"] = "Bearer ${api_key}",
},
parameters = {
sync = true,
},
schema = {
model = {
default = "qwen2.5-coder:32b",
},
},
})
end,
anthropic = function()
return require("codecompanion.adapters").extend("anthropic", {
name = "claude",
schema = {
model = {
default = "claude-3-5-sonnet-20241022",
},
max_tokens = { default = 4096 },
},
})
end,
}, These adapters work fine in isolation, and with default strategies set to 'ollama', inline editing is handled by Qwen2.5-coder. I am able to use The README provides advice that the adapter may be selected by setting the
It's unclear how to select an adapter using the Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Moved this to #518 |
Beta Was this translation helpful? Give feedback.
Moved this to #518