summaryrefslogtreecommitdiff
path: root/continuedev/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-09 17:43:37 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-09 17:43:37 -0700
commitc84fdf356dccad9bb41140572b5704ee53807021 (patch)
treec79084acd7b01fcd6467e6a8f1e24559f4536c47 /continuedev/src
parent6639ea4a0ca34e259778736e5d0c4e2fc92560f4 (diff)
downloadsncontinue-c84fdf356dccad9bb41140572b5704ee53807021.tar.gz
sncontinue-c84fdf356dccad9bb41140572b5704ee53807021.tar.bz2
sncontinue-c84fdf356dccad9bb41140572b5704ee53807021.zip
say "No edits were made" if true
Diffstat (limited to 'continuedev/src')
-rw-r--r--continuedev/src/continuedev/steps/core/core.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py
index 4b35a758..b0d9d719 100644
--- a/continuedev/src/continuedev/steps/core/core.py
+++ b/continuedev/src/continuedev/steps/core/core.py
@@ -167,10 +167,13 @@ class DefaultModelEditCodeStep(Step):
return output
async def describe(self, models: Models) -> Coroutine[str, None, None]:
- description = await models.gpt3516k.complete(dedent(f"""\
- {self._prompt_and_completion}
-
- Please give brief a description of the changes made above using markdown bullet points. Be concise and only mention changes made to the commit before, not prefix or suffix:"""))
+ if self._prompt_and_completion == "":
+ description = "No edits were made"
+ else:
+ description = await models.gpt3516k.complete(dedent(f"""\
+ {self._prompt_and_completion}
+
+ Please give brief a description of the changes made above using markdown bullet points. Be concise and only mention changes made to the commit before, not prefix or suffix:"""))
name = await models.gpt3516k.complete(f"Write a very short title to describe this requested change (no quotes): '{self.user_input}'. This is the title:")
self.name = self._cleanup_output(name)