[Bugfix] deepseek_r1_reasoning_parser put reason content in wrong field in certain edge case (#13097)

This commit is contained in:
LikeSundayLikeRain
2025-02-13 02:11:26 -05:00
committed by GitHub
parent 60c68df6d1
commit 04f50ad9d1
2 changed files with 6 additions and 6 deletions

View File

@@ -24,10 +24,10 @@ COMPLETE_REASONING = {
"reasoning_content": "This is a reasoning section",
"content": None,
}
NO_REASONING = {
NO_CONTENT = {
"output": "This is content",
"reasoning_content": None,
"content": "This is content",
"reasoning_content": "This is content",
"content": None,
}
NO_REASONING_STREAMING = {
"output": "This is a reasoning section",
@@ -98,8 +98,8 @@ TEST_CASES = [
),
pytest.param(
False,
NO_REASONING,
id="no_reasoning_token",
NO_CONTENT,
id="no_content_token",
),
pytest.param(
True,