python openai official library (using AutoGPT, langchain, etc.)
API Integration Example Code
Method 1: Directly Configure OpenAI
Method 2: Configure Environment Variables
If Method 1 does not work, you can try this method.
Note: If the changes to the environment variables do not take effect, please restart your system.
Method 3: Use the OpenAI Client