| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Current Level: 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
Verify your AI connection is working and check off your progress.
Type something and click Send. Open DevTools Console tab - you should see “sendToModel called” and then the AI response. Also check the Network tab to see the API call. If you see both, you’re connected to AI!
sendToModel() function created with Hugging Face fetch snippetbotReply variable set and function called from button handlerYou’re now talking to AI through your app. Let’s make it use your actual input!
When you’ve completed this level, commit your work with a meaningful message like:
git add .
git commit -m "feature: complete step 3 - model call and response handling"
Next: Level 20 - Add State for Input
| Level Navigation: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Current Level: 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |