[model] support Mistral3.1 small 2503 (#8335)

This commit is contained in:
Kingsley
2025-06-09 10:37:42 +08:00
committed by GitHub
parent fa4360dca7
commit 31bca4d172
5 changed files with 30 additions and 4 deletions

View File

@@ -1433,6 +1433,7 @@ register_template(
format_observation=StringFormatter(slots=["""[TOOL_RESULTS]{"content": {{content}}}[/TOOL_RESULTS]"""]),
format_tools=ToolFormatter(tool_format="mistral"),
format_prefix=EmptyFormatter(slots=[{"bos_token"}]),
mm_plugin=get_mm_plugin(name="pixtral", image_token="[IMG]"),
)