For OpenAI, you need to set the following environment variables:

OPENAI_API_KEY=your_api_key
OPENAI_API_BASE=your_api_base

For more information, see OpenAI Setup