jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.64k stars 312 forks source link

Function and non-function system message for ChatGPTEditWithInstructions #281

Closed thehunmonkgroup closed 11 months ago

thehunmonkgroup commented 12 months ago

Small enhancement now that #251 has landed:

When OpenAI functions are used, the function returns brief explanations of the code changes which are displayed in a notification. For the non-function case, these descriptions are spurious and inserted along with the changed code.

Instead, use targeted system messages for both cases, so the non-function case outputs only the code.