karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.63k stars 151 forks source link

Allow for prepending (instead of appending) context to the system message #414

Open tschwinge opened 1 month ago

tschwinge commented 1 month ago

... via new 'system-prepend'.

Certain use cases/LLMs may prefer to first see the context, then the system message.

tschwinge commented 1 month ago

This textually depends on #413 'Consistently use "last user prompt" for where context may be included' (and therefore includes those changes in this PR here).

tschwinge commented 1 month ago

I'll gladly take any pointer about how to re-do gptel--infix-use-context in a more "visually pleasing" way.

tschwinge commented 1 month ago

This textually depends on #413 'Consistently use "last user prompt" for where context may be included' (and therefore includes those changes in this PR here).

I've removed this with the last force-push.

(Not yet properly tested.)

karthink commented 1 month ago

@tschwinge Thanks for the PR. I've exhausted my available time for gptel fixing some bugs in the last release, so it'll be a few days before I can look at this.