Adding tool calling and reasoning parser support for Intern-S1 (#14866)

Co-authored-by: KennyYao2001 <kennyy@andrew.cmu.edu>
Co-authored-by: Cursor AI <cursor@example.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Changyi Yang <112288487+ChangyiYang@users.noreply.github.com>
This commit is contained in:
Kenny Yao
2025-12-16 03:01:58 -05:00
committed by GitHub
parent 9327482baa
commit 5e96beb3e5
6 changed files with 290 additions and 14 deletions

View File

@@ -16,6 +16,7 @@ from sglang.srt.function_call.deepseekv31_detector import DeepSeekV31Detector
from sglang.srt.function_call.deepseekv32_detector import DeepSeekV32Detector
from sglang.srt.function_call.glm4_moe_detector import Glm4MoeDetector
from sglang.srt.function_call.gpt_oss_detector import GptOssDetector
from sglang.srt.function_call.internlm_detector import InternlmDetector
from sglang.srt.function_call.kimik2_detector import KimiK2Detector
from sglang.srt.function_call.llama32_detector import Llama32Detector
from sglang.srt.function_call.minimax_m2 import MinimaxM2Detector
@@ -54,6 +55,7 @@ class FunctionCallParser:
"qwen3_coder": Qwen3CoderDetector,
"step3": Step3Detector,
"minimax-m2": MinimaxM2Detector,
"interns1": InternlmDetector,
}
def __init__(self, tools: List[Tool], tool_call_parser: str):