lmg-anon / mikupad

LLM Frontend in a single html file
https://lmg-anon.github.io/mikupad/mikupad.html
Creative Commons Zero v1.0 Universal
175 stars 24 forks source link

New undo/redo system #66

Open lmg-anon opened 1 month ago

lmg-anon commented 1 month ago

Fixes #27

This adds a new undo/redo system that allows for undoing predictions as well as text changes made by the user, all while being aware of prompt chunks. To be honest, I don't like having to reinvent the wheel, because I bet my implementation will be worse than what is done by the browser, but I don't have any clue on how I could leverage the browser undo to achieve a result like this. I guess it's just impossible.