Replies: 1 comment
-
This is how I have my config setup: adapters = {
anthropic = require("codecompanion.adapters").use("anthropic", {
env = {
api_key = "cmd:op read op://personal/Anthropic_API/credential --no-newline",
},
}),
openai = require("codecompanion.adapters").use("openai", {
env = {
api_key = "cmd:op read op://personal/OpenAI_API/credential --no-newline",
},
}),
llama3 = require("codecompanion.adapters").use("ollama", {
schema = {
model = {
default = "llama3:latest",
},
num_ctx = {
default = 16384,
},
num_predict = {
default = -1,
},
},
}),
}, Would you need anymore than that?! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes we need to choose different api_key and base according to different models.
Beta Was this translation helpful? Give feedback.
All reactions