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: Refactor import statements and enhance error logging #4071

Merged
merged 22 commits into from
Oct 9, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request includes several changes to improve the codebase. The import statements have been updated and refactored in JSON files, and the error logging has been enhanced with file information in the directory_reader.py file. These changes aim to improve code readability and error handling.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 8, 2024
@github-actions github-actions bot added the bug Something isn't working label Oct 8, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-4071.dmtpw4p5recq1.amplifyapp.com

@ogabrielluiz ogabrielluiz requested a review from phact October 8, 2024 16:50
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 9, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 9, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) October 9, 2024 13:55
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 9, 2024
@ogabrielluiz ogabrielluiz merged commit f74b58f into main Oct 9, 2024
27 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/startup-errors branch October 9, 2024 18:58
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…i#4071)

* Refactor import paths for `get_patched_openai_client` in astra_assistants components

* Enhance error logging with file information in directory_reader.py

* Refactor MetaphorToolkit to use new input/output structure and update imports

* Enhance error message with code snippet preview in class validation function

* update import statements and refactoring input handling in JSON files.

* [autofix.ci] apply automated fixes

* Remove unused import of 'Tool' from Metaphor.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants