mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
skip WI matches on no text
This commit is contained in:
@@ -1144,6 +1144,8 @@ class KoboldStoryRegister(object):
|
||||
action = self.actions[action_id]['wi_highlighted_text']
|
||||
else:
|
||||
action = self.story_settings.prompt_wi_highlighted_text
|
||||
if action['text'] == "":
|
||||
return
|
||||
i=0
|
||||
while i < len(action):
|
||||
if action[i]['WI matches'] is None and key in action[i]['text']:
|
||||
|
Reference in New Issue
Block a user