Skip to content

Commit

Permalink
fix: await
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevries3133 authored Dec 11, 2023
1 parent e9e7a81 commit af45672
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/count_chat/counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pub async fn handle_chat(
let mut msg = String::from("The meal I'd like a calorie estimate for is ");
msg.push_str(&chat);
let response = OpenAI::from_env()?
.send_message(SYSTEM_MSG.into(), msg)
.await?;
.send_message(SYSTEM_MSG.into(), msg)?;
Ok(response)
}

0 comments on commit af45672

Please sign in to comment.