Lesson 5 of 5 · 2 min · practice
Practice
- Write a Pydantic model for a job advert with a title, a salary that cannot be negative and a list of skills. Feed it one bad record and read the error.
- Extend the chat loop so it drops the oldest messages once the word count passes 200. What does the model forget?
- Add a health route to the FastAPI app and say why a load balancer needs it.
