#!/usr/bin/env python3

# Usage:    uv run hello-ai.py
# Requires: openai, python-dotenv
#           OPENAI_API_KEY in environment or .env file

from openai import OpenAI
from dotenv import load_dotenv

load_dotenv()      # reads variables defined in .env 
client = OpenAI()  # uses OPENAI_API_KEY variable

response = client.chat.completions.create(
    model="gpt-5.4-mini",
    messages=[
        {"role": "system",
         "content": "You are a helpful assistant."},
        {"role": "user",
         "content": "Why is the sky blue?"}
    ]
)
print(response.choices[0].message.content)
