[Bugfix] Consistent ascii handling in tool parsers (#18883)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey 2025-05-30 12:44:43 +08:00 committed by GitHub
parent 3de3eadf5b
commit 77164dad5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -988,7 +988,8 @@ class OpenAIServingChat(OpenAIServing):
tool_calls=[ tool_calls=[
tool_call_class(function=FunctionCall( tool_call_class(function=FunctionCall(
name=tool_call.name, name=tool_call.name,
arguments=json.dumps(tool_call.parameters))) arguments=json.dumps(tool_call.parameters,
ensure_ascii=False)))
for tool_call in tool_calls for tool_call in tool_calls
]) ])