mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
lint
This commit is contained in:
parent
aae6db9cd0
commit
337e2045bf
@ -993,9 +993,7 @@ impl From<ToolTypeDeserializer> 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)),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user