Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@splatterxl splatterxl released this 15 Jan 17:51
· 4 commits to main since this release

This release adds a limit option to GenerationOptions passed to any generation function.

const map = await loadArray([
  "i like apples",
  "apples are my favourite fruit",
  "i like fruit but chocolate bars are objectively better",
  "chocolate bars are delicious",
]);

generateFromMap(map, { limit: 40 });

The output may exceed this maximum length in rare cases but the library will stop generation after the string reaches the length defined in this option.


npm link: https://www.npmjs.com/package/mrkv/v/1.1.0