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

Refactor CustomComponent repr_value handling #2173

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

ogabrielluiz
Copy link
Contributor

This pull request refactors the CustomComponent class to handle the repr_value attribute more efficiently. The changes include updating the custom_repr() method to properly handle different types of repr_value, such as dictionaries and BaseModels. Additionally, the to_json() method is now used when available. This improves the overall performance and functionality of the CustomComponent class.

Copy link

vercel bot commented Jun 14, 2024

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

Name Status Preview Comments Updated (UTC)
langflow 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 4:48pm

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 14, 2024
@ogabrielluiz ogabrielluiz merged commit 9daf669 into dev Jun 14, 2024
7 of 12 checks passed
@dosubot dosubot bot added the python Pull requests that update Python code label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant