Hope everyone is doing well. I’ve been having some trouble with calling the GPT 4.1 mini API via my .env file.
When I hard code the API key everything works fine. Checking my directory everything is where it’s suppose to be. I even ran a separate script to check my env and the API key loads just fine.
This post’s script will attempt to make a “list models” call - then give you all the env variables that the client is actually detecting and using, so you can see if others are being grabbed and conflicting, such as a different organization.