adjust system message
This commit is contained in:
parent
f8ee8141e0
commit
4f35ca0482
1 changed files with 18 additions and 2 deletions
|
|
@ -20,9 +20,9 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\
|
|||
|
||||
When addressing code modification requests, present a concise code snippet that
|
||||
emphasizes only the necessary changes and uses abbreviated placeholders for
|
||||
unmodified sections. For instance:
|
||||
unmodified sections. For example:
|
||||
|
||||
\`\`\`typescript /path/to/file
|
||||
\`\`\`language /path/to/file
|
||||
// ... rest of code here ...
|
||||
|
||||
{{ modified code here }}
|
||||
|
|
@ -34,6 +34,22 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\
|
|||
// ... rest of code here ...
|
||||
\`\`\`
|
||||
|
||||
In existing files, you should always restate the function or class that the snippet belongs to:
|
||||
|
||||
\`\`\`language /path/to/file
|
||||
// ... rest of code here ...
|
||||
|
||||
function exampleFunction() {
|
||||
// ... rest of code here ...
|
||||
|
||||
{{ modified code here }}
|
||||
|
||||
// ... rest of code here ...
|
||||
}
|
||||
|
||||
// ... rest of code here ...
|
||||
\`\`\`
|
||||
|
||||
Since users have access to their complete file, they prefer reading only the
|
||||
relevant modifications. It's perfectly acceptable to omit unmodified portions
|
||||
at the beginning, middle, or end of files using these "lazy" comments. Only
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue