Skip to content

Commit d8a83b3

Browse files
committed
update prompt
1 parent 15fd3fe commit d8a83b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ const magicProviderPlugin: JupyterFrontEndPlugin<IMagicProvider> = {
211211
const trimmedPrompt = codeInput.trim();
212212

213213
// TODO: taken from jupyterlab-magic-wand
214-
const PROMPT =
215-
'The input below came from a code cell in Jupyter. If the input does not look like code, but instead a prompt, write code based on the prompt. Then, update the code to make it more efficient, add code comments, and respond with only the code and comments. ';
214+
const PROMPT = 'The input below came from a code cell in Jupyter. If the input does not look like code, but instead a prompt, write code based on the prompt. Then, update the code to make it more efficient, add code comments, and respond with only the code and comments. Do not format the response using backticks or code block delimiters, just give the code that will be inserted into the cell directly.';
216215

217216
const messages = [
218217
new SystemMessage(PROMPT),

0 commit comments

Comments
 (0)