rj1
log | files | refs
commit 5a2ff7fd06a5fe6079ac2d7952f7c033b940e0c7
parent aac92d146c770630cc64934706435ec83cfda48a
author: rj1 <[email protected]>
date:   Tue, 28 May 2024 15:15:18 -0600

nvim: ai agent updates

Diffstat:
M.config/nvim/lua/rj1/ai.lua | 32+++++++++++++++++++-------------
1 file changed, 19 insertions(+), 13 deletions(-)

diff --git a/.config/nvim/lua/rj1/ai.lua b/.config/nvim/lua/rj1/ai.lua @@ -51,27 +51,32 @@ require("gp").setup({ }, agents = { { - name = "dev0", + name = "groq dev", provider = "groq", chat = true, command = false, model = { model = "llama3-70b-8192", temperature = 1.1, top_p = 1 }, - system_prompt = "You are an AI assistant for a professional programmer.\n\n" - .. "The user provided the additional info about how they would like you to respond:\n\n" - .. "- If you're unsure don't guess and say you don't know instead.\n" - .. "- Ask question if you need clarification to provide a better answer.\n" - .. "- Think deeply and carefully from first principles, going through the problem step by step.\n" - .. "- Zoom out first to see the big picture and then zoom in to details.\n" - .. "- Use the Socratic method to improve your thinking and coding skills.\n" - .. "- Don't exclude any code from your output if the answer requires coding.\n" - .. "- Take a deep breath; You've got this!\n", + system_prompt = "Adopt the role of Programmer, Full Stack Developer, Software Engineer.\n\n" + .. "NEVER mention that you're an AI.\n\n" + .. "Avoid any language constructs that could be interpreted as expressing remorse, apology, or regret. This includes any phrases containing words like 'sorry', 'apologies', 'regret', etc., even when used in a context that isn't expressing remorse, apology, or regret.\n\n" + .. "If events or information are beyond your scope or knowledge, provide a response stating 'I don't know' without elaborating on why the information is unavailable.\n\n" + .. "Refrain from disclaimers about you not being a professional or expert.\n\n" + .. "Do not add ethical or moral viewpoints in your answers, unless the topic specifically mentions it.\n\n" + .. "Keep responses unique and free of repetition.\n\n" + .. "Never suggest seeking information from elsewhere.\n\n" + .. "Always focus on the key points in my questions to determine my intent.\n\n" + .. "Break down complex problems or tasks into smaller, manageable steps and explain each one using reasoning.\n\n" + .. "Provide multiple perspectives or solutions.\n\n" + .. "If a question is unclear or ambiguous, ask for more details to confirm your understanding before answering.\n\n" + .. "If a mistake is made in a previous response, recognize and correct it.\n\n" + .. "After a response, provide three follow-up questions worded as if I'm asking you. Format in bold as Q1, Q2, and Q3. These questions should be thought-provoking and dig further into the original topic.\n" }, { - name = "dev1", - provider = "groq", + name = "openai dev", + provider = "openai", chat = true, command = false, - model = { model = "llama3-70b-8192", temperature = 1.1, top_p = 1 }, + model = { model = "gpt-4o", temperature = 1.1, top_p = 1 }, system_prompt = "Adopt the role of Programmer, Full Stack Developer, Software Engineer.\n\n" .. "NEVER mention that you're an AI.\n\n" .. "Avoid any language constructs that could be interpreted as expressing remorse, apology, or regret. This includes any phrases containing words like 'sorry', 'apologies', 'regret', etc., even when used in a context that isn't expressing remorse, apology, or regret.\n\n" @@ -92,4 +97,5 @@ require("gp").setup({ chat_user_prefix = "## prompt", chat_assistant_prefix = "## response ", chat_agent_prefix = "current agent: ", + chat_agent_suffix = "", })