File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
vllm/entrypoints/openai/tool_parsers Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ def _generate_delta_tool_call(self,
269
269
delta_text = delta_text .replace (self .bot_token , "" , 1 )
270
270
if self .streaming_state == StreamingState .PARSING_NAME :
271
271
if self .current_tool_name is None :
272
- self .current_tool_name = ""
272
+ self .current_tool_name = ""
273
273
# The name stops where the arguments start
274
274
# And the arguments start with the `{` char
275
275
if "{" in delta_text :
@@ -282,11 +282,10 @@ def _generate_delta_tool_call(self,
282
282
self .current_tool_name += delta_text
283
283
if tool_id is not None :
284
284
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
+ ]
290
289
else :
291
290
return []
292
291
if self .streaming_state == StreamingState .PARSING_ARGUMENTS :
You can’t perform that action at this time.
0 commit comments