Skip to content

Commit f9b4396

Browse files
committed
Reorder instruction content in code_at_cursor_instructions_for_panel
1 parent fea5d95 commit f9b4396

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎apps/editor/src/constants/instructions.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ export const code_at_cursor_instructions_for_panel = (params: {
55
file_path: string
66
row: number
77
column: number
8-
}) => `Find correct replacement text for the <missing_text> symbol.
9-
10-
# System
8+
}) => `# System
119
1210
Your response must begin with a markdown heading identifying the file and the cursor position, followed by a markdown code block containing the replacement text, followed by a brief explanation. The heading must be: "### Code at cursor: \`${
1311
params.file_path
@@ -21,7 +19,12 @@ Your response must begin with a markdown heading identifying the file and the cu
2119
!== undefined
2220
\`\`\`
2321
24-
The variable is possibly not defined.`
22+
The variable is possibly not defined.
23+
24+
---
25+
26+
Find correct replacement text for the <missing_text> symbol.
27+
`
2528

2629
export const intelligent_update_instructions =
2730
"Refactor the file according to the attached changes without explanations or any other text. Print the file in full because I have a disability which means I can't type and need to be able to just copy and paste."

0 commit comments

Comments
 (0)