-
I have my own system prompt I like to use with llms in general. I'm confused about how to thread it in to codecompanion. How can I provide my own system prompt? For context, I'm using the Anthropic adapter. My setup basically looks like this: require("codecompanion").setup({
adapters = {
anthropic = function()
return require("codecompanion.adapters").extend("anthropic", {
env = {
api_key = "ANTHROPIC_AI_KEY"
},
})
end,
},
}) I am confused by the interaction between custom prompts, strategies, etc. I just want to use the normal |
Beta Was this translation helpful? Give feedback.
Answered by
jergason
Sep 2, 2024
Replies: 1 comment
-
Ah HAH, I missed it when reading the full config options. This did the trick: require("codecompanion").setup({
adapters = {
anthropic = function()
return require("codecompanion.adapters").extend("anthropic", {
env = {
api_key = "ANTHROPIC_AI_KEY"
},
})
end,
},
opts = { system_prompt = "MY SUPER COOL SYSTEM PROMPT" },
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jergason
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah HAH, I missed it when reading the full config options. This did the trick: