Call OpenAI models directly from Python, beyond the ChatGPT interface.
Note: The article was written in 2023 and uses the legacy OpenAI Python client syntax (`openai.ChatCompletion.create()`), which was deprecated in late 2023. The concepts are still valid, but make sure to use the updated client syntax shown above.