Skip to content

Commit

Permalink
Merge pull request #72 from microsoft/openaiapi
Browse files Browse the repository at this point in the history
OpenAI example uses OpenAI APIs #53
  • Loading branch information
softchris authored Oct 31, 2023
2 parents 19e7efd + e5844df commit 32b883d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 07-building-chat-applications/notebook-azure-openai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 32b883d

Please sign in to comment.