latitudegames / AIDungeon

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

[BUG] AI sometimes generates unpaired doublequotes. #243

Open Sporking opened 4 years ago

Sporking commented 4 years ago

When the AI generates text, it often stops in the middle of dialog that a character is speaking, emitting one doublequote character followed by some text and then stopping. This is awkward because the player then supposedly has to continue whatever dialog the AI was in the middle of:

> Hit orc. You hit the orc. The orc cries “You bastard > <What do I type here?>

I would like the AI to always continue generating text until a second doublequote character is emitted. Or, more specifically, every text output by the AI should always contain an even number of doublequote characters. (It might be reasonable to have some kind of an upper limit on doublequoted text length where it would allow an odd number of doublequotes if the AI tries to generate a huge amount of text containing no doublequotes after an initial doublequote.)