Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 49 forks source link

dont remove agents silently #120

Open teto opened 3 months ago

teto commented 3 months ago

Opening a follow up of https://github.com/Robitx/gp.nvim/pull/93#issuecomment-2016846974 not to pollute the PR: in https://github.com/Robitx/gp.nvim/blob/d76be3d067b4e7352d1e744954327982cf1d24aa/lua/gp/init.lua#L745 gp.nvim removes silently agents that dont specify .model agent.system_prompt.

It's not possible to understand without looking at the code, I think it would be better to generate an error during startup, at minimum notify the user in checkhealth gp