mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-09-01 18:09:08 +00:00
editor never attempt to fix exposition on user input if input starts with command characters @, ! or /
This commit is contained in:
parent
2355f9fd4f
commit
59f6318d77
1 changed files with 6 additions and 0 deletions
|
@ -244,6 +244,12 @@ class EditorAgent(
|
|||
|
||||
@set_processing
|
||||
async def cleanup_user_input(self, text: str, as_narration: bool = False, force: bool = False):
|
||||
|
||||
# special prefix characters - when found, never edit
|
||||
PREFIX_CHARACTERS = ("!", "@", "/")
|
||||
if text.startswith(PREFIX_CHARACTERS):
|
||||
return text
|
||||
|
||||
if (not self.fix_exposition_user_input or not self.fix_exposition_enabled) and not force:
|
||||
return text
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue