Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhogman authored Apr 29, 2023
1 parent b5221df commit aca0f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a new ChatGPT executor
let exec = Executor::new_default();
// Create our prompt...
let res = Step::for_prompt(prompt!(
let res = prompt!(
"You are a robot assistant for making personalized greetings",
"Make a personalized greeting for Joe"
))
)
.run(&Parameters::new(), &exec) // ...and run it
.await?;
println!("{}", res);
Expand Down

0 comments on commit aca0f90

Please sign in to comment.