Skip to content

Conversation

@appleboy
Copy link
Owner

@appleboy appleboy commented Feb 27, 2025

  • Add promptFolder variable and setting it via command line flag
  • Create and validate promptFolder during configuration initialization
  • Implement loading of custom prompt templates from promptFolder
  • Implement the prompt command to load default prompt data
  • Add function to get raw data of the template
  • Initialize templates as an empty map to avoid redundant checks
  • Add support to load templates from a specified directory
  • Add tests for loading templates from a directory

fix #142
fix #216

- Add `promptFolder` variable and setting it via command line flag
- Create and validate `promptFolder` during configuration initialization
- Implement loading of custom prompt templates from `promptFolder`
- Implement the `prompt` command to load default prompt data
- Add function to get raw data of the template
- Initialize `templates` as an empty map to avoid redundant checks
- Add support to load templates from a specified directory
- Add tests for loading templates from a directory

Signed-off-by: appleboy <[email protected]>
@appleboy appleboy merged commit 2a39894 into main Feb 27, 2025
10 checks passed
@appleboy appleboy deleted the prompt branch February 27, 2025 15:41
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.

The generated commit messages can easily differ significantly from the actual situation. Feature request: Make prompt templates customizable

2 participants