Commit graph

10,746 commits

Author SHA1 Message Date
ogabrielluiz
b255a0cae1 📝 (types.py): Update import statements to include log_transaction function for better code organization and readability 2024-06-10 11:38:42 -03:00
ogabrielluiz
802b624621 refactor: Update import statement for Record in component.py
The import statement for the Record class in component.py has been updated to reflect the correct module path after a recent refactoring.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-10 11:38:16 -03:00
ogabrielluiz
1f92ae75d8 rename GenericNode 2024-06-10 11:32:03 -03:00
ogabrielluiz
735a7e3780 Merge cz/mergeAll to two_edges 2024-06-10 11:31:02 -03:00
anovazzi1
83bdd81ec3 update ungroup working, does not keep selected output 2024-06-07 16:25:10 -03:00
anovazzi1
fa5243970f almost done with display_name 2024-06-07 15:57:37 -03:00
anovazzi1
8742c87bfe Merge remote-tracking branch 'origin/two_edges' into new_Group 2024-06-07 15:18:57 -03:00
ogabrielluiz
ef6c179bd1 merge projects 2024-06-07 14:41:15 -03:00
ogabrielluiz
1712577e4d refactor: Remove print statement in MonitorService
The print statement in the MonitorService class has been removed to improve code cleanliness and remove unnecessary debugging output.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-07 14:40:51 -03:00
ogabrielluiz
578619a5e3 (CodeBlockExtractor.py): Add a new component 'Code Block Extractor' to extract code blocks from text for langflow application. 2024-06-07 14:40:39 -03:00
ogabrielluiz
52323eae4a 📝 (component.py): update variable name from display_name to name for consistency and clarity
📝 (component.py): improve variable naming for better readability and maintainability
📝 (__init__.py): refactor function name _import_template_field to _import_input_class for better naming clarity
📝 (__init__.py): refactor function name _import_template_field to _import_input_class for better naming clarity
📝 (__init__.py): add function _import_output_class to import Output class from langflow.template.field.base
2024-06-07 14:40:24 -03:00
ogabrielluiz
834570df8b refactor: Update output names in TextInput, TextOutput, RecordsOutput, ChatInput, and ChatOutput 2024-06-07 14:40:03 -03:00
ogabrielluiz
472c8737dd move folder 2024-06-07 14:39:27 -03:00
ogabrielluiz
4c87f7662c Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-07 10:42:22 -03:00
ogabrielluiz
3d82417068 Refactor run_flow function to improve readability and maintainability 2024-06-07 10:04:39 -03:00
ogabrielluiz
3ec7089ede update projects 2024-06-06 19:52:26 -03:00
anovazzi1
1f338fe72c Merge remote-tracking branch 'origin/two_edges' into new_Group 2024-06-06 19:50:12 -03:00
ogabrielluiz
6ade456767 refactor: Remove serialization_alias from display_name field in Output class
The `serialization_alias` attribute has been removed from the `display_name` field in the `Output` class. This change simplifies the code and removes unnecessary serialization configuration.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-06 19:49:38 -03:00
anovazzi1
3f1cc76067 Merge remote-tracking branch 'origin/two_edges' into new_Group 2024-06-06 19:49:29 -03:00
ogabrielluiz
5fa5237f1d update projects 2024-06-06 15:34:11 -03:00
ogabrielluiz
45e2691598 Refactor build_inputs method to add extra fields in ComponentFrontendNode 2024-06-06 15:34:00 -03:00
anovazzi1
8ac7b4b27a update group to work with new outputs 2024-06-06 15:23:58 -03:00
ogabrielluiz
24b41eb59d update examples 2024-06-05 19:01:21 -03:00
ogabrielluiz
5121fb10e5 refactor: Update output names in TextInput, TextOutput, RecordsOutput, ChatInput, and ChatOutput
The output names in the TextInput, TextOutput, RecordsOutput, ChatInput, and ChatOutput components have been updated to use more descriptive names. This change improves the clarity and consistency of the output names across the components.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-05 19:01:12 -03:00
Lucas Oliveira
41b0660dfd Styled Output Type 2024-06-05 16:51:30 -03:00
ogabrielluiz
f8bd552139 Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-05 09:29:13 -03:00
ogabrielluiz
6cecb527a3 chore: Bump langflow-base version to 0.0.56 2024-06-05 09:13:42 -03:00
Jackie Moo
d8643d1384
Correctly Handle Text File Encoding to Avoid 'GBK' Codec Errors (#2072) 2024-06-05 04:47:40 -07:00
Nicolò Boschi
ba59a9f449
docker: improve image layout and backend-only/frontend-only images (#2071)
* docker: improve image layout and backend-only image

* add tests

* add tests

* add frontend

* add frontend

* label

* fix
2024-06-05 04:46:14 -07:00
Gabriel Luiz Freitas Almeida
b74dd3fa7d
Upgrade couchbase dependency to version 4.2.1 with extras and make it optional (#2073)
* ⬆️ (pyproject.toml): upgrade couchbase dependency to version 4.2.1 with extras and make it optional
🔧 (pyproject.toml): add couchbase to the couchbase extras section for better organization and management of dependencies
2024-06-05 04:38:13 -07:00
ogabrielluiz
b98fc0b534 update projects 2024-06-04 22:26:33 -03:00
ogabrielluiz
d47d254a81 📝 (chat.py): Add an empty line before setting cache to improve code readability
🔧 (TextOperator.py): Add logging when stopping with a message
🔧 (TextOperator.py): Add logging when stopping with a message
🔧 (component.py): Refactor _set_outputs method to improve code readability
🔧 (component.py): Refactor build_results method to improve code readability
🔧 (component.py): Refactor custom_repr method to improve code readability
🔧 (custom_component.py): Refactor stop method to accept output_name parameter
🔧 (utils.py): Set output as selected after adding return types
🔧 (base.py): Reset inactivated vertices in the graph before marking them as active
🔧 (base.py): Refactor mark_branch method to only mark child vertices connected through a specific output
🔧 (base.py): Add get_edge method to retrieve edge between two vertices
🔧 (base.py): Refactor mark_branch method to consider output_name when marking child vertices
🔧 (base.py): Refactor build_parent_child_map method to improve code readability
🔧 (types.py): Add _built_object_repr method to handle custom representation of built object
2024-06-04 22:26:18 -03:00
ogabrielluiz
e693fba120 refactor: Update defaultOpen prop in DisclosureComponent and ParentDisclosureComponent
The defaultOpen prop in the DisclosureComponent and ParentDisclosureComponent has been updated to handle different conditions for opening the disclosure. This change improves the behavior and functionality of the components.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-04 22:25:16 -03:00
ogabrielluiz
7c780b1ba5 refactor: Update build_inputs method in Component class
The build_inputs method in the Component class has been updated to handle the user_id parameter and return a list of inputs. This change improves the functionality and flexibility of the custom component.
2024-06-04 22:25:08 -03:00
Cristhian Zanforlin Lousa
610753fbff
Add lazy load on router to improve bootstrap application performance (#2050)
 (routes.tsx): implement lazy loading for route components to improve
performance
 (routes.tsx): add Suspense fallback with LoadingComponent for better
UX during lazy loading
2024-06-04 17:50:45 -03:00
ogabrielluiz
84d6de5e74 refactor: Advanced Disclosure now opens when there's a search 2024-06-04 17:24:09 -03:00
ogabrielluiz
f3e49cb936 📝 (endpoints.py): add debug log message to indicate building langchain types dict for better debugging and monitoring 2024-06-04 16:33:36 -03:00
Nicolò Boschi
82a3733ed7
setting fallback_to_env_var should be respected in api calls (#2058) 2024-06-04 09:36:52 -07:00
ogabrielluiz
a65965fcb3 📝 (endpoints.py): Add support for caching components to improve performance and reduce load on the server
📝 (setup.py): Change function create_or_update_starter_projects to be asynchronous to handle await calls
📝 (types.py): Add caching mechanism to function aget_all_components to improve performance and reduce redundant calls
📝 (main.py): Change call to create_or_update_starter_projects to be awaited to handle asynchronous operation
📝 (index.tsx): Add functionality to reload components in the menu bar to update component data dynamically
📝 (index.ts): Modify getAll function to accept a force_refresh parameter to force a refresh of data
📝 (typesStore.ts): Update getTypes function to accept a force_refresh parameter and pass it to the getAll function
📝 (index.ts): Update getTypes function in TypesStoreType to accept a force_refresh parameter
📝 (test_initial_setup.py): Update test_create_or_update_starter_projects to await the asynchronous function create_or_update_starter_projects
2024-06-04 13:35:00 -03:00
Gabriel Luiz Freitas Almeida
22a7b7e75f
(refactor) Update pytest arguments in Makefile for better test execution (#2063)
* refactor: Update pytest arguments in Makefile for better test execution

The Makefile has been modified to update the pytest arguments in the `tests` target. The `--instafail` flag has been replaced with `-ra -n auto -m "not api_key_required"`. This change allows for better test execution by including additional options for reporting, parallelization, and test selection.

Note: The commit message has been generated based on the provided code changes and recent commits.

*  (test_endpoints.py): add pytest marker 'api_key_required' to mark tests that require an API key for authorization. This helps in easily identifying and managing tests that need special permissions.
2024-06-04 08:59:02 -07:00
ogabrielluiz
dd4b617b48 refactor: Update TextOperatorComponent to use langflow.template and langflow.schema
The TextOperatorComponent in TextOperator.py has been refactored to use the langflow.template.Input, langflow.template.Output, and langflow.schema.Record classes for improved code structure and maintainability.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-04 12:56:10 -03:00
ogabrielluiz
6e7421998d 📝 (frontend): reorganize imports and fix import order in OutputComponent and ParameterComponent to improve code readability
♻️ (frontend): refactor OutputComponent and ParameterComponent to remove unnecessary imports and optimize code structure
📝 (frontend): remove console.log statement in ApiModal view to clean up code and improve maintainability
2024-06-04 12:55:39 -03:00
ogabrielluiz
e2905c9b84 refactor: Update build_inputs method in Component class
The build_inputs method in the Component class has been updated to handle the user_id parameter and return a list of inputs. This change improves the functionality and flexibility of the custom component.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-04 12:55:18 -03:00
Mendon Kissling
dae11df7da
[Docs] - Update gif (#2062)
* Update docs gif to align with readme
2024-06-04 10:46:02 -04:00
Mendon Kissling
fedbf906d9 update-gif 2024-06-04 10:37:30 -04:00
ogabrielluiz
8c89efd08f run codespell 2024-06-04 09:26:13 -03:00
ogabrielluiz
e4f4401d75 📝 (tests/conftest.py): Remove duplicate imports and organize imports for better readability
♻️ (tests/test_custom_component.py): Refactor CustomComponent to Component for better naming consistency
♻️ (tests/test_endpoints.py): Refactor test functions to improve readability and maintainability by simplifying assertions and organizing code
2024-06-04 09:25:27 -03:00
ogabrielluiz
433ea80ab6 refactor: Update Langflow Twitter handle in community.md
The Langflow Twitter handle in the community.md file has been updated from "@langflow_ai" to "@LangflowAI". This change ensures consistency and reflects the correct Twitter handle for Langflow.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-04 09:17:22 -03:00
ogabrielluiz
cfe5428dfe chore: Update .gitignore to ignore src/frontend/temp
The .gitignore file has been updated to ignore the "src/frontend/temp" directory. This change ensures that the temporary files generated in the "src/frontend/temp" directory are not tracked by Git.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-04 09:15:25 -03:00
ogabrielluiz
1775fee61f Fix components update and tests 2024-06-03 22:52:38 -03:00