Open charludo opened 7 months ago
Good point. My initial idea was to introduce some kind of templates by allowing the saving of system messages and parameters. Do you think this will solve the problem and work for you?
Good point. My initial idea was to introduce some kind of templates by allowing the saving of system messages and parameters. Do you think this will solve the problem and work for you?
As long as those are stored and read per project rather than globally, I think it should, yes!
General idea
I would love to see a feature similar to what Robitx/gp.nvim#50 has with their
:GpContext
command, namely being able to add a file like.chatgpt.md
to the git root directory, the content of which would then be prepended to new chats - either as a system message, or actually prepended to the first user message.Usecase
I find myself re-typing the same context quite often, e.g.:
before getting to my actual question.
Another usecase would be something like:
Obviously this context is highly project dependant, but it is also very much a constant within each project.
Proposed solution
Add two new options, e.g.
project_context_file
andproject_context_type
. If theproject_context_file
exists in the git root, set its content as the system message ifproject_context_type == "system"
or prepend it to the first message of each new chat ifproject_context_type == "prepend"
(or something along those lines).