mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 23:25:39 +00:00
add tool_calls to ChatCompletionMessage
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user