Skip to content

Commit 6f21799

Browse files
committed
Remove deprecated models
1 parent c5ef1c9 commit 6f21799

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

README.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Stream text with GPT-4, transcribe and translate audio with Whisper, or create i
2929
- [Ollama](#ollama)
3030
- [Counting Tokens](#counting-tokens)
3131
- [Models](#models)
32-
- [Examples](#examples)
3332
- [Chat](#chat)
3433
- [Streaming Chat](#streaming-chat)
3534
- [Vision](#vision)
@@ -258,24 +257,9 @@ There are different models that can be used to generate text. For a full list an
258257

259258
```ruby
260259
client.models.list
261-
client.models.retrieve(id: "text-ada-001")
260+
client.models.retrieve(id: "gpt-3.5-turbo")
262261
```
263262

264-
#### Examples
265-
266-
- [GPT-4 (limited beta)](https://platform.openai.com/docs/models/gpt-4)
267-
- gpt-4 (uses current version)
268-
- gpt-4-0314
269-
- gpt-4-32k
270-
- [GPT-3.5](https://platform.openai.com/docs/models/gpt-3-5)
271-
- gpt-3.5-turbo
272-
- gpt-3.5-turbo-0301
273-
- text-davinci-003
274-
- [GPT-3](https://platform.openai.com/docs/models/gpt-3)
275-
- text-ada-001
276-
- text-babbage-001
277-
- text-curie-001
278-
279263
### Chat
280264

281265
GPT is a model that can be used to generate text in a conversational style. You can use it to [generate a response](https://platform.openai.com/docs/api-reference/chat/create) to a sequence of [messages](https://platform.openai.com/docs/guides/chat/introduction):
@@ -398,7 +382,7 @@ end
398382
response =
399383
client.chat(
400384
parameters: {
401-
model: "gpt-3.5-turbo-0613",
385+
model: "gpt-3.5-turbo",
402386
messages: [
403387
{
404388
"role": "user",
@@ -462,7 +446,7 @@ Hit the OpenAI API for a completion using other GPT-3 models:
462446
```ruby
463447
response = client.completions(
464448
parameters: {
465-
model: "text-davinci-001",
449+
model: "gpt-3.5-turbo",
466450
prompt: "Once upon a time",
467451
max_tokens: 5
468452
})
@@ -608,7 +592,7 @@ You can then use this file ID to create a fine tuning job:
608592
response = client.finetunes.create(
609593
parameters: {
610594
training_file: file_id,
611-
model: "gpt-3.5-turbo-0613"
595+
model: "gpt-3.5-turbo"
612596
})
613597
fine_tune_id = response["id"]
614598
```
@@ -1014,7 +998,7 @@ HTTP errors can be caught like this:
1014998

1015999
```
10161000
begin
1017-
OpenAI::Client.new.models.retrieve(id: "text-ada-001")
1001+
OpenAI::Client.new.models.retrieve(id: "gpt-3.5-turbo")
10181002
rescue Faraday::Error => e
10191003
raise "Got a Faraday error: #{e}"
10201004
end

0 commit comments

Comments
 (0)