Skip to content

Commit fcec4dd

Browse files
Update README.md to show newer completions models (#578)
* Update README.md to show newer completions models * Update README.md * Update README.md
1 parent 120d225 commit fcec4dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pre-defined set of classes for API resources that initialize
66
themselves dynamically from API responses which makes it compatible
77
with a wide range of versions of the OpenAI API.
88

9-
You can find usage examples for the OpenAI Python library in our [API reference](https://beta.openai.com/docs/api-reference?lang=python) and the [OpenAI Cookbook](https://github.com/openai/openai-cookbook/).
9+
You can find usage examples for the OpenAI Python library in our [API reference](https://platform.openai.com/docs/api-reference?lang=python) and the [OpenAI Cookbook](https://github.com/openai/openai-cookbook/).
1010

1111
## Installation
1212

@@ -173,13 +173,13 @@ print(completion.choices[0].message.content)
173173

174174
### Completions
175175

176-
Text models such as `text-davinci-003`, `text-davinci-002` and earlier (`ada`, `babbage`, `curie`, `davinci`, etc.) can be called using the completions endpoint.
176+
Text models such as `babbage-002` or `davinci-002` (and our [legacy completions models](https://platform.openai.com/docs/deprecations/deprecation-history)) can be called using the completions endpoint.
177177

178178
```python
179179
import openai
180180
openai.api_key = "sk-..." # supply your API key however you choose
181181

182-
completion = openai.Completion.create(model="text-davinci-003", prompt="Hello world")
182+
completion = openai.Completion.create(model="davinci-002", prompt="Hello world")
183183
print(completion.choices[0].text)
184184
```
185185

@@ -197,13 +197,13 @@ openai.api_key = "sk-..." # supply your API key however you choose
197197
text_string = "sample text"
198198

199199
# choose an embedding
200-
model_id = "text-similarity-davinci-001"
200+
model_id = "text-embedding-ada-002"
201201

202202
# compute the embedding of the text
203203
embedding = openai.Embedding.create(input=text_string, model=model_id)['data'][0]['embedding']
204204
```
205205

206-
An example of how to call the embeddings method is shown in this [get embeddings notebook](https://github.com/openai/openai-cookbook/blob/main/examples/Get_embeddings.ipynb).
206+
An example of how to call the embeddings method is shown in this [embeddings guide](https://platform.openai.com/docs/guides/embeddings/embeddings).
207207

208208
Examples of how to use embeddings are shared in the following Jupyter notebooks:
209209

@@ -215,7 +215,7 @@ Examples of how to use embeddings are shared in the following Jupyter notebooks:
215215
- [Zero-shot classification using embeddings](https://github.com/openai/openai-cookbook/blob/main/examples/Zero-shot_classification_with_embeddings.ipynb)
216216
- [Recommendation using embeddings](https://github.com/openai/openai-cookbook/blob/main/examples/Recommendation_using_embeddings.ipynb)
217217

218-
For more information on embeddings and the types of embeddings OpenAI offers, read the [embeddings guide](https://beta.openai.com/docs/guides/embeddings) in the OpenAI documentation.
218+
For more information on embeddings and the types of embeddings OpenAI offers, read the [embeddings guide](https://platform.openai.com/docs/guides/embeddings) in the OpenAI documentation.
219219

220220
### Fine-tuning
221221

@@ -235,7 +235,7 @@ Sync your fine-tunes to [Weights & Biases](https://wandb.me/openai-docs) to trac
235235
openai wandb sync
236236
```
237237

238-
For more information on fine-tuning, read the [fine-tuning guide](https://beta.openai.com/docs/guides/fine-tuning) in the OpenAI documentation.
238+
For more information on fine-tuning, read the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning) in the OpenAI documentation.
239239

240240
### Moderation
241241

0 commit comments

Comments
 (0)