Skip to content

[Feature] Pass through the chat_template_kwargs to the data processing module #3469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2025

Conversation

luukunn
Copy link
Collaborator

@luukunn luukunn commented Aug 19, 2025

功能说明: chat_template_kwargs 下所有参数将透传到数据处理模块, 提供给 chat_template 进行拼接。

请求示例:
curl 请求, 直接增加 chat_template_kwargs 参数,如下:
"chat_template_kwargs": {"enable_thinking": false}
"chat_template_kwargs": {"enable_thinking": false, "optinos":{"parallel_tool_calls":false}}

openai client 请求,增加到 extra_body 中,如下:
extra_body={"chat_template_kwargs": {"enable_thinking": False}}

…ing module (PaddlePaddle#3421)

* fix chat_template_args

* fix args

* add offline

* add offline

* fix

* fix

* fix default enable_thinking value

* fix default enable_thinking value

* modify condition

* Revert "modify condition"

This reverts commit 26430bd.

* fix unit test
Copy link

paddle-bot bot commented Aug 19, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Aug 19, 2025
@Jiang-Jia-Jun Jiang-Jia-Jun merged commit d07338f into PaddlePaddle:release/2.1 Aug 19, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants