From 9746443c65ffe4b6f650c0b1e797a6005c500f2b Mon Sep 17 00:00:00 2001 From: catboxanon <122327233+catboxanon@users.noreply.github.com> Date: Sat, 24 May 2025 12:31:47 -0400 Subject: [PATCH] Add trailing space to avoid conflicts with tags ending in digits --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 95289f1..22de38c 100644 --- a/utils.py +++ b/utils.py @@ -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