Spyke
casual_perchance·Casual PerchancebyMax

[ai-character-chat] Is it possible to stop the message when a certain word is met?

In my case, one chat repeatedly tries to generate images despite me never using this feature, so I'd like to stop messages if is encountered.

View original on lemmy.world

i don't know about image generation but you can use this to stop on a word link me your gen i want to see it in action

if (output.includes(stopWord)) { output = "The conversation has ended."; }

2

Also, it's Artificial Intelligence. You sure can code an AI to review your text every time, and if it detects , force quit responding. However, that would cause major lag, and I have no idea how to code like that.

1

You reached the end

[ai-character-chat] Is it possible to stop the message when a certain word is met? | Spyke