Intermediate · Building on model APIs
Calling a model
Connect a bicycle repair shop's assistant to a model through the chat completions API: requests and replies by hand over HTTP, the tokens a conversation takes and the model's window, a month of the shop's questions priced from providers' published prices, a review of an assistant's client, and a client that retries what it can within a deadline.
- You build
- chat.py, then window.py, then costs.py, then client.py, then retry.py
- Stages
- 3 Build, 1 Catch, 1 Ship
- Time
- About 3 hours
- Runs on
- Your machine
Loading the workspace…
Loading the workspace…