Skip to content

Commit 9e0754c

Browse files
committed
Remove trailing newline characters from instruction constants
- the issue is that two empty lines are placed at the end of 'code at cursor' constructed prompt
1 parent 436ac21 commit 9e0754c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const code_at_cursor_instructions =
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'
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>'
33

44
export const code_at_cursor_instructions_for_panel = (params: {
55
file_path: string
@@ -23,8 +23,7 @@ The variable is possibly not defined.
2323
2424
---
2525
26-
Find correct replacement text for the <missing_text> symbol.
27-
`
26+
Find correct replacement text for the <missing_text> symbol.`
2827

2928
export const intelligent_update_instructions =
3029
"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)