Preliminary Support for Qwen3XMLDetector (#8260)

Co-authored-by: Chayenne <zhaochen20@outlook.com>
This commit is contained in:
yhyang201
2025-07-23 06:49:38 +08:00
committed by GitHub
parent ff45ab7a5f
commit 0dfe2491ac
3 changed files with 153 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ from sglang.srt.function_call.kimik2_detector import KimiK2Detector
from sglang.srt.function_call.llama32_detector import Llama32Detector
from sglang.srt.function_call.mistral_detector import MistralDetector
from sglang.srt.function_call.pythonic_detector import PythonicDetector
from sglang.srt.function_call.qwen3_detector import Qwen3XMLDetector
from sglang.srt.function_call.qwen25_detector import Qwen25Detector
logger = logging.getLogger(__name__)
@@ -35,6 +36,7 @@ class FunctionCallParser:
"deepseekv3": DeepSeekV3Detector,
"pythonic": PythonicDetector,
"kimi_k2": KimiK2Detector,
"qwen3": Qwen3XMLDetector,
}
def __init__(self, tools: List[Tool], tool_call_parser: str):