Loading lesson…
Level 1 · Apprentice0 XP
Show text as it arrives, and send pictures and PDFs to the model.
Step 1 / 6
ProblemA long answer takes 12 seconds. Users see a spinner and click again, sending a second request. Meanwhile someone wants to ask questions about a scanned contract.
← → step
Before this: Structured outputs and validation
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Build an endpoint that streams a model's answer to the browser with server-sent events, and a second endpoint that accepts an image upload and asks a question about it.