Skip to content

Commit 6465328

Browse files
authored
Update fine tune README section for completion deprecation
1 parent f9046a3 commit 6465328

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,16 +432,16 @@ response = client.finetunes.retrieve(id: fine_tune_id)
432432
fine_tuned_model = response["fine_tuned_model"]
433433
```
434434

435-
This fine-tuned model name can then be used in completions:
435+
This fine-tuned model name can then be used in chat completions:
436436

437437
```ruby
438-
response = client.completions(
438+
response = client.chat(
439439
parameters: {
440440
model: fine_tuned_model,
441-
prompt: "I love Mondays!"
441+
messages: [{ role: "user", content: "I love Mondays!"}]
442442
}
443443
)
444-
response.dig("choices", 0, "text")
444+
response.dig("choices", 0, "message", "content")
445445
```
446446

447447
You can also capture the events for a job:

0 commit comments

Comments
 (0)