Skip to content

Commit 134135f

Browse files
committed
Pre-commit formatting
Signed-off-by: avigny <[email protected]>
1 parent f0f99dd commit 134135f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

vllm/entrypoints/openai/tool_parsers/mistral_tool_parser.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _generate_delta_tool_call(self,
269269
delta_text = delta_text.replace(self.bot_token, "", 1)
270270
if self.streaming_state == StreamingState.PARSING_NAME:
271271
if self.current_tool_name is None:
272-
self.current_tool_name = ""
272+
self.current_tool_name = ""
273273
# The name stops where the arguments start
274274
# And the arguments start with the `{` char
275275
if "{" in delta_text:
@@ -282,11 +282,10 @@ def _generate_delta_tool_call(self,
282282
self.current_tool_name += delta_text
283283
if tool_id is not None:
284284
return [
285-
DeltaToolCall(
286-
index=self.current_tool_id,
287-
type="function",
288-
id=tool_id
289-
)]
285+
DeltaToolCall(index=self.current_tool_id,
286+
type="function",
287+
id=tool_id)
288+
]
290289
else:
291290
return []
292291
if self.streaming_state == StreamingState.PARSING_ARGUMENTS:

0 commit comments

Comments
 (0)