Commit graph

11,619 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
4b61a582ba 🔧 fix(constants.ts): fix indentation issue in CODE_DICT_DIALOG_SUBTITLE constant
🔧 fix(constants.ts): update CODE_DICT_DIALOG_SUBTITLE constant to include information about using eval() function
🔧 fix(reactflowUtils.ts): add check to convertObjToArray function to return the input if it is already an array
2023-09-18 11:25:18 -03:00
Gabriel Luiz Freitas Almeida
7d39cdc7aa
fix issue, the custom component cannot be load success by setting env… (#823) 2023-09-18 11:01:57 -03:00
Gabriel Luiz Freitas Almeida
15a96b63d9
Bug fix on error detail of customComponent code - Release (#927) 2023-09-18 10:42:08 -03:00
Gabriel Luiz Freitas Almeida
6500d793d1 🐛 fix(types.py): fix indentation and remove duplicate docstring to improve code readability
🔥 chore(types.py): remove unused variable 'e' and improve exception handling by adding 'from exc' to preserve original traceback
2023-09-18 10:39:29 -03:00
Gabriel Luiz Freitas Almeida
b5cb175c58
Enabling prompt modal close without variables (#915) 2023-09-18 10:31:34 -03:00
Gabriel Luiz Freitas Almeida
8e166cebf3 🔧 fix(types): fix indentation in TooltipComponentType to improve code readability
🔧 fix(utils): fix indentation in validateNode function to improve code readability
2023-09-18 09:59:34 -03:00
Gabriel Luiz Freitas Almeida
cc6cf4df35 🐛 fix(validate.py): set prompt_request.name to the key of the only custom field if it is an empty string and there is only one custom field to handle the first prompt request after node creation 2023-09-18 09:34:30 -03:00
Cristhian Zanforlin Lousa
887d1d8f79 🐛 fix(types.py): handle exceptions and raise HTTPException with detailed error message and traceback
🐛 fix(index.tsx): fix error detail access in className condition
🐛 fix(classes.css): adjust scrollbar styles for Ace editor
2023-09-18 09:28:24 -03:00
Gabriel Luiz Freitas Almeida
61f79a2228
Release 0.4.18 (#925) 2023-09-17 20:40:39 -03:00
Gabriel Luiz Freitas Almeida
173561d803
Merge branch 'main' into release 2023-09-17 20:29:41 -03:00
Gabriel Luiz Freitas Almeida
ca7bd74013
🔖 chore(pyproject.toml): bump version from 0.4.18 to 0.4.19 to indicate a new release (#924) 2023-09-17 20:24:19 -03:00
Gabriel Luiz Freitas Almeida
0cf4f53771 🔖 chore(pyproject.toml): bump version from 0.4.18 to 0.4.19 to indicate a new release 2023-09-17 20:20:55 -03:00
Gabriel Luiz Freitas Almeida
b87502b45a
🔧 chore(process.py): change ValueError exception to a warning log message when encountering an unknown langchain_object type (#923) 2023-09-17 20:19:00 -03:00
Gabriel Luiz Freitas Almeida
4cefc59aba 🔀 merge(process.py): merge changes from langflow.utils.logger module to process.py module
🔀 merge(process.py): merge changes from langflow.utils.logger module to process.py module to improve code organization and import statements
2023-09-17 20:15:37 -03:00
Gabriel Luiz Freitas Almeida
d65a75c8d8 🔧 chore(process.py): replace logger import from langflow.utils.logger to loguru.logger for better logging functionality
🔧 chore(process.py): change ValueError exception to a warning log message when encountering an unknown langchain_object type
2023-09-17 20:14:25 -03:00
Gabriel Luiz Freitas Almeida
298d9cd1c8 🔧 chore(docker-compose.yml): update pytest command to improve verbosity and parallel test execution 2023-09-17 19:36:15 -03:00
Gabriel Luiz Freitas Almeida
c7fc8444ea 🐛 fix(endpoints.py): handle ImportError when importing langflow.worker.process_graph_cached_task to prevent crash when Celery is not installed
🔥 chore(endpoints.py): remove unused import of langflow.worker.process_graph_cached_task
🔀 chore(endpoints.py): refactor process_flow function to handle different result types from task_service.launch_task
2023-09-17 19:35:59 -03:00
Gabriel Luiz Freitas Almeida
9c6cfc07ab 🐛 fix(process.py): set langchain_object.return_intermediate_steps to False to improve performance and reduce memory usage 2023-09-17 19:35:40 -03:00
Gabriel Luiz Freitas Almeida
d5623cb713 🐛 fix(manager.py): fix typo in comment, change "ached" to "cached" for better readability
 feat(manager.py): add error handling for non-picklable values in RedisCache's set method to prevent errors
2023-09-17 19:35:25 -03:00
Gabriel Luiz Freitas Almeida
8a545d4dcc 🐛 fix(frontend): update format script in package.json to only format files in the root directory 2023-09-17 19:35:10 -03:00
Gabriel Luiz Freitas Almeida
6871cc5ab6 adds vector store tests 2023-09-17 19:34:46 -03:00
Gabriel Luiz Freitas Almeida
946719eb72 ⬆️ chore(pyproject.toml): update pandas dependency to version 2.0.3 for compatibility and bug fixes 2023-09-17 19:28:33 -03:00
Cristhian Zanforlin Lousa
46601245e1 🐛 fix(EditNodeModal/index.tsx): import convertObjToArray function from reactflowUtils to fix undefined reference error
🐛 fix(EditNodeModal/index.tsx): fix incorrect usage of convertObjToArray function to correctly convert object to array
2023-09-17 11:09:15 -03:00
Cristhian Zanforlin Lousa
0838baa50a merge dev 2023-09-17 10:32:45 -03:00
Cristhian Zanforlin Lousa
ddda46f6d6 🐛 fix(parameterComponent): convert object to array in data.node!.template[name].value to fix rendering issue 2023-09-17 10:31:42 -03:00
Gabriel Luiz Freitas Almeida
254d9e946d 🐛 fix(ci.yml): remove unnecessary -d flag from docker compose up command to prevent services from running in detached mode 2023-09-16 11:21:27 -03:00
Gabriel Luiz Freitas Almeida
ce3127d6f7 📦 chore(ci.yml): rename CI/CD Pipeline workflow to "Async API tests" for better clarity and specificity 2023-09-16 11:17:59 -03:00
Gabriel Luiz Freitas Almeida
7ef80c8e78 🔀 chore(ci.yml): update branch configuration for CI/CD pipeline to include 'dev' branch 2023-09-16 11:16:35 -03:00
Gabriel Luiz Freitas Almeida
c367328727 📦 chore(base.Dockerfile): add tests directory to Docker image to include tests in the build process 2023-09-16 11:15:23 -03:00
Gabriel Luiz Freitas Almeida
43fc6add04 🐛 fix(conftest.py): fix typo in file name BasicChatWithPromptAndHistory.json to improve consistency and readability 2023-09-16 11:15:07 -03:00
Gabriel Luiz Freitas Almeida
05a6f4d067 🔧 fix(process.py): remove unused import and add missing import for BaseModel from pydantic
🔧 fix(manager.py): change return type annotation of launch_task method to handle both Coroutine and Any types
🔧 fix(worker.py): add missing import for Result class from process module and update return statement to return Result object as dictionary
2023-09-16 11:13:53 -03:00
Gabriel Luiz Freitas Almeida
b8d8eccbff 🐛 fix(anyio.py): add error handling when launching a task to prevent crashes and log the error
🐛 fix(celery.py): add type hinting to the launch_task method and return the AsyncResult object for better task tracking
2023-09-16 11:13:08 -03:00
Gabriel Luiz Freitas Almeida
abc4e8a3e0 🔧 chore(ci.yml): remove unnecessary comments and reorganize steps for clarity and readability 2023-09-16 00:11:00 -03:00
Gabriel Luiz Freitas Almeida
cc8cd8bef0 🔧 chore(ci.yml): update Docker commands to use 'docker compose' instead of 'docker-compose' for consistency and future compatibility 2023-09-16 00:09:32 -03:00
Gabriel Luiz Freitas Almeida
986b4696cd 🔧 chore(ci.yml): add CI/CD pipeline configuration file to automate build and test process
🔧 chore(pyproject.toml): add 'async_test' marker for pytest to identify asynchronous tests
2023-09-16 00:05:39 -03:00
Gabriel Luiz Freitas Almeida
e9fd9b097f 🐳 chore(docker-compose.yml): refactor backend service to use YAML anchors and aliases for code reuse
🚀 feat(docker-compose.yml): add tests service to run pytest with coverage and generate reports
2023-09-16 00:05:26 -03:00
Gabriel Luiz Freitas Almeida
f5f89eb8b8 🐛 fix(util.py): rename callback_service to callback_manager for consistency and clarity in codebase 2023-09-16 00:05:19 -03:00
Gabriel Luiz Freitas Almeida
8987c6d969 🐛 fix(test_agents_template.py): fix incorrect variable name in test_zero_shot_agent function
🐛 fix(test_endpoints.py): add missing pytest.mark.async_test decorator to test_async_task_processing function
2023-09-16 00:05:03 -03:00
Gabriel Luiz Freitas Almeida
507d6a756d 🐛 fix(manager.py): handle None key in __contains__ method to prevent Redis client error when checking if key exists in cache 2023-09-15 23:24:26 -03:00
Gabriel Luiz Freitas Almeida
fa1ebea378 🐛 fix(process.py): remove unnecessary session_id parameter in build_sorted_vertices function calls
🐛 fix(endpoints.py): remove unused import and type hinting to improve code readability and maintainability
🐛 fix(endpoints.py): fix incorrect import statement for TaskService
🐛 fix(endpoints.py): fix incorrect return value for get_task_status function
 feat(endpoints.py): add test case for async task processing to validate task completion and result
2023-09-15 18:16:25 -03:00
Gabriel Luiz Freitas Almeida
8d1bff38fe 🔥 chore(ChatOutput.py): remove unused ChatOutput component
The ChatOutput component was removed as it was no longer being used in the project. This commit removes the file and its associated code.
2023-09-15 17:42:14 -03:00
Gabriel Luiz Freitas Almeida
651595932c Change all Services names from Manager to Service 2023-09-15 17:41:39 -03:00
Cristhian Zanforlin Lousa
4a03e81314 🐛 fix(parameterComponent): remove redundant conditional statement and set dictionary array and node template value directly
The conditional statement checking for duplicate keys and setting the dictionary array was redundant. Instead, the dictionary array is now always set to the new value. Additionally, the node template value is now always updated with the new value.
2023-09-15 16:07:08 -03:00
Cristhian Zanforlin Lousa
55001b98c8 🔥 refactor(parameterComponent): remove console.log statement for newValue in ParameterComponent 2023-09-15 15:49:47 -03:00
Cristhian Zanforlin Lousa
ef5a3fb355 🔧 fix(parameterComponent): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(parameterComponent): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(parameterComponent): update value prop in ParameterInputListComponent to handle cases where data.node!.template[name].value is null or an empty array
🔧 fix(parameterComponent): update onChange prop in ParameterInputListComponent to handle any type of newValue instead of just string[]
🔧 fix(keypairListComponent): update className condition to check if value is null or undefined before checking its length
🔧 fix(editNodeModal): remove unused imports and variables to improve code cleanliness and readability
🔧 fix(editNodeModal): update useState initial value for dictArr to be an array of objects instead of an empty array
🔧 fix(editNodeModal): update value prop in KeypairListComponent to handle cases where myData.node.template[templateParam].value is null or an empty array
🔧 fix(editNodeModal): update onChange prop in KeypairListComponent to handle any type of newValue instead of just string[]
🔧 fix(types): update onChange type in KeyPairListComponentType to accept an array of objects instead of an array of strings
🔧 fix(reactflowUtils): remove unused convertArrayToObj function
2023-09-15 15:49:37 -03:00
Cristhian Zanforlin Lousa
c6122980ad 🐛 fix(reactflowUtils.ts): remove unnecessary space in key assignment to maintain consistent object key order 2023-09-15 14:50:27 -03:00
Cristhian Zanforlin Lousa
321024fd4c 🔥 refactor(keypairListComponent): remove commented out code and unused imports for cleaner code
🐛 fix(reactflowUtils.ts): add space before key in flattenedObject to prevent ordering when adding new keys to the object
2023-09-15 14:02:21 -03:00
Cristhian Zanforlin Lousa
55513a34a3 🐛 fix(parameterComponent): fix logic for setting default value in ParameterComponent
🐛 fix(dictComponent): fix class name for disabled input in DictComponent
🐛 fix(keypairListComponent): remove unnecessary disabled prop from Input component in KeypairListComponent
2023-09-15 09:27:48 -03:00
Cristhian Zanforlin Lousa
a6751d4a17 🐛 fix(parameterComponent): fix nullish coalescing operator usage to prevent potential error when accessing nested object properties 2023-09-15 08:48:23 -03:00
Cristhian Zanforlin Lousa
dd556c518d 🐛 fix(parameterComponent): remove unnecessary useEffect hook that sets dictArr state
🐛 fix(parameterComponent): update value prop of KeypairListComponent to use convertObjToArray(dict) instead of dict
2023-09-15 08:47:51 -03:00