Skip to content

Commit 7991ee2

Browse files
committed
Replace prompt separator from horizontal rule to task markdown heading
- should use # Task instead of --- └── apps └── editor └── src ├── constants │ ├── edit-format-instructions.ts │ └── instructions.ts └── utils └── prompt-builder.ts
1 parent 342ee0f commit 7991ee2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Whenever showing a new, updated, renamed, or deleted file, provide a brief expla
140140
141141
[EXAMPLE]
142142
143-
---
143+
# Task
144144
145145
[PROMPT]
146146
```
@@ -159,7 +159,7 @@ _Explanations, planning, code reviews, you name it._
159159
160160
[SELECTED FILES]
161161
162-
---
162+
# Task
163163
164164
[PROMPT]
165165
```

‎apps/editor/src/utils/prompt-builder.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export namespace PromptBuilder {
109109
params.separator &&
110110
(part1.length > 0 || part2.length > 0 || full_prompt.length > 0)
111111
) {
112-
part2 = part2.trimEnd() + '\n\n---\n\n'
113-
full_prompt = full_prompt.trimEnd() + '\n\n---\n\n'
112+
part2 = part2.trimEnd() + '\n\n# Task\n\n'
113+
full_prompt = full_prompt.trimEnd() + '\n\n# Task\n\n'
114114
}
115115

116116
if (params.user_instructions) {

0 commit comments

Comments
 (0)