Skip to content

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
@paddle-bot
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