Skip to content

gptel: Support prefixing dynamic system messages with lambda #654

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pabl0
Copy link
Contributor

@pabl0 pabl0 commented Feb 18, 2025

  • gptel.el (gptel--parse-directive): Add optional prefix-lambda argument to prepend a lambda symbol (λ) and the first line of the documentation string, if present, to the system message.

  • gptel-prefix.el (gptel--infix-add-directive): Call gptel--parse-directive' with the new prefix-lambda' arg.


This is of course much more fun if #652 gets merged.

@pabl0
Copy link
Contributor Author

pabl0 commented Feb 18, 2025

(And pushed a brown bag bugfix, never use setcar when tired :)

* gptel.el (gptel--parse-directive): Add optional `prefix-lambda`
argument to prepend a lambda symbol (λ) and the first line of the
documentation string, if present, to the system message.

* gptel-prefix.el (gptel--infix-add-directive): Call
`gptel--parse-directive' with the new `prefix-lambda' arg.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant