mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 23:25:39 +00:00
Add serialize
This commit is contained in:
@ -69,7 +69,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
Some(chat_completion::FinishReason::tool_calls) => {
|
||||
println!("ToolCalls");
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[derive(Deserialize, Serialize)]
|
||||
struct Currency {
|
||||
coin: String,
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
Some(chat_completion::FinishReason::tool_calls) => {
|
||||
println!("ToolCalls");
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[derive(Deserialize, Serialize)]
|
||||
struct Currency {
|
||||
coin: String,
|
||||
}
|
||||
|
Reference in New Issue
Block a user