Brawlence / SD_api_pics

An extension to oobabooga's TextGen allowing you to receive pics generated by Automatic1111's SD API
12 stars 1 forks source link

"no viable description in reply" from text between asterisks #6

Closed qcezwsx closed 10 months ago

qcezwsx commented 1 year ago

for example if there is only an action description in response , like *You're standing right outside the adventurer guild, what do you want to do?* You will get no viable description in reply, try regenerating as an answer from the bot.

That makes it unusable in RPG style bots. It's very sad because they are like made for each other with adventure mode.

Maybe there is a workaround?

Brawlence commented 10 months ago

Yes, there's a workaround. Currently any text in between * asterics * gets cleaned out; you can disable it by commenting out string = remove_surrounded_chars(string) in the function def output_modifier(string)

Brawlence commented 10 months ago

The needed string is located here if you use this repository script OR here if you use the ooba's included version.

Brawlence commented 10 months ago

TODO: make a toggle to change this behaviour via UI?