diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-07-10 23:36:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 23:36:46 -0700 |
commit | 3f9e7a1fa59c4f684aef544436062f8825d77b31 (patch) | |
tree | f8429e4b4898188e2490d7241043f4d61ed1d909 /continuedev | |
parent | 1f050f737f7fa426bc4e3340abee7753095e792e (diff) | |
parent | efa4c87a31bc5f35fff30bf3642681713834a58a (diff) | |
download | sncontinue-3f9e7a1fa59c4f684aef544436062f8825d77b31.tar.gz sncontinue-3f9e7a1fa59c4f684aef544436062f8825d77b31.tar.bz2 sncontinue-3f9e7a1fa59c4f684aef544436062f8825d77b31.zip |
Merge pull request #233 from continuedev/faster-load
Faster load
Diffstat (limited to 'continuedev')
-rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 11 |
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) |