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

@@ -1069,8 +1069,8 @@ class OpenAIServingChat(OpenAIServingBase):
request.chat_template_kwargs is not None
and request.chat_template_kwargs.get("thinking") is True
)
if self.reasoning_parser in ["qwen3", "glm45", "nano_v3"]:
# qwen3, glm45, and nano_v3 are reasoning by default
if self.reasoning_parser in ["qwen3", "glm45", "nano_v3", "interns1"]:
# qwen3, glm45, nano_v3, and interns1 are reasoning by default
return (
not request.chat_template_kwargs
or request.chat_template_kwargs.get("enable_thinking", True) is True