Removed api_key when using Azure Active Directory (#897)

pull/1077/head
Spring_MT 7 months ago committed by GitHub
parent 3156163aa6
commit 1ad3b670c8

@ -115,7 +115,6 @@
"\n",
"if use_azure_active_directory:\n",
" endpoint = os.environ[\"AZURE_OPENAI_ENDPOINT\"]\n",
" api_key = os.environ[\"AZURE_OPENAI_API_KEY\"]\n",
"\n",
" client = openai.AzureOpenAI(\n",
" azure_endpoint=endpoint,\n",

Loading…
Cancel
Save