8000 feat: batch messages & prompt templates by joeymeere · Pull Request #4 · Spaceman-Gaming/daemon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: batch messages & prompt templates #4

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joeymeere
Copy link
Collaborator

Introduces .multipleMessages to the Daemon class, which takes multiple messages (either from "user" or "assistant") and subsequently feeds all of the given messages into text generation.

Additionally, this PR adds optional prompt overrides and templating. A user calling the .message or .multipleMessages methods can now specify options for customSystemPrompt and customMessageTemplate.

customSystemPrompt:
Overrides the default system prompt.

customMessageTemplate:
Takes a template string for the relevant variables to be added in. Any omitted variables will not be included, and any extra variables will fail template validation.

@joeymeere joeymeere marked this pull request as ready for review February 6, 2025 17:52
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
0