Skip to content

Commit 6087094

Browse files
authored
Merge pull request #269589 from mrbullwinkle/mrb_03_19_2024_python_deprecation
[Azure OpenAI] Deprecation
2 parents 0f18682 + b4602b2 commit 6087094

File tree

12 files changed

+35
-0
lines changed

12 files changed

+35
-0
lines changed

articles/ai-services/openai/concepts/content-filter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,8 @@ print(response.model_dump_json(indent=2))
428428

429429
# [OpenAI Python 0.28.1](#tab/python)
430430

431+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
432+
431433
```python
432434
# os.getenv() for the endpoint and key assumes that you are using environment variables.
433435

articles/ai-services/openai/how-to/embeddings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ print(response.model_dump_json(indent=2))
5151

5252
# [OpenAI Python 0.28.1](#tab/python)
5353

54+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
55+
5456
```python
5557
import openai
5658

articles/ai-services/openai/how-to/function-calling.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ When functions are provided, by default the `function_call` is set to `"auto"` a
149149

150150
# [OpenAI Python 0.28.1](#tab/python)
151151

152+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
153+
154+
152155
```python
153156

154157
import os

articles/ai-services/openai/includes/chat-completion.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ Microsoft was founded by Bill Gates and Paul Allen. They established the company
110110

111111
# [OpenAI Python 0.28.1](#tab/python)
112112

113+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
114+
113115
```python
114116
import os
115117
import openai

articles/ai-services/openai/includes/chatgpt-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ pip install openai
3737

3838
# [OpenAI Python 0.28.1](#tab/python)
3939

40+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
41+
4042
```console
4143
pip install openai==0.28.1
4244
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Python 0.28.1 deprecated
3+
titleSuffix: Azure OpenAI Service
4+
description: Python library deprecation
5+
manager: nitinme
6+
ms.service: azure-ai-openai
7+
ms.topic: include
8+
ms.date: 03/13/2024
9+
---
10+
11+
> [!NOTE]
12+
> The OpenAI Python library version `0.28.1` is deprecated. We recommend using `1.x`. Consult our [migration guide](../how-to/migration.md) for information on moving from `0.28.1` to `1.x`.

articles/ai-services/openai/includes/embeddings-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pip install openai num2words matplotlib plotly scipy scikit-learn pandas tiktoke
3131

3232
# [OpenAI Python 0.28.1](#tab/python)
3333

34+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
35+
3436
```cmd
3537
pip install "openai==0.28.1" num2words matplotlib plotly scipy scikit-learn pandas tiktoken
3638
```

articles/ai-services/openai/includes/fine-tuning-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ print("Validation file ID:", validation_file_id)
181181

182182
# [OpenAI Python 0.28.1](#tab/python)
183183

184+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
185+
184186
```python
185187
# Upload fine-tuning files
186188

articles/ai-services/openai/includes/python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ pip install openai
3636

3737
# [OpenAI Python 0.28.1](#tab/python)
3838

39+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
40+
3941
```console
4042
pip install openai==0.28.1
4143
```

articles/ai-services/openai/includes/use-your-data-python.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ pip install python-dotenv
3030

3131
# [OpenAI Python 0.28.1](#tab/python)
3232

33+
[!INCLUDE [Deprecation](../includes/deprecation.md)]
34+
3335
```console
3436
pip install openai==0.28.1
3537
pip install python-dotenv

0 commit comments

Comments
 (0)