fix: do not strip whitespace from GLM tool call values (#20543)

Co-authored-by: Kangyan-Zhou <zky314343421@gmail.com>
This commit is contained in:
Lawrence Wu
2026-04-09 11:14:15 -07:00
committed by GitHub
co-authored by Kangyan-Zhou
parent 8b991d98a1
commit 8eb235ab51
3 changed files with 66 additions and 2 deletions
@@ -759,7 +759,6 @@ class Glm47MoeDetector(BaseFormatDetector):
arguments = {}
for arg_key, arg_value in pairs:
arg_key = arg_key.strip()
arg_value = arg_value.strip()
arg_type = get_argument_type(func_name, arg_key, tools)
parsed_value, is_good_json = parse_arguments(arg_value, arg_type)
@@ -613,7 +613,6 @@ class Glm4MoeDetector(BaseFormatDetector):
arguments = {}
for arg_key, arg_value in pairs:
arg_key = arg_key.strip()
arg_value = arg_value.strip()
arg_type = get_argument_type(func_name, arg_key, tools)
parsed_value, is_good_json = parse_arguments(arg_value, arg_type)