From 37cc2b2d8d954a1de75d99ae9d25596229cf1808 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 7 Nov 2023 10:46:59 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20update=20slash=20command=20docum?= =?UTF-8?q?entation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/customization/slash-commands.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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=[