Prompt-Interrogation Concatiation Formatting Patch

Change to how the prompt is concatenated with the interrogation. This will prevent excessive commas when concatenating prompt and interrogation like f"{prompt}, {interrogation}"
pull/10/head
Smirking Kitsune 2024-07-30 18:26:13 -06:00 committed by GitHub
parent 261ac7c6e1
commit b1163a5f66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -672,8 +672,7 @@ class Script(scripts.ScriptBuiltinUI):
if prompt == "":
prompt = interrogation
elif in_front == "Append to prompt":
interrogation = f", {interrogation}"
prompt = f"{prompt}{interrogation}"
prompt = f"{prompt.rstrip(', ')}, {interrogation}"
else:
prompt = f"{interrogation}{prompt}"