From a46c9329e5877962f9169af559ddd60b43e932cc Mon Sep 17 00:00:00 2001 From: Reid <61492567+reidliu41@users.noreply.github.com> Date: Tue, 7 Jul 2026 10:47:02 +0800 Subject: [PATCH] [Rust Frontend] Add DeepSeek V3.2 roundtrip fixture (#47619) Signed-off-by: reidliu41 --- rust/src/chat/tests/roundtrip.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rust/src/chat/tests/roundtrip.rs b/rust/src/chat/tests/roundtrip.rs index e6044614aa..b1670814ef 100644 --- a/rust/src/chat/tests/roundtrip.rs +++ b/rust/src/chat/tests/roundtrip.rs @@ -130,6 +130,19 @@ impl RoundtripCase { } } + /// DeepSeek V3.2 DSML tool-call format. + fn deepseek_v32() -> Self { + Self { + model_id: "deepseek-ai/DeepSeek-V3.2-Exp", + assistant_stop_suffix: "<|end▁of▁sentence|>", + tool_call_parser: ParserSelection::Auto, + reasoning_parser: ParserSelection::Auto, + thinking_behavior: ThinkingBehavior::Toggleable { default: false }, + json_fmt: compact_json_fmt(), + sort_json_keys: false, + } + } + /// GLM-4.7 XML-like argument format with `` reasoning tags. fn glm47() -> Self { Self { @@ -235,6 +248,7 @@ roundtrip_tests! { qwen35 => [reasoning_and_content, tool_call_mix], minimax_m25 => [reasoning_and_content, tool_call_mix], deepseek_v4 => [reasoning_and_content, tool_call_mix], + deepseek_v32 => [tool_call_mix], glm47 => [reasoning_and_content, tool_call_mix], seed_oss => [reasoning_and_content], step3p5 => [reasoning_and_content],