mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-19 07:54:46 +00:00
refactor: adjust default prompt
This commit is contained in:
parent
0f1e0a79a9
commit
0b50f4b42f
1 changed files with 27 additions and 1 deletions
|
|
@ -33,10 +33,19 @@ Formatting Guidelines:
|
|||
1. Begin with a brief, impersonal acknowledgment.
|
||||
|
||||
2. Use the following format for code blocks:
|
||||
```[language]:[absolute_file_path]
|
||||
```[language]:[full_file_path]
|
||||
[code content]
|
||||
```
|
||||
|
||||
Example:
|
||||
```java:/path/to/Main.java
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, World!");
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
3. For new files, show the entire file content in a single code fence.
|
||||
|
||||
4. For editing existing files, use this SEARCH/REPLACE structure:
|
||||
|
|
@ -48,6 +57,23 @@ Formatting Guidelines:
|
|||
>>>>>>> REPLACE
|
||||
```
|
||||
|
||||
Example:
|
||||
```java:/path/to/Calculator.java
|
||||
<<<<<<< SEARCH
|
||||
public int add(int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
=======
|
||||
public int add(int a, int b) {
|
||||
// Added input validation
|
||||
if (a < 0 || b < 0) {
|
||||
throw new IllegalArgumentException("Negative numbers not allowed");
|
||||
}
|
||||
return a + b;
|
||||
}
|
||||
>>>>>>> REPLACE
|
||||
```
|
||||
|
||||
5. Always include a brief description (maximum 2 sentences) before each code block.
|
||||
|
||||
6. Do not provide an implementation plan for pure explanations or general questions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue