style(zai): satisfy rustfmt in tool_stream request

This commit is contained in:
Alix-007 2026-03-19 19:15:58 +08:00 committed by Roman Tataurov
parent bf4c4d81a0
commit b19b6822db
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -1628,9 +1628,8 @@ impl Provider for OpenAiCompatibleProvider {
temperature,
stream: Some(false),
reasoning_effort: self.reasoning_effort_for_model(model),
tool_stream: self.tool_stream_for_tools(
tools.as_ref().is_some_and(|tools| !tools.is_empty()),
),
tool_stream: self
.tool_stream_for_tools(tools.as_ref().is_some_and(|tools| !tools.is_empty())),
tool_choice: tools.as_ref().map(|_| "auto".to_string()),
tools,
};