Building your first LLM API call in Python (step by step)

8 pointsposted 4 hours ago
by heyy-meraki

3 Comments

dpoloncsak

2 hours ago

It's well detailed and easy to follow.

If you're targeting beginners, do you think it's valuable to explain the .env concept a bit, and generally what an API call is? Or do you think your average reader is familiar enough with Python that they would have come across these concepts already, and are just looking to prompt LLMs?

heyy-meraki

4 hours ago

Today we are looking at the build that goes with yesterday's introduction to ai engineering.

If you read aie_1.0 and wanted to see what an LLM API call looks like in code, this is it.

I go step by step, block by block so it is easy to follow along.