transformers
Fix `apply_chat_template` crash on `tool_call` messages without content
#45348
Merged

Fix `apply_chat_template` crash on `tool_call` messages without content #45348

qgallouedec merged 7 commits into main from content-optional
qgallouedec
qgallouedec Make content truly optional
edc46778
qgallouedec style + test
eead60a8
qgallouedec Merge branch 'main' into content-optional
2af897d2
qgallouedec
qgallouedec commented on 2026-04-09
qgallouedec qgallouedec requested a review from Rocketknight1 Rocketknight1 237 days ago
qgallouedec qgallouedec requested a review from zucchini-nlp zucchini-nlp 237 days ago
HuggingFaceDocBuilderDev
qgallouedec qgallouedec changed the title Make content truly optional Fix apply_chat_template crash on tool_call messages without content 237 days ago
qgallouedec improve test
ba6909f5
qgallouedec Merge branch 'content-optional' of https://github.com/huggingface/tra…
f22e75c1
zucchini-nlp
zucchini-nlp commented on 2026-04-10
zucchini-nlp
zucchini-nlp approved these changes on 2026-04-10
qgallouedec Merge branch 'main' into content-optional
1033e043
qgallouedec Merge branch 'main' into content-optional
ec04c370
github-actions
qgallouedec qgallouedec changed the title Fix apply_chat_template crash on tool_call messages without content Fix `apply_chat_template` crash on `tool_call` messages without content 233 days ago
qgallouedec qgallouedec merged e40b0c01 into main 233 days ago
qgallouedec qgallouedec deleted the content-optional branch 233 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone