Skip to content

Conversation

@Rocketknight1
Copy link
Member

@Rocketknight1 Rocketknight1 commented Oct 23, 2025

Found one more bug in chat schemas and updated the tests to cover it! const nodes were not being handled correctly when the parent node had structured content.

This PR also moves test_chat_schema_utils.py to test_chat_parsing_utils.py to match the name of the actual file utils/chat_parsing_utils.py.

Tests may not be running in the CI yet but I ran them all locally and they're passing!

@Rocketknight1 Rocketknight1 marked this pull request as ready for review October 23, 2025 16:59
@HuggingFaceDocBuilderDev

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.

Copy link
Contributor

@gante gante left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for fixing :)

@Rocketknight1 Rocketknight1 merged commit 090a894 into main Oct 24, 2025
25 checks passed
@Rocketknight1 Rocketknight1 deleted the chat_schema_const_fix branch October 24, 2025 14:14
i3hz pushed a commit to i3hz/transformers that referenced this pull request Oct 30, 2025
* Fix const parsing for dict inputs

* make fixup
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.

4 participants