diff --git a/router/src/lib.rs b/router/src/lib.rs index 051d8d4e..e4c54ff9 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -993,9 +993,7 @@ impl From for ToolChoice { ToolTypeDeserializer::String(s) => match s.as_str() { "none" => ToolChoice(Some(ToolType::NoTool)), "auto" => ToolChoice(Some(ToolType::OneOf)), - _ => ToolChoice(Some(ToolType::Function(FunctionName { - name: s - } ))), + _ => ToolChoice(Some(ToolType::Function(FunctionName{name: s}))), }, ToolTypeDeserializer::ToolType(tool_type) => ToolChoice(Some(tool_type)), }