From 78d1f38363baa81a6babb03dba8edf02903f388b Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 24 Nov 2023 14:24:48 +0000 Subject: [PATCH] remove keys (keys recycled also) --- 09-building-image-applications/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/09-building-image-applications/app.py b/09-building-image-applications/app.py index 35448962a..48359393f 100644 --- a/09-building-image-applications/app.py +++ b/09-building-image-applications/app.py @@ -8,8 +8,8 @@ dotenv.load_dotenv() # Get endpoint and key from environment variables -openai.api_base = "https://chris-openai-east.openai.azure.com/" # os.environ['AZURE_OPENAI_ENDPOINT'] -openai.api_key = "1a9d52aaffe4443cb34b2c4fbf0c6775" # os.environ['AZURE_OPENAI_KEY'] +openai.api_base = os.environ['AZURE_OPENAI_ENDPOINT'] +openai.api_key = os.environ['AZURE_OPENAI_KEY'] # Assign the API version (DALL-E is currently supported for the 2023-06-01-preview API version only) openai.api_version = '2023-06-01-preview'