Calling an LLM From Python
Send prompts and parse responses.
Talk to a Model in Code
You do not run giant models on your laptop. Instead you send text to a hosted model over an API and get a reply back. 🌐
Install a Client
Most providers ship a Python client library so you can call the model with a few clean lines instead of raw HTTP.
pip install openaiAll lessons in this course
- What Makes a Model Large
- Calling an LLM From Python
- Zero-Shot and Few-Shot Prompting
- Structured Output and Guardrails