Skip to content

Commit b0ea377

Browse files
authored
Merge pull request #410 from blefev/main
Update fine tune README section for completion deprecation
2 parents 8b809cb + 6465328 commit b0ea377

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
@@ -484,16 +484,16 @@ response = client.finetunes.retrieve(id: fine_tune_id)
484484
fine_tuned_model = response["fine_tuned_model"]
485485
```
486486

487-
This fine-tuned model name can then be used in completions:
487+
This fine-tuned model name can then be used in chat completions:
488488

489489
```ruby
490-
response = client.completions(
490+
response = client.chat(
491491
parameters: {
492492
model: fine_tuned_model,
493-
prompt: "I love Mondays!"
493+
messages: [{ role: "user", content: "I love Mondays!"}]
494494
}
495495
)
496-
response.dig("choices", 0, "text")
496+
response.dig("choices", 0, "message", "content")
497497
```
498498

499499
You can also capture the events for a job:

0 commit comments

Comments
 (0)