[Bugfix] Fix Unicode issues in GLM-4 tool calling (#30920)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey 2025-12-18 15:12:17 +08:00 committed by GitHub
parent be2ad5f920
commit aa7e836055
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,8 @@ class Glm4MoeModelToolParser(ToolParser):
ToolCall(
type="function",
function=FunctionCall(
name=tc_name, arguments=json.dumps(arg_dct)
name=tc_name,
arguments=json.dumps(arg_dct, ensure_ascii=False),
),
)
)