generated from silverbulletmd/silverbullet-plug-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Additional insertAt options, add support for postprocessors to templated prompts #68
Merged
Commits on Sep 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ab57716 - Browse repository at this point
Copy the full SHA ab57716View commit details -
Add global metadata support to enrichChatMessages
Enhance the enrichChatMessages function to include optional global metadata. This allows for injecting global information into the chat message enrichment process. - Update function signature to accept globalMetadata - Merge globalMetadata into the template context
Configuration menu - View commit details
-
Copy full SHA for b5b6006 - Browse repository at this point
Copy the full SHA b5b6006View commit details -
Expand insertAt options for templated prompts
Enhance the functionality of `insertAt` by adding more options to facilitate better template responses. This includes support for inserting at various points within lines, items, and surrounding lines. - Added insertAt options: - "start-of-line" - "end-of-line" - "start-of-item" - "end-of-item" - "new-line-above" - "new-line-below" - "replace-line" - Updated global metadata structure to support additional options - Implemented logic for new insertAt cases
Configuration menu - View commit details
-
Copy full SHA for 8f784d9 - Browse repository at this point
Copy the full SHA 8f784d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b23999 - Browse repository at this point
Copy the full SHA 6b23999View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c8c2a8 - Browse repository at this point
Copy the full SHA 6c8c2a8View commit details
Commits on Sep 9, 2024
-
Add post-processor functionality to prompts
- Enhance `.gitignore` to exclude `docs/Library/Core` - Export utility functions in `editorUtils.ts` for line operations based on text position - Modify `Provider.ts` to handle post-processors in `AbstractProvider`, processing data after response is complete - Update `prompts.ts` to support post-processors in AI prompt templates - Extend `StreamChatOptions` in `types.ts` to include `postProcessors` array - Define `PostProcessorData` type to pass context to post-processors
Configuration menu - View commit details
-
Copy full SHA for d038dcf - Browse repository at this point
Copy the full SHA d038dcfView commit details -
Add space script functions to demo post processing
- Introduced `convertToBulletList` for transforming strings into bullet lists - Added `convertToTaskList` to ensure each line in a string is a markdown task - Implemented `indentOneLevel` to indent lines based on the previous line - Created `removeDuplicateStart` to remove the first line if it's a duplicate These functions enhance the utility of space scripts, making them more versatile.
Configuration menu - View commit details
-
Copy full SHA for 1488c4e - Browse repository at this point
Copy the full SHA 1488c4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8179126 - Browse repository at this point
Copy the full SHA 8179126View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.