latitudegames / AIDungeon

Infinite adventures await!
http://www.aidungeon.io/
MIT License
3.18k stars 555 forks source link

[BUG] AI-generated text in saved story was different from what was saved #242

Open Sporking opened 4 years ago

Sporking commented 4 years ago

On my iPhone, I had written a story which I was still working on. I had several pages worth of back-and-forth with the AI. I’m pretty sure I used the “/remember” feature a few times. The story seemed to be going in some interesting directions. I put it aside last night. Today, when I reentered AI Dungeon, I found myself at the initial list-of-five-options story prompt, so I went into “My Stories” and reopened the story I had been working on... except it wasn’t the same as when I had left it. All of the text I had typed was the same, but the text generated by the AI in response to each block of my text was often quite different, so much so that the story no longer made sense (since some of my responses had relied on elements introduced by the AI in its responses, but the new generated text was now not introducing these elements).

This is a bad bug. When a story gets saved, whether by deliberate user “save” action, by autosave when the app gets switched away from, or by the app getting restarted or crashing, the story should be saved exactly as it was, verbatim. There should be no regeneration of the AI’s responses. At all.

For one thing, the AI’s responses are a bit probabilistic: entering some text, using /revert, then entering the same text again often produces a different result. So there is no guarantee that the same sequence of entered user text blocks will yield the same responses from the AI if executed a second time. For another thing, the exact point in the sequence where a “/remember” prompt is issued often has effects on the text generated from that point forward.

Please modify all versions of AI Dungeon to save the entire text of a story exactly as the user last saw it, and to not ever try to regenerate the AI’s responses from the user’s entered text blocks.