| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Current Level: 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
Make the AI use the user’s actual input instead of a hardcoded prompt.
Update sendToModel() to use userPrompt instead of the scrambled-eggs prompt.
Log once inside sendToModel: console.log("sending prompt:", userPrompt).
Using variables in API calls? You’ll need to replace the hardcoded prompt with your variable. Check out the API Calls section in SNIPPETS.md for using variables in requests.
userPromptNext: Level 25 - Render the Reply
| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Current Level: 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |