Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use class methods to create ChatMessage #1222

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

anakin87
Copy link
Member

@anakin87 anakin87 commented Nov 27, 2024

Related Issues

Proposed Changes:

  • wherever possible, replace usage of dataclass constructor with the appropriate class method

How did you test it?

CI

Checklist

@anakin87 anakin87 changed the title use class methods to create ChatMessage chore: use class methods to create ChatMessage Nov 27, 2024
@anakin87 anakin87 marked this pull request as ready for review November 27, 2024 18:02
@anakin87 anakin87 requested a review from a team as a code owner November 27, 2024 18:02
@anakin87 anakin87 requested review from julian-risch and removed request for a team November 27, 2024 18:02
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

The changes look good to me! 👍 I also checked that there are no leftover usages of ChatMessage(...)

@anakin87 anakin87 merged commit 94a29cb into main Nov 28, 2024
37 checks passed
@anakin87 anakin87 deleted the chatmessages-class-methods branch November 28, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants