Skip to content

Commit

Permalink
[Bugfix] Fixed Mistral tool streaming with non-ascii characters
Browse files Browse the repository at this point in the history
Signed-off-by: cedonley <[email protected]>
  • Loading branch information
cedonley committed Nov 29, 2024
1 parent f630a0c commit 5882a91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/entrypoints/openai/tool_parsers/mistral_tool_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ def extract_tool_calls_streaming(
"mid-arguments")
delta = None
elif cur_arguments and not prev_arguments:
cur_arguments_json = json.dumps(cur_arguments)[:-2]
cur_arguments_json = json.dumps(cur_arguments,
ensure_ascii=False)[:-2]
logger.debug("finding %s in %s", new_text,
cur_arguments_json)

Expand Down

0 comments on commit 5882a91

Please sign in to comment.