Skip to content

[Tokenizer] Change default value of return_dict to True in doc string for apply_chat_template#43223

Merged
Cyrilvallez merged 1 commit intomainfrom
kashif-patch-1
Jan 12, 2026
Merged

[Tokenizer] Change default value of return_dict to True in doc string for apply_chat_template#43223
Cyrilvallez merged 1 commit intomainfrom
kashif-patch-1

Conversation

@kashif
Copy link
Copy Markdown
Contributor

@kashif kashif commented Jan 11, 2026

What does this PR do?

This pull request makes a minor update to the apply_chat_template function in src/transformers/tokenization_utils_base.py, changing the default value of the return_dict parameter from False to True in the docstring to match the default value.

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@kashif kashif requested a review from Cyrilvallez January 11, 2026 18:32
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=43223&sha=344e90

Copy link
Copy Markdown
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Cyrilvallez Cyrilvallez merged commit 496add8 into main Jan 12, 2026
23 of 26 checks passed
@Cyrilvallez Cyrilvallez deleted the kashif-patch-1 branch January 12, 2026 15:07
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Jan 23, 2026
… for apply_chat_template (huggingface#43223)

Change default value of return_dict to True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants