Skip to content

feat: batch messages & prompt templates#4

Open
joeymeere wants to merge 4 commits intoSpaceman-Gaming:mainfrom
joeymeere:feat/batch-messages
Open

feat: batch messages & prompt templates#4
joeymeere wants to merge 4 commits intoSpaceman-Gaming:mainfrom
joeymeere:feat/batch-messages

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