Skip to content

Commit 5a48ce3

Browse files
chaunceyjiangamitm02
authored andcommitted
[Bugfix] Consistent ascii handling in tool parsers (vllm-project#18883)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com> Signed-off-by: amit <amit.man@gmail.com>
1 parent 6e1e1ca commit 5a48ce3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/entrypoints/openai/serving_chat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ async def chat_completion_full_generator(
988988
tool_calls=[
989989
tool_call_class(function=FunctionCall(
990990
name=tool_call.name,
991-
arguments=json.dumps(tool_call.parameters)))
991+
arguments=json.dumps(tool_call.parameters,
992+
ensure_ascii=False)))
992993
for tool_call in tool_calls
993994
])
994995

0 commit comments

Comments
 (0)