You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/concepts/content-filter.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: mrbullwinkle
6
6
ms.author: mbullwin
7
7
ms.service: azure-ai-openai
8
8
ms.topic: conceptual
9
-
ms.date: 09/15/2023
9
+
ms.date: 11/06/2023
10
10
ms.custom: template-concept
11
11
manager: nitinme
12
12
keywords:
@@ -294,11 +294,10 @@ When annotations are enabled as shown in the code snippet below, the following i
294
294
295
295
Annotations are currently in preview for Completions and Chat Completions (GPT models); the following code snippet shows how to use annotations in preview:
296
296
297
-
# [Python](#tab/python)
297
+
# [OpenAI Python 0.28.1](#tab/python)
298
298
299
299
300
300
```python
301
-
# Note: The openai-python library support for Azure OpenAI is in preview.
302
301
# os.getenv() for the endpoint and key assumes that you are using environment variables.
303
302
304
303
import os
@@ -387,7 +386,6 @@ print(response)
387
386
The following code snippet shows how to retrieve annotations when content was filtered:
388
387
389
388
```python
390
-
# Note: The openai-python library support for Azure OpenAI is in preview.
391
389
# os.getenv() for the endpoint and key assumes that you are using environment variables.
392
390
393
391
import os
@@ -416,6 +414,29 @@ except openai.error.InvalidRequestError as e:
416
414
417
415
```
418
416
417
+
# [OpenAI Python 1.x](#tab/python-new)
418
+
419
+
```python
420
+
# os.getenv() for the endpoint and key assumes that you are using environment variables.
0 commit comments