From bcdeb9ce26209a5b34951e736fb1544e0549e8ef Mon Sep 17 00:00:00 2001 From: COSMOPlat Date: Tue, 19 Nov 2024 16:24:35 +0800 Subject: [PATCH] Fix linter errors Signed-off-by: xiyuan lee --- vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py b/vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py index fbd6801644f3b..8a056ef8a38e5 100644 --- a/vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py +++ b/vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py @@ -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(