Skip to content

Commit 5159600

Browse files
committed
update
1 parent a993983 commit 5159600

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ embeddings = response['data'][0]['embedding']
4848
print(embeddings)
4949
```
5050

51-
# [OpenAI Python 1.0.1](#tab/python-new)
51+
# [OpenAI Python >=1.0.0](#tab/python-new)
5252

5353
```python
5454
import os

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ JSON formatting added artificially for ease of reading.
6969

7070
```
7171

72-
# [OpenAI Python 1.0.1](#tab/python-new)
72+
# [OpenAI Python >=1.0.0](#tab/python-new)
7373

7474
```python
7575
import os
@@ -330,7 +330,7 @@ while True:
330330
print("\n" + response['choices'][0]['message']['content'] + "\n")
331331
```
332332

333-
# [OpenAI Python 1.0.1](#tab/python-new)
333+
# [OpenAI Python >=1.0.0](#tab/python-new)
334334

335335
```python
336336
import os
@@ -452,7 +452,7 @@ while True:
452452
print("\n" + response['choices'][0]['message']['content'] + "\n")
453453
```
454454

455-
# [OpenAI Python 1.0.1](#tab/python-new)
455+
# [OpenAI Python >=1.0.0](#tab/python-new)
456456

457457
```python
458458
import tiktoken

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Install the OpenAI Python client library with:
3636
pip install openai==0.28.1
3737
```
3838

39-
# [OpenAI Python 1.0.1](#tab/python-new)
39+
# [OpenAI Python >=1.0.0](#tab/python-new)
4040

4141
```console
4242
pip install openai
@@ -86,7 +86,7 @@ print(response)
8686
print(response['choices'][0]['message']['content'])
8787
```
8888

89-
# [OpenAI Python 1.0.1](#tab/python-new)
89+
# [OpenAI Python >=1.0.0](#tab/python-new)
9090

9191
You need to set the `model` variable to the deployment name you chose when you deployed the GPT-3.5-Turbo or GPT-4 models. Entering the model name will result in an error unless you chose a deployment name that is identical to the underlying model name.
9292

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Install the OpenAI Python client library with:
3535
pip install openai==0.28.1
3636
```
3737

38-
# [OpenAI Python 1.0.1](#tab/python-new)
38+
# [OpenAI Python >=1.0.0](#tab/python-new)
3939

4040
```console
4141
pip install openai
@@ -95,7 +95,7 @@ text = response['choices'][0]['text'].replace('\n', '').replace(' .', '.').strip
9595
print(start_phrase+text)
9696
```
9797

98-
# [OpenAI Python 1.0.1](#tab/python-new)
98+
# [OpenAI Python >=1.0.0](#tab/python-new)
9999

100100
```python
101101
import os

0 commit comments

Comments
 (0)