[Model] Add Kimi K3 support: Python frontend [2/2] (#50093)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
This commit is contained in:
Bugen Zhao
2026-07-29 01:06:01 -07:00
committed by GitHub
parent 6370e53f24
commit f5a7cce9b6
20 changed files with 3056 additions and 5 deletions
+8
View File
@@ -90,6 +90,12 @@ class ChatParams:
return_assistant_tokens_mask: bool = False
"""Request a per-token assistant mask from apply_chat_template."""
tool_choice: Any | None = None
"""Request-level tool choice for renderers that need API metadata."""
response_format: Any | None = None
"""Request-level response format for renderers that need API metadata."""
def with_defaults(
self,
default_chat_template_kwargs: dict[str, Any] | None = None,
@@ -119,6 +125,8 @@ class ChatParams:
self.mm_processor_kwargs,
),
return_assistant_tokens_mask=self.return_assistant_tokens_mask,
tool_choice=self.tool_choice,
response_format=self.response_format,
)
def get_apply_chat_template_kwargs(self) -> dict[str, Any]: