* removed unnecessary processing of variables.

* error control when reading wildcard or mapping files, and second chance for files with incorrect encoding.
* fix processing inside extranetwork tag.
This commit is contained in:
Antonio Cordero Balcazar
2025-09-27 13:22:19 +02:00
parent 8769c21ee5
commit db43d409f8
10 changed files with 109 additions and 58 deletions
+3 -3
View File
@@ -799,12 +799,12 @@ class TestPromptPostProcessor(TestPromptPostProcessorBase):
def test_ch_choicesinsidelora(self): # simple choices inside a lora
self.process(
PromptPair("<lora:test1:1><lora:test2:{0.2|0.5|0.7|1}>", ""),
PromptPair("<lora:test1:1><lora:test2:0.7>", ""),
PromptPair("<lora:test1:1><lora:test__other__name:1><lora:test2:{0.2|0.5|0.7|1}>", ""),
PromptPair("<lora:test1:1><lora:test__other__name:1><lora:test2:0.7>", ""),
ppp=self.nocupppp,
)
def test_ch_removelorawithchoices(self): # remove lora with choices inside
def test_ch_removelorawithchoices(self):
self.process(
PromptPair("<lora:test1:1><lora:test2:{0.2|0.5|0.7|1}>", ""),
PromptPair("", ""),
+2 -1
View File
@@ -1,2 +1,3 @@
# wildcard3
__2$$,$$text/wildcard2__
__2$$,$$text/wildcard2__
0::áüç