Fix message

This commit is contained in:
Dongri Jin
2023-07-25 12:02:34 +09:00
parent a0c319cd54
commit 5ee3321ed0
2 changed files with 14 additions and 3 deletions

View File

@ -92,10 +92,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
},
chat_completion::ChatCompletionMessage {
role: chat_completion::MessageRole::function,
content: ({
content: {
let price = get_coin_price(&coin).await;
format!("{{\"price\": {}}}", price)
}),
},
name: Some(String::from("get_coin_price")),
function_call: None,
},