gptel
gptel copied to clipboard
Make `gptel--num-messages-to-send` conversation-local?
In my workflow, I sometimes (a.k.a all the time) juggle multiple conversations. However in some of those, I just require let's say the last 5 messages as context or even less.
In some others, I require the full context all the time (even though those tend to be not that long just to keep costs down).
Is there any way I could set the gptel--num-messages-to-send
as a buffer local variable per gptel-mode
buffer? And even better, could this value be persisted in the :PROPERTIES:
of the org-mode buffer upon save, so that I don't have to re-set each time I switch between gptel-mode
buffers?
Additionally I want to thank you for this package - I have integrated that into my workflow smoothly and I must say, the transient menu is such a beautiful thing to have and so convenient! My peers always look pretty jealous when they see me just select a region, tell the mode what to do and then sit back and relax as the model just takes care of stuff. So super convenient! Especially for reorganizing org-mode content!