Add trailing space to avoid conflicts with tags ending in digits

This commit is contained in:
catboxanon
2025-05-24 12:31:47 -04:00
committed by GitHub
parent 0a1c18ef89
commit 9746443c65
+1 -1
View File
@@ -189,7 +189,7 @@ def prompt_stack_to_nai(l, weight_per_brace=0.05, syntax_mode="brace"):
brace_count = round((weight - 1.0) / weight_per_brace)
result += "{" * brace_count + "[" * -brace_count + prompt + "}" * brace_count + "]" * -brace_count
elif syntax_mode == "numeric":
result += f"{weight:g}::{prompt}::"
result += f"{weight:g}::{prompt} ::"
else:
result += el
return result