Spyke
perchance·Perchance - Create a Random Text Generatorbykljafgg9r0

Better way to organize characters

For AI chat, in long stories there can be tons of characters (their names below the send message button) and overwhelming. Deleting them one by one is tedious-perhaps can we make it so that the latest chatters are displayed at the top? that way its easier

View original on lemmy.world

You can edit the getRecentCharacterNames() function on the Lists panel (left text editor) and on the sortedUniqueNames you can remove the .map( ... ) portion and the aName.localeCompare(bName) like so:

// from
// let sortedUniqueNames = Object.entries(nameHist).map(e => [e[0], Math.round(e[1]/10)]).sort(([aName, aCount], [bName, bCount]) => bCount - aCount || aName.localeCompare(bName)).map(([name]) => name);
// to
let sortedUniqueNames = Object.entries(nameHist).sort(([aName, aCount], [bName, bCount]) => bCount - aCount).map(([name]) => name);

If you save the generator, it would create your own fork. You can then download the story from the original one and import it to the new fork.

1

You reached the end

Better way to organize characters | Spyke