[Test] Add unit tests for DeepSeekV3/V31/V4 and Qwen25 function call detectors#27481
Open
gjsheu wants to merge 1 commit into
Open
[Test] Add unit tests for DeepSeekV3/V31/V4 and Qwen25 function call detectors#27481gjsheu wants to merge 1 commit into
gjsheu wants to merge 1 commit into
Conversation
…detectors Add 4 missing CPU unit test files for function_call detectors: - test_deepseekv3_detector.py - test_deepseekv31_detector.py - test_deepseekv4_detector.py - test_qwen25_detector.py Each file covers has_tool_call, detect_and_parse (single/multi/leading-text/no-call/malformed), structure_info, and parse_streaming_increment. Registered with register_cpu_ci and uses CustomTestCase. No server or model loading required. Closes sgl-project#20865 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 4 missing CPU unit test files for
function_calldetectors, addressing #20865:test/registered/unit/function_call/test_deepseekv3_detector.pytest/registered/unit/function_call/test_deepseekv31_detector.pytest/registered/unit/function_call/test_deepseekv4_detector.pytest/registered/unit/function_call/test_qwen25_detector.pyEach file covers:
has_tool_call— positive and negativedetect_and_parse— single call, multiple calls, leading text, no call, malformed JSONstructure_info— verifies trigger/begin/end tokensparse_streaming_increment— split-chunk streaming, normal text before tool callAll tests are registered with
register_cpu_ci(1.0, "base-a-test-cpu"), useCustomTestCase, and require no server or model loading.Test plan
pytest test/registered/unit/function_call/test_deepseekv3_detector.py -vpytest test/registered/unit/function_call/test_deepseekv31_detector.py -vpytest test/registered/unit/function_call/test_deepseekv4_detector.py -vpytest test/registered/unit/function_call/test_qwen25_detector.py -vCloses #20865
🤖 Generated with Claude Code via Archon
CI States
Latest PR Test (Base): ❌ Run #27082472709
Latest PR Test (Extra): ❌ Run #27082472703