File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
vllm/entrypoints/openai/tool_parsers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ def extract_tool_calls(
105105 content = content if
106106 (len (content ) > 0 and content != " " ) else None )
107107
108- except Exception as e :
109- logger .error ( "Error in extracting tool call from response %s" ,
110- e )
108+ except Exception :
109+ logger .exception (
110+ "Error in extracting tool call from response." )
111111 return ExtractedToolCallInformation (tools_called = False ,
112112 tool_calls = [],
113113 content = model_output )
@@ -292,8 +292,8 @@ def extract_tool_calls_streaming(
292292 self .prev_tool_call_arr = tool_call_arr
293293 return delta
294294
295- except Exception as e :
296- logger .error ("Error trying to handle streaming tool call: %s" , e )
295+ except Exception :
296+ logger .exception ("Error trying to handle streaming tool call." )
297297 logger .debug (
298298 "Skipping chunk as a result of tool streaming extraction "
299299 "error" )
You can’t perform that action at this time.
0 commit comments