Skip to content

Commit 93f7d5d

Browse files
--reverse-prompt, --logit-bias
1 parent 5ac0fe9 commit 93f7d5d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

run_with_preset.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
if cli_arg == "logit-bias":
4242
for token, bias in value.items():
4343
command_list.append("--logit-bias")
44-
command_list.append(f"{token}{bias}")
44+
command_list.append(f"{token}{bias:+}")
45+
continue
46+
47+
if cli_arg == "reverse-prompt" and not isinstance(value, str):
48+
for rp in value:
49+
command_list.append("--reverse-prompt")
50+
command_list.append(str(rp))
4551
continue
4652

4753
command_list.append(f"--{cli_arg}")

0 commit comments

Comments
 (0)