Commit graph

5,507 commits

Author SHA1 Message Date
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
Gabriel Luiz Freitas Almeida
44466dc2d1 🐛 fix(RecursiveCharacterTextSplitter.py): uncomment line to assign repr_value to separators variable
 feat(util.py): add build_loader_repr_from_documents function to generate a representation string from a list of documents
2023-09-14 21:38:10 -03:00
Gabriel Luiz Freitas Almeida
329d779b6e
Fixed Lint error and no module error (#918) 2023-09-15 00:35:36 +00:00
Guangya Liu
03a71b1fe8 use optional for user 2023-09-14 19:48:48 -04:00
Cristhian Zanforlin Lousa
bd9c53bf14 🐛 fix(EditNodeModal): fix state mutation issue by using useRef instead of useState for myData variable
 feat(EditNodeModal): add onChangeOpenModal prop to BaseModal component to reset myData to original data when modal is closed

🔧 chore: fix indentation in setTabsState function call for better code readability

🔧 fix(baseModal): import useEffect from react to fix missing dependency warning
🔧 fix(baseModal): add missing onChangeOpenModal prop to BaseModal component
🔧 fix(baseModal): call onChangeOpenModal prop in useEffect to notify parent component of modal open state change
🔧 fix(genericModal): add empty onChangeOpenModal prop to BaseModal component to fix prop type error
2023-09-14 20:11:48 -03:00
Gabriel Luiz Freitas Almeida
5ac3208c8a Merge remote-tracking branch 'origin/main' into dev 2023-09-14 20:02:52 -03:00
Gabriel Luiz Freitas Almeida
fa94ae3350
🔧 chore(render.yaml): add disk configuration for langflow-data to pro… (#919) 2023-09-14 23:02:26 +00:00
Gabriel Luiz Freitas Almeida
ff18b32aeb 🔀 chore(README.md): update Railway deployment button link to use a different template 2023-09-14 20:01:51 -03:00
Cristhian Zanforlin Lousa
83e48f0728 🐛 fix(parameterComponent): fix issue with undefined values in DictComponent and KeypairListComponent 2023-09-14 19:57:33 -03:00
Cristhian Zanforlin Lousa
1c1d6d2c02 🔧 fix(parameterComponent): remove unused longString variable to improve code readability and reduce unnecessary code
🔧 fix(parameterComponent): move DictComponent and KeypairListComponent rendering logic to the correct position to fix rendering issues
🔧 fix(keypairListComponent): remove unused imports and fix formatting to improve code readability
🔧 fix(keypairListComponent): fix handleChangeKey function name to improve code clarity
🔧 fix(keypairListComponent): fix className prop in Input component to improve code readability
🔧 fix(keypairListComponent): remove unused GenericModal component and fix formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix function names and formatting to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
🔧 fix(reactflowUtils.ts): fix formatting and remove unnecessary whitespace to improve code readability
2023-09-14 19:53:39 -03:00
Gabriel Luiz Freitas Almeida
40969d905a 🐛 fix(render.yaml): fix indentation of value for LANGFLOW_DATABASE_URL environment variable to match the key 2023-09-14 17:19:13 -03:00
Gabriel Luiz Freitas Almeida
502b520782 🔧 chore(render.yaml): add LANGFLOW_DATABASE_URL environment variable with sqlite database path to improve configuration
The LANGFLOW_DATABASE_URL environment variable is added with the value `sqlite:////home/user/.cache/langflow/langflow.db` to specify the path to the SQLite database file for the Langflow service. This improves the configuration by providing a specific location for the database file.
2023-09-14 17:18:22 -03:00
Gabriel Luiz Freitas Almeida
2a947e33a7 🔧 chore(render.yaml): remove unnecessary 'plan' field from langflow service configuration
📝 docs(render.yaml): update langflow service configuration to remove 'plan' field for better clarity and consistency
2023-09-14 15:39:46 -03:00
Gabriel Luiz Freitas Almeida
54776687f1 🔧 chore(render.yaml): add disk configuration for langflow-data to provide persistent storage for langflow cache 2023-09-14 15:38:45 -03:00
Cristhian Zanforlin Lousa
81bd366654 🔨 refactor(parameterComponent): update initial state of dict to include a default key-value pair for better clarity and consistency
🔨 refactor(EditNodeModal): update initial state of dict to include a default key-value pair for better clarity and consistency
2023-09-14 14:39:07 -03:00
Guangya Liu
c710c1ce82 Fixed lint error 2023-09-14 13:33:48 -04:00
Cristhian Zanforlin Lousa
dc2ff9a91c Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict 2023-09-14 14:32:26 -03:00
Cristhian Zanforlin Lousa
9e4f30f774 🔀 refactor(parameterComponent): remove initial values from dict state and dictArr state to improve code readability and maintainability 2023-09-14 14:32:11 -03:00
Cristhian Zanforlin Lousa
6b129b4d44 🐛 fix(dictComponent): fix placeholder text in input field to improve clarity and user experience
🔀 refactor(dictComponent): reorganize imports for better readability and maintainability
2023-09-14 14:32:03 -03:00
Cristhian Zanforlin Lousa
144fdbd098 🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(parameterComponent): fix data mutation by cloning data object before updating it
🐛 fix(genericModal): remove unnecessary cloning of nodeClass object
🐛 fix(genericModal): fix validation logic for PROMPT type modal
🐛 fix(reactflowUtils): remove console.log statement in handleKeyDown function
2023-09-14 14:18:30 -03:00
Gabriel Luiz Freitas Almeida
fbedf7f734 feat(field_typing): add NestedDict type alias to improve code readability and maintainability 2023-09-14 14:09:18 -03:00
Gabriel Luiz Freitas Almeida
70d9742d16 🐛 fix(parameterComponent): fix type comparison for "NestedDict" to improve accuracy and consistency
🐛 fix(EditNodeModal): fix type comparison for "NestedDict" to improve accuracy and consistency
2023-09-14 14:09:06 -03:00
Guangya Liu
888ded02f9 Fixed format pre-check error 2023-09-14 10:17:13 -04:00
Guangya Liu
9b9a84f81f Fixed Bug 916: No module named 'langflow.settings' error 2023-09-14 10:14:56 -04:00
Gabriel Luiz Freitas Almeida
63d1e82c80 fix: 🐛 fixes Infinity icon crashing the frontend
There's an issue with the exported Infinity variable, InfinityIcon is an alias and fixes that
2023-09-14 09:36:34 -03:00
Cristhian Zanforlin Lousa
9c4c8f1cf7 🔨 refactor(promptComponent): rename TextAreaComponentType to PromptAreaComponentType for better naming consistency and clarity
🔨 refactor(genericModal): import cloneDeep from lodash to improve code readability and maintainability
🔨 refactor(genericModal): add type annotations to validatePrompt function parameters for better code documentation
🔨 refactor(genericModal): add null check for nodeClass before modifying it in validatePrompt function
🔨 refactor(genericModal): setNodeClass and setModalOpen only if frontend_node is not an empty object in validatePrompt function
🔨 refactor(genericModal): remove console.log statement in catch block of validatePrompt function
🔨 refactor(genericModal): add type annotations to catch block of validatePrompt function for better code documentation
🔨 refactor(types): add PromptAreaComponentType to define the type of PromptAreaComponent props
2023-09-14 09:12:18 -03:00
Gabriel Luiz Freitas Almeida
57cba4233a
Fixed format errors (#903) 2023-09-14 01:29:26 +00:00
Cristhian Zanforlin Lousa
e1bb4b4a24
🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
2023-09-13 22:26:38 -03:00