Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 664 Bytes

File metadata and controls

26 lines (18 loc) · 664 Bytes

Setting up Environment Variables

  1. 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=""
  1. 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