[Bugfix][Frontend][Rust Frontend] Update DeepSeek V4.1 Flash reasoning effort mappings (#58316)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: zhec <chengyunfei@ruc.edu.cn>
This commit is contained in:
zhec
2026-09-26 02:18:58 +00:00
committed by GitHub
co-authored by Claude Bugen Zhao
parent 5840d95284
commit ddd6fbca14
9 changed files with 20 additions and 20 deletions
@@ -1,4 +1,4 @@
<|begin▁of▁sentence|><|System|>Reasoning Effort: 50 (range 1-100, the higher the value, the more thorough the reasoning)
<|begin▁of▁sentence|><|System|>Reasoning Effort: 75 (range 1-100, the higher the value, the more thorough the reasoning)
You are a helpful assistant.
@@ -1,3 +1,3 @@
<|begin▁of▁sentence|><|System|>Reasoning Effort: 50 (range 1-100, the higher the value, the more thorough the reasoning)
<|begin▁of▁sentence|><|System|>Reasoning Effort: 75 (range 1-100, the higher the value, the more thorough the reasoning)
You are a helpful assistant.<|User|>Hello<|Assistant|></think>Hi there! How can I help you?<|end▁of▁sentence|><|User|>What is the capital of France?<|Assistant|><think>The user asks about the capital of France. It is Paris.</think>The capital of France is Paris.<|end▁of▁sentence|>
+4 -4
View File
@@ -35,9 +35,9 @@ def test_reference_encoder_fixtures(case_id):
@pytest.mark.parametrize(
("effort", "budget"),
[
(None, 50),
("low", 25),
("high", 50),
(None, 75),
("low", 50),
("high", 75),
("xhigh", 75),
("max", 100),
(1, 1),
@@ -138,7 +138,7 @@ def test_top_level_effort_overrides_template_effort():
chat_template_kwargs={"reasoning_effort": 100},
)
kwargs = request.build_chat_params(None, "auto").get_apply_chat_template_kwargs()
assert "Reasoning Effort: 25 " in render(request.messages, **kwargs)
assert "Reasoning Effort: 50 " in render(request.messages, **kwargs)
def test_encode_uses_one_bos_and_forwards_truncation():