Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLight1337 authored Oct 18, 2024
1 parent 20aeb6d commit 54efc40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vllm/entrypoints/openai/tool_parsers/jamba_tool_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def extract_tool_calls(
content=content if
(len(content) > 0 and content != " ") else None)

except Exception as e:
logger.error("Error in extracting tool call from response %s",
e)
except Exception:
logger.exception(
"Error in extracting tool call from response.")
return ExtractedToolCallInformation(tools_called=False,
tool_calls=[],
content=model_output)
Expand Down Expand Up @@ -292,8 +292,8 @@ def extract_tool_calls_streaming(
self.prev_tool_call_arr = tool_call_arr
return delta

except Exception as e:
logger.error("Error trying to handle streaming tool call: %s", e)
except Exception:
logger.exception("Error trying to handle streaming tool call.")
logger.debug(
"Skipping chunk as a result of tool streaming extraction "
"error")
Expand Down

0 comments on commit 54efc40

Please sign in to comment.