Skip to content

Commit

Permalink
Merge pull request #410 from blefev/main
Browse files Browse the repository at this point in the history
Update fine tune README section for completion deprecation
  • Loading branch information
alexrudall authored Mar 26, 2024
2 parents 8b809cb + 6465328 commit b0ea377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,16 +484,16 @@ response = client.finetunes.retrieve(id: fine_tune_id)
fine_tuned_model = response["fine_tuned_model"]
```

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

```ruby
response = client.completions(
response = client.chat(
parameters: {
model: fine_tuned_model,
prompt: "I love Mondays!"
messages: [{ role: "user", content: "I love Mondays!"}]
}
)
response.dig("choices", 0, "text")
response.dig("choices", 0, "message", "content")
```

You can also capture the events for a job:
Expand Down

0 comments on commit b0ea377

Please sign in to comment.