r/perchance • u/Rough_Bird_489 • 9h ago
Discussion Response to a bug
https://www.reddit.com/r/perchance/comments/1ybjo8k/repeating_previous_messages_and_isnt_generating/
This isn't a model bug, but it's a code bug on your generator, if you want a unique refresh, make a "anti repeat message" so that the ai won't read that message and you could get an alternative one, there some generators I had seen that had the anti repeat message: perchance.org/moechat
you can take their code or tell ai helper to see what the anti repeat message does.
also here some information about anti repeat message:
the anti-repeat stack on refresh (›):
chat.js:retryAt(idx) + engine.js:redo():
1.) Old text kept as negative example: retryAt leaves m.text in chat.messages[idx] and calls Engine.redo, which does:
// engine.js:4481 \Your previous reply (do not repeat it — take a new but equally fitting direction):\n${old.text.slice(0,900)}``your modal direction if any. That's what forces a unique take.
2.) Tail ban-list: replyTail() appends spentBlock(chat) (engine.js:3658 / slop.js:spent()) — openers/tells/phrases used in last 6 replies — or fallback lastTell(chat) (engine.js:3623): Do not reuse this exact move from the last reply: "...".
3.) Detection only: Slop.scan() (slop.js:276, repeat-tell rule) just flags repeats after the fact for the Tighten chip, it never rewrites. So uniqueness = old reply in-context as "don't repeat" + spent/tell blocklist.