[Frontend] Fix the parsing of missing string= in DeepSeek V4 (#56271)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: lazymio <mio@lazym.io>
This commit is contained in:
lazymio
2026-09-18 05:11:24 +00:00
committed by GitHub
co-authored by Claude Opus 5 Bugen Zhao
parent dee37d8911
commit 39e33db7f3
8 changed files with 174 additions and 29 deletions
+2
View File
@@ -137,10 +137,12 @@ def test_python_argument_conversion_and_partial_values():
'<|DSML| parameter name="object" string="false">'
'{"a": [true, null]}</|DSML| parameter>'
'<|DSML| parameter name="bad" string="false">[broken</|DSML| parameter>'
'<|DSML| parameter name="bare">7</|DSML| parameter>'
'<|DSML| parameter name="text" string="true"> a<b'
)
assert json.loads(converter(raw, True)) == {
"object": {"a": [True, None]},
"bad": "[broken",
"bare": 7,
"text": " a<b",
}