You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 840f588
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/editor/src/constants/instructions.ts
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,19 @@
1
1
exportconstcode_at_cursor_instructions=
2
2
'Find correct replacement for the <missing_text> symbol. Respond with replacement text within "replacement" XML tags, without explanations or any other text.\nExample:\n<replacement>!== undefined</replacement>\n'
`Find correct replacement text for the <missing_text> symbol.
8
+
})=>`Find correct replacement text for the <missing_text> symbol.
10
9
<system>
11
-
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: \`${file_path}\` (${
12
-
row+1
13
-
}:${
14
-
column+1
15
-
})". Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion". Example:
10
+
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: \`${
11
+
params.file_path
12
+
}\` (${params.row+1}:${
13
+
params.column+1
14
+
})". Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion". Example:
16
15
17
-
### Code at cursor: \`${file_path}\` (${row+1}:${column+1})
16
+
### Code at cursor: \`${params.file_path}\` (${params.row+1}:${params.column+1})
0 commit comments