Skip to content

Commit

Permalink
docs: use with_maximum_tokens in example
Browse files Browse the repository at this point in the history
  • Loading branch information
moldhouse committed Aug 12, 2024
1 parent 05dca1e commit 3614154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
let model = "luminous-base";

// The task we want to perform. Here we want to continue the sentence: "An apple a day ..."
let task = TaskCompletion::from_text("An apple a day");
let task = TaskCompletion::from_text("An apple a day").with_maximum_tokens(20);

// Retrieve the answer from the API
let response = client.completion(&task, model, &How::default()).await.unwrap();
Expand Down

0 comments on commit 3614154

Please sign in to comment.