2024-08-17 08:24:55 +00:00
{{ # if language_name }}
Here's a file of {{ language_name }} that I'm going to ask you to make an edit to.
{{ else }}
Here's a file of text that I'm going to ask you to make an edit to.
{{ / if }}
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
{{ # if is_insert }}
The point you'll need to insert at is marked with <insert_here></insert_here>.
{{ else }}
The section you'll need to rewrite is marked with <rewrite_this></rewrite_this> tags.
{{ / if }}
2024-08-16 04:20:11 +00:00
<document>
2024-08-17 08:24:55 +00:00
{{{ document_content }}}
2024-08-16 04:20:11 +00:00
</document>
2024-08-07 01:30:48 +00:00
2024-08-17 08:24:55 +00:00
{{ # if is_truncated }}
The context around the relevant section has been truncated (possibly in the middle of a line) for brevity.
{{ / if }}
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
{{ # if is_insert }}
You can't replace {{ content_type }} , your answer will be inserted in place of the `<insert_here></insert_here>` tags. Don't include the insert_here tags in your output.
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
Generate {{ content_type }} based on the following prompt:
2024-08-14 16:20:22 +00:00
2024-08-16 04:20:11 +00:00
<prompt>
2024-08-17 08:24:55 +00:00
{{{ user_prompt }}}
2024-08-16 04:20:11 +00:00
</prompt>
2024-08-17 08:24:55 +00:00
Match the indentation in the original file in the inserted {{ content_type }} , don't include any indentation on blank lines.
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
Immediately start with the following format with no remarks:
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
```
\ {{ INSERTED_CODE }}
```
{{ else }}
Edit the section of {{ content_type }} in <rewrite_this></rewrite_this> tags based on the following prompt:
2024-08-16 04:20:11 +00:00
<prompt>
2024-08-17 08:24:55 +00:00
{{{ user_prompt }}}
2024-08-16 04:20:11 +00:00
</prompt>
2024-08-17 08:24:55 +00:00
{{ # if rewrite_section }}
And here's the section to rewrite based on that prompt again for reference:
2024-08-16 04:20:11 +00:00
<rewrite_this>
2024-08-17 08:24:55 +00:00
{{{ rewrite_section }}}
2024-08-16 04:20:11 +00:00
</rewrite_this>
2024-08-14 16:20:22 +00:00
{{ / if }}
2024-08-07 01:30:48 +00:00
2024-08-17 08:24:55 +00:00
Only make changes that are necessary to fulfill the prompt, leave everything else as-is. All surrounding {{ content_type }} will be preserved.
2024-08-16 04:20:11 +00:00
2024-08-17 08:24:55 +00:00
Start at the indentation level in the original file in the rewritten {{ content_type }} . Don't stop until you've rewritten the entire section, even if you have no more changes to make, always write out the whole section with no unnecessary elisions.
2024-08-14 16:20:22 +00:00
Immediately start with the following format with no remarks:
2024-08-07 01:30:48 +00:00
2024-08-14 16:20:22 +00:00
```
2024-08-16 16:31:38 +00:00
\ {{ REWRITTEN_CODE }}
2024-08-14 16:20:22 +00:00
```
2024-08-17 08:24:55 +00:00
{{ / if }}