We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9046a3 commit 6465328Copy full SHA for 6465328
README.md
@@ -432,16 +432,16 @@ response = client.finetunes.retrieve(id: fine_tune_id)
432
fine_tuned_model = response["fine_tuned_model"]
433
```
434
435
-This fine-tuned model name can then be used in completions:
+This fine-tuned model name can then be used in chat completions:
436
437
```ruby
438
-response = client.completions(
+response = client.chat(
439
parameters: {
440
model: fine_tuned_model,
441
- prompt: "I love Mondays!"
+ messages: [{ role: "user", content: "I love Mondays!"}]
442
}
443
)
444
-response.dig("choices", 0, "text")
+response.dig("choices", 0, "message", "content")
445
446
447
You can also capture the events for a job:
0 commit comments