it generates entire code instead of targeted changes #714
Replies: 3 comments 2 replies
-
Are you using /COPILOT_GENERATE? it tries to usually do smaller changes, but ofc there is only so much we can do if AI starts halucinating |
Beta Was this translation helpful? Give feedback.
-
The The prompts using CopilotChat.nvim/lua/CopilotChat/config.lua Lines 335 to 346 in ade6c93 You can see in rules CopilotChat.nvim/lua/CopilotChat/prompts.lua Lines 66 to 91 in ade6c93 The fix is likely to generate your own This could be accomplished with something like this: prompts = {
ShortReply = {
system_prompt = 'You are an expert coder who provides short concise answers to questions.',
},
ShortFix = {
prompt = '/ShortReply There is a bug in this code, find it and fix it',
}
} |
Beta Was this translation helpful? Give feedback.
-
I improved the default /COPILOT_GENERATE prompt to try to output code blocks instead of whole text now that we support proper headers (and hopefully AI stops forgetting to add them constantly) it should be better |
Beta Was this translation helpful? Give feedback.
-
sometimes, when working with buffers with 200+ lines, and I ask a simple question, it generates the entire buffer code again plus the answer in it, is there a way to just render the answer ?
Beta Was this translation helpful? Give feedback.
All reactions