Remove ensure_ascii=False from JSON serialization

This commit is contained in:
hksdpc255 2026-03-17 09:21:57 +08:00 committed by GitHub
parent 02e67012e5
commit aa5a30f272
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
{%- endif %}
{{- "### Tool name: " + function_name(tool) + "\n" }}
{{- "Description: " + function_description(tool) + "\n" }}
{{- "Input JSON schema: " + (function_parameters(tool) | tojson(ensure_ascii=False)) + "\n" }}
{{- "Input JSON schema: " + (function_parameters(tool) | tojson) + "\n" }}
{{- "\n" }}
{%- endif %}
{%- endmacro %}
@ -56,7 +56,7 @@
{{- "</server_name>\n<tool_name>" }}
{{- function.name }}
{{- "</tool_name>\n<arguments>\n" }}
{{- function.arguments | tojson(ensure_ascii=False) }}
{{- function.arguments | tojson }}
{{- "\n</arguments>" }}
{%- endfor %}
{{- "\n</use_mcp_tool>" }}