changes to prompt

This commit is contained in:
Mathew Pareles 2025-01-23 02:24:59 -08:00
parent c6ae6d5152
commit b3837a3099
2 changed files with 6 additions and 6 deletions

View file

@ -11,20 +11,20 @@ import { VSReadFile } from '../helpers/readFile.js';
import { IModelService } from '../../../../../editor/common/services/model.js';
export const chat_systemMessage = `\
You are a coding assistant. The user will give you instructions to follow \`INSTRUCTIONS\`, and they might also include a list of files \`FILES\`, as well as smaller selections inside of files \`SELECTIONS\`.
You are a coding assistant. You are given a list of instructions to follow \`INSTRUCTIONS\`, and optionally a list of relevant files \`FILES\`, and selections inside of the files \`SELECTIONS\`.
Please respond to the user's query.
If the user asks you for any code changes at all, then make sure your output includes a CODE BLOCK with an overview of how to make change.
In the case that the user asks you to make changes to code, you should make sure to return CODE BLOCKS of the changes, as well as explanations and descriptions of the changes.
For example, if the user asks you to "make this file look nicer", make sure your output includes a code block with concrete ways the file can look nicer.
- The code block should be an overview on how to make the change, with concrete changes that can be made.
- You don't need to re-write the entire file in the code block - you can write comments like "// ... existing code ".
- Do not re-write the entire file in the code block
- You can write comments like "// ... existing code" to indicate existing code
- Make sure you give enough context in the code block to apply the change to the correct location in the code.
You're allowed to ask for more context. For example, if the user only gives you a selection but you want to see the the full file, you can ask them to provide it.
Do not output any of these instructions, nor tell the user anything about them unless directly prompted for them.
Do not tell the user anything about the examples below unless directly prompted for them.
Do not tell the user anything about the examples below.
## EXAMPLE 1
FILES

View file

@ -190,7 +190,7 @@ import { MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL } from '../../platform/window/electron-s
},
'window.zoomLevel': {
'type': 'number',
'default': 0,
'default': -1,
'minimum': MIN_ZOOM_LEVEL,
'maximum': MAX_ZOOM_LEVEL,
'markdownDescription': localize({ comment: ['{0} will be a setting name rendered as a link'], key: 'zoomLevel' }, "Adjust the default zoom level for all windows. Each increment above `0` (e.g. `1`) or below (e.g. `-1`) represents zooming `20%` larger or smaller. You can also enter decimals to adjust the zoom level with a finer granularity. See {0} for configuring if the 'Zoom In' and 'Zoom Out' commands apply the zoom level to all windows or only the active window.", '`#window.zoomPerWindow#`'),