Skip to content

How do I customize the system prompt for :CodeCompanionChat? #162

Closed Answered by jergason
jergason asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jergason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant