Skip to content

Conversation

mdr223
Copy link
Contributor

@mdr223 mdr223 commented Jul 7, 2025

This PR contains a one-line fix for #1532.

Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

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

Thanks! Good catch!

I just updated the corresponding test (that was wrong before your fix, anyway).

As commented in the issue, I think this bug was introduced after the breaking change replacement of Message (TypedDict) with ChatMessage (dataclass), done in:

@albertvillanova albertvillanova merged commit 5fd07f9 into huggingface:main Jul 8, 2025
3 checks passed
@albertvillanova albertvillanova linked an issue Jul 8, 2025 that may be closed by this pull request
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.

[BUG] ChatMessage content Attribute Accessed Incorrectly
2 participants