diff --git a/07-building-chat-applications/notebook-azure-openai.ipynb b/07-building-chat-applications/notebook-azure-openai.ipynb index 1be02a4bb..722080901 100644 --- a/07-building-chat-applications/notebook-azure-openai.ipynb +++ b/07-building-chat-applications/notebook-azure-openai.ipynb @@ -180,9 +180,9 @@ "load_dotenv()\n", "\n", "openai.api_type = \"azure\"\n", - "openai.api_version = os.getenv(\"OPENAI_API_VERSION\",\"\").strip()\n", + "openai.api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\",\"\").strip()\n", "\n", - "API_KEY = os.getenv(\"OPENAI_API_KEY\",\"\").strip()\n", + "API_KEY = os.getenv(\"AZURE_OPENAI_API_KEY\",\"\").strip()\n", "assert API_KEY, \"ERROR: Azure OpenAI Key is missing\"\n", "openai.api_key = API_KEY\n", "\n",