Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: xiyuan lee <[email protected]>
  • Loading branch information
xiyuan-lee committed Nov 19, 2024
1 parent fec6efb commit bcdeb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def extract_tool_calls_streaming(
and cur_tool_end_count > prev_tool_end_count):
diff = self.prev_tool_call_arr[self.current_tool_id].get(
"arguments")
if diff:
if diff:
diff = diff.encode('utf-8').decode(
'unicode_escape') if diff is str else diff
diff = json.dumps(
Expand Down

0 comments on commit bcdeb9c

Please sign in to comment.