Gabriel Luiz Freitas Almeida
092035f880
🔧 chore(loading.py): add debug log to show instantiation of node_type and base_type
2023-08-04 17:11:46 -03:00
Gabriel Luiz Freitas Almeida
e4e01b8853
🐛 fix(utils.py): simplify import_custom_component function by directly importing the CustomComponent class
2023-08-04 17:11:45 -03:00
Gabriel Luiz Freitas Almeida
967c91d19c
🔧 fix(directory_reader.py): fix typo in variable name 'filtered' to improve code readability
2023-08-04 17:11:44 -03:00
Gabriel Luiz Freitas Almeida
5608b197f2
🔧 chore(component.py): add missing import for 'Any' type in typing module to fix type hinting
...
🚀 feat(component.py): add 'build' method to Component class to enforce implementation in subclasses
2023-08-04 17:11:43 -03:00
Gabriel Luiz Freitas Almeida
e36b72ecb2
🔨 refactor(types.py): add logging statements for debugging purposes in build_langchain_template_custom_component function
...
🔨 refactor(types.py): add logging statements for debugging purposes in build_and_validate_all_files function
🔨 refactor(types.py): add logging statements for debugging purposes in build_valid_menu function
🔨 refactor(types.py): add logging statements for debugging purposes in build_invalid_menu function
2023-08-04 17:11:42 -03:00
Gabriel Luiz Freitas Almeida
afe4816df6
🔧 fix(endpoints.py): add logging statements to improve debugging and monitoring
...
🔧 fix(endpoints.py): add logging statements to improve debugging and monitoring in the get_all() function
2023-08-04 17:11:41 -03:00
Gabriel Luiz Freitas Almeida
a6c7e951ba
🐛 fix(settings.py): fix issue with extending components_path list with duplicate paths
...
✨ feat(settings.py): add logging of components_path and updated settings values for debugging purposes
2023-08-04 17:11:40 -03:00
Gabriel Luiz Freitas Almeida
65850b9920
🐛 fix(types.py): update error message to include the output types of the component that failed to load for better debugging
2023-08-04 17:11:39 -03:00
Gabriel Luiz Freitas Almeida
31dba43e73
🔧 fix(settings.py): convert BASE_COMPONENTS_PATH to string to ensure compatibility with other parts of the codebase
...
🔧 fix(settings.py): update COMPONENTS_PATH to accept a list of strings instead of a list of Paths to improve flexibility and compatibility
🔧 fix(settings.py): update set_components_path method to handle LANGFLOW_COMPONENTS_PATH as a list of paths or a single path string
2023-08-04 17:11:38 -03:00
Gabriel Luiz Freitas Almeida
bfe86b45fc
✨ feat(components): add new custom component and chains package
...
- Added a new file `__init__.py` in the `components` directory to import the `CustomComponent` class from `langflow.interface.custom.custom_component`.
- Created a new package `chains` in the `components` directory.
2023-08-04 17:11:37 -03:00
Gabriel Luiz Freitas Almeida
2c6b88f4f9
🔨 refactor(custom_component.py): read build method
2023-08-04 17:11:36 -03:00
Gabriel Luiz Freitas Almeida
15d0327f62
🔧 chore(constants.py): import BaseOutputParser from langchain.schema to use it in LANGCHAIN_BASE_TYPES
2023-08-04 17:11:35 -03:00
Gabriel Luiz Freitas Almeida
956ba45e9b
🔀 chore(utils.py): rename cache variable to CACHE for consistency with other settings
...
🔀 chore(utils.py): rename `LANGFLOW_LANGCHAIN_CACHE` environment variable to `CACHE` for clarity and consistency
2023-08-04 17:11:34 -03:00
Gabriel Luiz Freitas Almeida
3495375f50
🔧 chore(settings.py): update debug log messages for setting default components path
2023-08-04 17:11:33 -03:00
Gabriel Luiz Freitas Almeida
929d51ea61
🐛 fix(prompt_runner.py): fix issue with accessing result content when invoking chain with an empty dict input
2023-08-04 17:11:32 -03:00
Gabriel Luiz Freitas Almeida
c5b0f6a7f1
🔥 refactor(component.py): remove unused build method from Component class
...
🔥 refactor(custom_component.py): remove unused build method from CustomComponent class
2023-08-04 17:11:31 -03:00
Gabriel Luiz Freitas Almeida
997c8aba0a
📝 docs(README.md): update CLI options section to remove --database-url option
...
The `--database-url` option has been removed from the CLI options. Instead, a local SQLite database will be used if no database URL is provided. This change simplifies the configuration process and aligns with the default behavior.
2023-08-04 17:11:31 -03:00
Gabriel Luiz Freitas Almeida
75ee8f0e2d
✨ feat(prompt_runner.py): add PromptRunner component to run a Chain with a given PromptTemplate
2023-08-04 17:11:30 -03:00
Gabriel Luiz Freitas Almeida
8a82231deb
🐛 fix(loading.py): import handle_partial_variables function to fix NameError when using it in instantiate_prompt function
...
🐛 fix(utils.py): add handle_partial_variables function to handle partial variables in prompt formatting
2023-08-04 17:11:29 -03:00
Gabriel Luiz Freitas Almeida
84a971ed0b
🐛 fix(types.py): fix prompt template formatting to handle missing artifacts gracefully
2023-08-04 17:11:28 -03:00
Gabriel Luiz Freitas Almeida
23b962fb9e
🐛 fix(base.py): refactor database engine creation and retrieval to use a singleton pattern for better performance and maintainability
...
✨ feat(base.py): add support for LANGFLOW_DATABASE_URL environment variable to override the database URL configuration
2023-08-04 17:11:28 -03:00
Gabriel Luiz Freitas Almeida
f0f77a79fd
🔧 chore(main.py): import Engine from langflow.database.base to fix missing reference error
...
✨ feat(main.py): add Engine.update as a startup event to update the engine on app startup
2023-08-04 17:11:27 -03:00
Gabriel Luiz Freitas Almeida
cfe8d02be0
🔧 chore(__main__.py): remove unused database_url parameter and related code for simplification
...
🔧 chore(__main__.py): remove unused env_file parameter and related code for simplification
🔧 chore(__main__.py): remove unused imports and variables for cleaner code
🔧 chore(__main__.py): remove unused load_params function for code cleanup
2023-08-04 17:11:26 -03:00
Gabriel Luiz Freitas Almeida
b81b596b55
refactor settings
2023-08-04 17:11:25 -03:00
Gabriel Luiz Freitas Almeida
8590ba7d1d
🔧 fix(types.py): add exception handling when evaluating field_value using ast.literal_eval to prevent potential errors
...
🔀 chore(types.py): import ast and contextlib modules for future use
2023-08-04 17:11:24 -03:00
Gabriel Luiz Freitas Almeida
beef27eb33
🐛 fix(base.py): handle parsing of code type values in Vertex class to prevent errors and improve error logging
2023-08-04 17:11:24 -03:00
Gabriel Luiz Freitas Almeida
056910802a
🔥 refactor(endpoints.py): remove unused imports and endpoints
...
The following changes were made:
- Removed unused imports from the file
- Removed the unused `get_load_custom_component_from_path` endpoint
- Removed the unused `get_load_custom_component_from_path_test` endpoint
2023-08-04 17:11:23 -03:00
Gabriel Luiz Freitas Almeida
bc57e48bd8
🐛 fix(base.py): skip values with show == False and key != "code" when iterating over template_dict to improve filtering logic
2023-08-04 17:11:22 -03:00
Gabriel Luiz Freitas Almeida
c207f0aa4b
🐛 fix(directory_reader.py): fix the name of the custom component to always be "CustomComponent" for consistency
...
🐛 fix(directory_reader.py): add the output types of the custom component to the component template to ensure correct behavior
🐛 fix(types.py): add the output types of the custom component to the component template to ensure correct behavior
2023-08-04 17:11:20 -03:00
Gabriel Luiz Freitas Almeida
e961e8b89a
🔧 fix(directory_reader.py): change component name from snake_case to CamelCase for better UI display
...
📝 chore(directory_reader.py): add comments to explain the purpose of changing the component name
2023-08-04 17:11:19 -03:00
Gabriel Luiz Freitas Almeida
1c2ba872c5
fix: 🐛 fixes condition in release workflow
2023-08-04 17:11:19 -03:00
Gabriel Luiz Freitas Almeida
29b7e62cfe
🔖 chore(pyproject.toml): bump version from 0.4.0 to 0.4.1 for langflow package
2023-08-04 17:11:18 -03:00
Gabriel Luiz Freitas Almeida
c86fd2f741
🐛 fix(types.py): change update_display_name_and_description function name to update_attributes to reflect its purpose more accurately
...
🐛 fix(component.py): change field_config key to beta in template_config dictionary to match the expected key
2023-08-04 17:11:17 -03:00
Gabriel Luiz Freitas Almeida
86b623da27
🔀 chore(base.py): import SQLDatabaseChain from langchain_experimental.sql with type ignore to suppress type checking error
2023-08-04 17:11:16 -03:00
Gabriel Luiz Freitas Almeida
817e05b7de
🔀 merge(base.py): add SQLDatabaseChain to the ChainCreator's type_dict to enable support for SQL database chains
...
📦 chore(pyproject.toml): add langchain-experimental package as a dependency
2023-08-04 17:11:15 -03:00
Gabriel Luiz Freitas Almeida
33ba16da16
Update docker-compose.yml to use the correct default langflow port ( #713 )
2023-08-04 14:48:47 -03:00
anovazzi1
4aa6810af6
fix(exportModal/index.tsx): add state for invalidName to handle invalid flow names in the export modal
...
feat(exportModal/index.tsx): pass invalidName state and setInvalidName function as props to EditFlowSettings component to handle invalid flow names in the export modal
2023-08-03 18:40:17 -03:00
Dave Morris
ff71d10ff5
Update docker-compose.yml to use the correct default langflow port
2023-08-03 12:09:10 -05:00
anovazzi1
19b5a05af0
fix(reactflowUtils.ts): import Edge from reactflow to fix type error and improve code semantics
...
feat(reactflowUtils.ts): add getConnectedNodes function to retrieve connected nodes based on an edge
fix(styleUtils.ts): remove unused getConnectedNodes function
2023-08-02 21:27:13 -03:00
Gabriel Luiz Freitas Almeida
81f195e8da
🔧 chore(constants.py): remove unused classes "Runnable" and "Generic" from CLASSES_TO_REMOVE list
...
🔇 chore(test_chains_template.py): comment out unused test_chains_settings test function
2023-08-02 15:57:45 -03:00
Gabriel Luiz Freitas Almeida
22f75bf804
🔺 chore(pyproject.toml): update langchain dependency version to ^0.0.250 for compatibility and bug fixes
2023-08-02 15:55:26 -03:00
Gabriel Luiz Freitas Almeida
5d75d46aef
🐛 fix(loading.py): handle invalid JSON strings in kwargs by removing the key from params
2023-08-02 15:54:57 -03:00
Lucas Oliveira
214aef76bf
Fixed formModal
2023-08-02 12:07:45 -03:00
Lucas Oliveira
3733743da3
Revert "Fixed bug of fastavro version and form modal memory keys"
...
This reverts commit f5cb771018 .
2023-08-02 12:07:21 -03:00
Lucas Oliveira
4254d5d751
Revert "poetry lock fixed"
...
This reverts commit aa33cbd6cf .
2023-08-02 12:07:16 -03:00
Lucas Oliveira
dbcd613251
Revert "Removed unused console log"
...
This reverts commit da7391e783 .
2023-08-02 12:07:08 -03:00
Lucas Oliveira
da7391e783
Removed unused console log
2023-08-02 11:44:35 -03:00
Lucas Oliveira
aa33cbd6cf
poetry lock fixed
2023-08-02 11:40:35 -03:00
Lucas Oliveira
f5cb771018
Fixed bug of fastavro version and form modal memory keys
2023-08-02 11:39:17 -03:00
Gabriel Luiz Freitas Almeida
968fef6dfa
⬆️ chore(pyproject.toml): add fastavro as a dependency in the project
...
📦 feat(pyproject.toml): add fastavro as a new dependency to enable working with Avro data format
2023-08-02 10:58:07 -03:00