|
13 | 13 | "In order to use this API, you need to configure a few environment variables:\n", |
14 | 14 | "\n", |
15 | 15 | "- AZURE_CONTENT_SAFETY_API_ENDPOINT: The endpoint for the Azure Content Safety API\n", |
16 | | - "- AZURE_CONTENT_SAFETY_API_KEY: The API key for the Azure Content Safety API (if not using AAD Auth)\n", |
| 16 | + "- AZURE_CONTENT_SAFETY_API_KEY: The API key for the Azure Content Safety API (if not using Entra Auth)\n", |
17 | 17 | "\n", |
18 | | - "As an alternative to key-based authentication, you may set `use_aad_auth=True` and use identity-based authentication.\n", |
| 18 | + "As an alternative to key-based authentication, you may set `use_entra_auth=True` and use identity-based authentication.\n", |
19 | 19 | "\n", |
20 | 20 | "Note that this api returns a value between 0 and 7. This is different from likert scales, which return a value between 1 and 5. Because both are `float_scale` scores, these values are all normalized to floating point values between 0.0 and 1.0 and can be directly compared. This is sometimes interesting as an operator e.g. if there are scenarios where a `SelfAskLikertScorer` and `AzureContentFilterScorer` produce very different values.\n", |
21 | 21 | "\n", |
|
52 | 52 | "\n", |
53 | 53 | "# Set up the Azure Content Filter\n", |
54 | 54 | "azure_content_filter = AzureContentFilterScorer(\n", |
55 | | - " # Comment out either api_key or use_aad_auth\n", |
| 55 | + " # Comment out either api_key or use_entra_auth\n", |
56 | 56 | " api_key=os.environ.get(\"AZURE_CONTENT_SAFETY_API_KEY\"),\n", |
57 | | - " # use_aad_auth=True,\n", |
| 57 | + " # use_entra_auth=True,\n", |
58 | 58 | " endpoint=os.environ.get(\"AZURE_CONTENT_SAFETY_API_ENDPOINT\"),\n", |
59 | 59 | ")\n", |
60 | 60 | "\n", |
|
0 commit comments