Commit graph

10,736 commits

Author SHA1 Message Date
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
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
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
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
anovazzi1
12b3a9b717 refactor: Remove console.log statements from ParameterComponent and fix clean edges 2024-06-03 18:59:43 -03:00
ogabrielluiz
8b4d5ec21a update starter projects 2024-06-03 18:26:15 -03:00
ogabrielluiz
a91e97ca30 refactor: Update ChatInput record_response method to use "text" key instead of "message" 2024-06-03 18:26:01 -03:00
ogabrielluiz
a396ecbcfe update starter projects 2024-06-03 16:07:10 -03:00
ogabrielluiz
94c5fa56c8 Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-03 14:28:19 -03:00
ogabrielluiz
23d3c45a1b refactor: Update Dockerfile and render.yaml for pre-release deployment
The Dockerfile `render.pre-release.Dockerfile` has been added to the repository, which sets the base image to `langflowai/langflow:1.0-alpha`. Additionally, the `render.yaml` file has been modified to use the new Dockerfile path `./docker/render.pre-release.Dockerfile` for the `langflow` web service. This change ensures that the pre-release version of the application is deployed correctly.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 14:05:33 -03:00
ogabrielluiz
25b99ef590 📝 (README.md): Update deployment links to point to the correct branches for deployment purposes 2024-06-03 14:03:23 -03:00
ogabrielluiz
8043a8855e refactor: Update ChatInput record_response method to use "text" key instead of "message"
The ChatInput class in ChatInput.py has been updated to use the "text" key instead of the "message" key when creating a Record object in the record_response method. This change improves the clarity and consistency of the code.

Note: The commit message has been generated based on the provided code changes and recent commits.
2024-06-03 14:01:46 -03:00
ogabrielluiz
daedaae820 📝 (text.py): Rename CustomComponent to Component for better clarity and consistency
📝 (ChatInput.py, TextInput.py, ChatOutput.py, RecordsOutput.py, TextOutput.py): Refactor code to use Input and Output classes for defining inputs and outputs
📝 (CustomComponent.py): Update method to get the build method for custom components to consider classes inheriting from Component or CustomComponent
📝 (DirectoryReader.py): Remove check for missing build function as it is no longer necessary
📝 (base.py): Add properties to easily access outgoing edges, incoming edges, and source names of edges in a Vertex object

♻️ (types.py): Refactor code to improve readability and maintainability by adding type hinting and organizing imports
📝 (types.py): Add missing documentation and comments to clarify the purpose of methods and classes
♻️ (loading.py): Refactor code to remove redundant code and improve code structure for better maintainability
📝 (loading.py): Add comments to explain the purpose of functions and the flow of the code
♻️ (base.py): Refactor code to improve consistency and readability by updating class names and method calls to match the intended functionality
2024-06-03 13:49:03 -03:00
Gabriel Luiz Freitas Almeida
d2f144829d
Update uvicorn server configuration and add pool config (#2052)
The Makefile has been updated to add support for specifying the number
of workers for the uvicorn server. The pyproject.toml file has also been
updated to upgrade the uvicorn dependency to version 0.30.0.
Additionally, the DatabaseService class in service.py has been
refactored to use the pool_size and max_overflow settings from the
SettingsService. This change allows for better control over the number
of connections in the connection pool and the number of connections that
can be opened beyond the pool size. The create_engine function has also
been modified to pass the pool_size and max_overflow parameters.
2024-06-03 09:10:02 -07:00