diff --git a/docs/docs/customization/slash-commands.md b/docs/docs/customization/slash-commands.md index d40f44b51..c78f961bc 100644 --- a/docs/docs/customization/slash-commands.md +++ b/docs/docs/customization/slash-commands.md @@ -4,7 +4,6 @@ description: Shortcuts that can be activated by prefacing your input with '/' keywords: [slash command, custom commands, step] --- - # Slash Commands Slash commands are shortcuts that can be activated by prefacing your input with '/'. For example, the built-in '/edit' slash command let you stream edits directly into your editor. @@ -62,9 +61,11 @@ class CommitMessageStep(Step): # Ask the LLM to write a commit message, # and set it as the description of this step - self.description = await sdk.models.default.complete( + resp = await sdk.models.default.complete( f"{diff}\n\nWrite a short, specific (less than 50 chars) commit message about the above changes:") + yield SetStep(description=resp) # Updates are yielded so the UI can be incrementally updated + config=ContinueConfig( ... slash_commands=[