no nested tags in completion
This commit is contained in:
parent
a1a60ba990
commit
20b4b2aa87
1 changed files with 1 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ class DefaultModelEditCodeStep(Step):
|
|||
name: str = "Editing Code"
|
||||
hide = False
|
||||
_prompt: str = dedent("""\
|
||||
Take the file prefix and suffix into account, but only rewrite the code_to_edit as specified in the user_request. The code you write in modified_code_to_edit will replace the code between the code_to_edit tags. Do NOT preface your answer or write anything other than code. The </modified_code_to_edit> tag should be written to indicate the end of the modified code section.
|
||||
Take the file prefix and suffix into account, but only rewrite the code_to_edit as specified in the user_request. The code you write in modified_code_to_edit will replace the code between the code_to_edit tags. Do NOT preface your answer or write anything other than code. The </modified_code_to_edit> tag should be written to indicate the end of the modified code section. Do not ever use nested tags.
|
||||
|
||||
Example:
|
||||
|
||||
|
|
@ -285,7 +285,6 @@ class DefaultModelEditCodeStep(Step):
|
|||
{self.user_input}
|
||||
</user_request>
|
||||
<modified_code_to_edit>
|
||||
|
||||
""")
|
||||
|
||||
lines = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue