diff options
Diffstat (limited to 'server/continuedev/libs/llm/prompts/edit.py')
-rw-r--r-- | server/continuedev/libs/llm/prompts/edit.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/server/continuedev/libs/llm/prompts/edit.py b/server/continuedev/libs/llm/prompts/edit.py new file mode 100644 index 00000000..eaa694c5 --- /dev/null +++ b/server/continuedev/libs/llm/prompts/edit.py @@ -0,0 +1,27 @@ +from textwrap import dedent + +simplified_edit_prompt = dedent( + """\ + Consider the following code: + ``` + {{{code_to_edit}}} + ``` + Edit the code to perfectly satisfy the following user request: + {{{user_input}}} + Output nothing except for the code. No code block, no English explanation, no start/end tags.""" +) + +simplest_edit_prompt = dedent( + """\ + Here is the code before editing: + ``` + {{{code_to_edit}}} + ``` + + Here is the edit requested: + "{{{user_input}}}" + + Here is the code after editing:""" +) + +codellama_infill_edit_prompt = "{{file_prefix}}<FILL>{{file_suffix}}" |