add tool_calls to ChatCompletionMessage

This commit is contained in:
hansel
2024-07-17 09:45:50 +08:00
parent 55b4b785fe
commit 7e10e3a293
6 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
role: chat_completion::MessageRole::user,
content: chat_completion::Content::Text(String::from("What is the price of Ethereum?")),
name: None,
tool_calls: None,
}],
)
.tools(vec![chat_completion::Tool {