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

fix: avoid "Expected enum but got int" serializer warnings for chats API #602

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

sszgwdk
Copy link
Collaborator

@sszgwdk sszgwdk commented Jan 18, 2025

close #560

Currently, the warning has only been observed in the Chat-related APIs, and it may not be fully resolved. Test API: GET /api/v1/chats.

Copy link

vercel bot commented Jan 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tidb-ai-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 10:00am
tidb-ai-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2025 10:00am

Copy link

vercel bot commented Jan 18, 2025

@sszgwdk is attempting to deploy a commit to the pingcap Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@Mini256 Mini256 left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

I move the IntEnumType class to the models/base.py file for common usage.

@Mini256 Mini256 changed the title Avoid Pydantic serializer warnings for Chat fix: avoid "Expected enum but got int" serializer warnings for chats API Jan 24, 2025
@Mini256
Copy link
Member

Mini256 commented Jan 24, 2025

@Mini256 Mini256 merged commit ec67725 into pingcap:main Jan 24, 2025
8 of 9 checks passed
NG85 pushed a commit to NG85/autoflow that referenced this pull request Feb 7, 2025
…ats API (pingcap#602)

close pingcap#560

Currently, the warning has only been observed in the Chat-related APIs,
and it may not be fully resolved. Test API: GET /api/v1/chats.

---------

Co-authored-by: Mini256 <[email protected]>
Mini256 added a commit to sszgwdk/autoflow that referenced this pull request Feb 11, 2025
…ats API (pingcap#602)

close pingcap#560

Currently, the warning has only been observed in the Chat-related APIs,
and it may not be fully resolved. Test API: GET /api/v1/chats.

---------

Co-authored-by: Mini256 <[email protected]>
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.

Avoid Pydantic serializer warnings
2 participants