From 0dc0b704574ffbc56d1621c80cea794b3083e0ec Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Wed, 4 Jun 2025 18:51:17 -0700 Subject: [PATCH] cleaning up prompts --- app/lib/.server/llm/prompts.ts | 46 ++++++++++++---------------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/app/lib/.server/llm/prompts.ts b/app/lib/.server/llm/prompts.ts index 534e32f..6a887e0 100644 --- a/app/lib/.server/llm/prompts.ts +++ b/app/lib/.server/llm/prompts.ts @@ -173,27 +173,6 @@ ULTRA IMPORTANT: Think first and reply with the artifact that contains all neces Here are some examples of correct usage of artifacts: - - Can you help me create a JavaScript function to calculate the factorial of a number? - - - Certainly, I can help you create a JavaScript function to calculate the factorial of a number. - - - - function factorial(n) { - ... - } - - ... - - - - node index.js - - - - Build a snake game @@ -212,17 +191,10 @@ Here are some examples of correct usage of artifacts: } - - npm install --save-dev vite - - ... - - npm run dev - Now you can play the Snake game by opening the provided local server URL in your browser. Use the arrow keys to control the snake. Eat the red food to grow and increase your score. The game ends if you hit the wall or your own tail. @@ -546,8 +518,9 @@ Design a three-column layout on desktop, single-column on mobile, for Upload + P (General - for all workflows) Do not use MUI icons, they break in this environment. Please ensure that all text and windows have good contrast against their background. -Remember to re-install and run npm run dev (using ) after any changes. +Do not build or run the software yet. `; +// Remember to re-install and run npm run dev (using ) after any changes. export const INJECTED_PROMPT_2 = stripIndents`[INJECTED_PROMPT_2] Please review this API spec and be absolutely sure that you are calling those functions with the appropriate data formats, for example ensuring that you are sending object_name values, encapsulating input correctly in json, and using the exact function endpoints as they were defined. @@ -604,7 +577,20 @@ Research a topic: POST /research_topic: Research a topic using an online browser Ensure that the necessary input and output controls are present to allow the user to run this code, sending in what they need to at the time. Also, please add a green button to show the results, and a red button that will delete the objects produced by the code. -Remember to re-install and run npm run dev (using ) after any changes. + +After you've done this, please also return the following block in order to install and run the code: + + + + + npm install --save-dev vite + + + + npm run dev + + + `; // put in above for debug