Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

gptel: Support prefixing dynamic system messages with lambda #654

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant