Skip to content

Commit ba8a3e6

Browse files
Fix /dictation alphabetical order in help menu and SLASH_COMMANDS
Model: claude-sonnet-4.6 Co-Authored-By: bpsa2 <241537330+bpsa2@users.noreply.github.com>
1 parent 67e7d79 commit ba8a3e6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/smolagents/bp_cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,11 @@ def _save_aliases(aliases: dict):
601601
SLASH_COMMANDS = [
602602
"/alias", "/auto-approve", "/cd", "/clear", "/compress", "/compression",
603603
"/compression-keep-recent-steps", "/compression-max-uncompressed-steps",
604-
"/compression-model", "/exit", "/help",
604+
"/compression-model", "/dictation", "/exit", "/help",
605605
"/load-instructions", "/plan", "/pwd", "/redo", "/repeat", "/repeat-prompt", "/run-prompt", "/run-py", "/save",
606606
"/session-load", "/session-save",
607607
"/show-compression-stats", "/show-memory-stats", "/show-stats",
608608
"/save-step", "/set-max-steps", "/show-step", "/show-steps", "/show-tools", "/undo-steps", "/verbose",
609-
"/dictation",
610609
]
611610

612611

@@ -626,6 +625,7 @@ def print_help():
626625
table.add_row("/compression-keep-recent-steps <N>", "Change keep_recent_steps")
627626
table.add_row("/compression-max-uncompressed-steps <N>", "Change max_uncompressed_steps")
628627
table.add_row("/compression-model <model>", "Switch compression model")
628+
table.add_row(r"/dictation \[on|off]", "Toggle dictation (requires BPSA_DICTATION_TRANSCRIBER)")
629629
table.add_row("/exit", "Exit the REPL")
630630
table.add_row("/help", "Show this help message")
631631
table.add_row("/load-instructions", "Load agent instruction files into next prompt")
@@ -649,7 +649,6 @@ def print_help():
649649
table.add_row("/show-tools", "List all loaded tools")
650650
table.add_row("/undo-steps \[N]", "Remove last N steps from memory (default: 1)")
651651
table.add_row("/verbose", "Toggle verbose output")
652-
table.add_row(r"/dictation \[on|off]", "Toggle dictation (requires BPSA_DICTATION_TRANSCRIBER)")
653652
console.print(table)
654653
console.print()
655654

0 commit comments

Comments
 (0)