Skip to content

Commit 5799d75

Browse files
committed
update prompt
1 parent 5aa5889 commit 5799d75

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
@@ -173,8 +173,7 @@ const magicProviderPlugin: JupyterFrontEndPlugin<IMagicProvider> = {
173173
const trimmedPrompt = codeInput.trim();
174174

175175
// TODO: taken from jupyterlab-magic-wand
176-
const PROMPT =
177-
'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. ';
176+
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.';
178177

179178
const messages = [
180179
new SystemMessage(PROMPT),

0 commit comments

Comments
 (0)