Skip to content

Commit 2c078e9

Browse files
committed
Update prompt example in README to simplify structure and remove redundant instruction repetition note
1 parent f8a7e1e commit 2c078e9

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,20 @@ Work on real-world codebases with a software engineering mindset. Meet a simple,
3333
Constructed prompt is straightforward and focus the model's whole attention on the task. Example:
3434

3535
```
36-
Implement a subtract function.
3736
<system>
38-
Whenever showing a new, updated, renamed or deleted file, provide brief explanation, then...
37+
Whenever showing a new, updated, renamed or deleted file...
3938
</system>
4039
<files>
41-
<file path="src/calculator.ts">
42-
export const addNumbers = (a: number, b: number) => a + b;
43-
</file>
40+
<file path="src/calculator.ts">
41+
export const addNumbers = (a: number, b: number) => a + b;
42+
</file>
4443
</files>
4544
<system>
46-
Whenever showing a new, updated, renamed or deleted file, provide brief explanation, then...
45+
Whenever showing a new, updated, renamed or deleted file...
4746
</system>
4847
Implement a subtract function.
4948
```
5049

51-
> [!NOTE]
52-
> Instructions are repeated [for even better accuracy](https://cookbook.openai.com/examples/gpt4-1_prompting_guide#:~:text=If%20you%20have%20long%20context%20in%20your%20prompt%2C%20ideally%20place%20your%20instructions%20at%20both%20the%20beginning%20and%20end%20of%20the%20provided%20context%2C%20as%20we%20found%20this%20to%20perform%20better%20than%20only%20above%20or%20below.).
53-
5450
Once the response is generated, a built-in sophisticated parser extracts code blocks with file edits for one-click changes integration.
5551

5652
## Browser integration

0 commit comments

Comments
 (0)