openai — Easy Playground
Official Python client for OpenAI API (GPT, DALL-E, Whisper)
Getting started with openaiRun locally
Install
pip install openaiPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: openai)
openai is a third-party package. Official Python client for OpenAI API (GPT, DALL-E, Whisper). Install with: pip install openai
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?