Skip to content

Commit

Permalink
Merge pull request openai#36 from achandmsft/patch-1
Browse files Browse the repository at this point in the history
Added .default scope to URI to get token using DefaultAzureCredential
  • Loading branch information
ted-at-openai authored Dec 12, 2022
2 parents aabbdbe + 3c334e7 commit 7de3d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/azure/finetuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"from azure.identity import DefaultAzureCredential\n",
"\n",
"default_credential = DefaultAzureCredential()\n",
"token = default_credential.get_token(\"https://cognitiveservices.azure.com\")\n",
"token = default_credential.get_token(\"https://cognitiveservices.azure.com/.default\")\n",
"\n",
"openai.api_type = 'azure_ad'\n",
"openai.api_key = token.token\n",
Expand Down

0 comments on commit 7de3d50

Please sign in to comment.