- Create a file in this folder called
.env
. Security Note.env
file must never check in to github repos, and it is excluded in .gitignore. Add these contents and fill in values. Choose either the AZURE* values or the OPENAI_API_KEY, but not both.
.env contents (keep secure)
OPENAI_API_KEY=""
AZURE_OPENAI_KEY=""
AZURE_OPENAI_ENDPOINT="https://***.openai.azure.com/"
AZURE_DEPLOYMENT_NAME=""
- Export the environment variables from
.env
to your machine
Windows:
.\dotenvtoenvars.ps1 .\.env -Verbose -RemoveQuotes
Mac/Linux:
set -o allexport; source ./.env; set +o allexport