dotprompt_dart 0.5.0
dotprompt_dart: ^0.5.0 copied to clipboard
A Dart package for parsing .prompt files for use with LLMs.
0.5.0 #
- started with the stubble package code to serve as a base for a spec compliant dotprompt template language implementation.
0.4.0 #
- Thanks to gspencergoog for a PR that introduces support for Mustache partials in .prompt files, allowing for reusable template snippets.
0.3.0 #
- Enabled web and wasm compatibility
- Breaking Change: replaced DotPrompt.file(filename) with DotPrompt.stream(bytes, name: filename). This allows for web compatibility w/o reduced functionality. Here's how to migrate your code:
// old code
const filename = 'example/prompts/greet.prompt';
final prompt = await DotPrompt.file(filename));
// new code
const filename = 'example/prompts/greet.prompt';
final prompt = await DotPrompt.stream(File(filename).openRead(), name: filename);
0.2.0 #
- integration with dartantic_ai
DotPrompt
constructor name changesDotPrompt.render
argument changes
0.1.0 #
- Initial version.