- Run development environment from .devcontainer
- Create virtual environment by running the following command:
python -m venv openai-env
- Activate the virtual environment by running the following command:
source openai-env/bin/activate
- Install the OpenAI library by running the following command:
pip install openai
- Set OpenAI API key on a .env file in the root directory of the project:
OPENAI_API_KEY=<your-api-key>
- Make sure to include the .env file and openai-env directory in the .gitignore file
.env openai-env/