add tools into TokenizeChatRequest (#18187)

Signed-off-by: yangxia <yangxiast@gmail.com>
This commit is contained in:
hustxiayang
2025-05-15 07:01:49 -04:00
committed by GitHub
parent 07ad27121f
commit 451da4bcbd
3 changed files with 84 additions and 0 deletions

View File

@@ -1593,6 +1593,10 @@ class TokenizeChatRequest(OpenAIBaseModel):
default=None,
description=("Additional kwargs to pass to the HF processor."),
)
tools: Optional[list[ChatCompletionToolsParam]] = Field(
default=None,
description=("A list of tools the model may call."),
)
@model_validator(mode="before")
@classmethod