📝 update slash command documentation
This commit is contained in:
parent
131087a158
commit
37cc2b2d8d
1 changed files with 3 additions and 2 deletions
|
|
@ -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=[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue