Commit graph

6,351 commits

Author SHA1 Message Date
Dave Morris
ff71d10ff5
Update docker-compose.yml to use the correct default langflow port 2023-08-03 12:09:10 -05:00
Gabriel Luiz Freitas Almeida
c11204d3c5 🔧 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-03 13:48:57 -03:00
Gabriel Luiz Freitas Almeida
8db39dbb30 fix: 🐛 fixes condition in release workflow 2023-08-03 12:49:49 -03:00
Gabriel Luiz Freitas Almeida
9d3ea4f779 🔖 chore(pyproject.toml): bump version from 0.4.0 to 0.4.1 for langflow package 2023-08-03 11:47:40 -03:00
Gabriel Luiz Freitas Almeida
d90b6c2691 🐛 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-03 11:43:18 -03:00
gustavoschaedler
2fa7810ff8 Merge branch 'dev' into authentication 2023-08-03 15:31:24 +01:00
anovazzi1
2cc74f2360 refactor(ModalField): remove unused 'id' prop to improve code readability and maintainability 2023-08-02 22:45:26 -03:00
anovazzi1
c1fc501e62 refactor(NodeModal): remove unnecessary id attribute from input element
The id attribute was not being used and was unnecessary, so it was removed to simplify the code.
2023-08-02 22:44:41 -03:00
anovazzi1
5afc10f721 update validateNode function to use handle id as JSON 2023-08-02 22:39:42 -03:00
anovazzi1
3a185d915d fix(reactflowUtils.ts): import Edge from reactflow to fix type error
refactor(reactflowUtils.ts): update updateIds function to handle changes in edge sourceHandle and targetHandle properties
2023-08-02 22:31:47 -03:00
anovazzi1
db473f6f0d migrate isValidConnection to handle in JSON format 2023-08-02 22:23:16 -03:00
Gabriel Luiz Freitas Almeida
f4829bf21d 🔀 chore(base.py): import SQLDatabaseChain from langchain_experimental.sql with type ignore to suppress type checking error 2023-08-02 22:12:45 -03:00
Gabriel Luiz Freitas Almeida
d397f4457f 🔀 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-02 22:05:52 -03:00
anovazzi1
32bcb08bdb fix(reactflowUtils.ts): refactor cleanEdges function to use JSON.parse and JSON.stringify for targetHandle and sourceHandle variables to improve readability and maintainability 2023-08-02 21:41:30 -03: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
Igor Carvalho
565a62d87c remove console.log 2023-08-02 19:09:14 -03:00
Igor Carvalho
5e65397773 refactor: Reduce errors on types 2023-08-02 19:08:39 -03:00
Gabriel Luiz Freitas Almeida
84c2d5d3c8
Adds Custom Components and documentation (#704) 2023-08-02 16:09:15 -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
Igor Carvalho
a4319eaa43 Merge dev into types_refactor 2023-08-02 14:30:10 -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
Cristhian Zanforlin Lousa
4f2fc11045 🔥 refactor(App.tsx): remove unused code related to preventing control+backspace event
The code related to preventing the control+backspace event in the application was removed as it was no longer needed.
2023-08-02 11:52:33 -03:00
Lucas Oliveira
da7391e783 Removed unused console log 2023-08-02 11:44:35 -03:00
gustavoschaedler
23a26319e3 Merge branch 'dev' into python_custom_node_component 2023-08-02 15:42:08 +01: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
Cristhian Zanforlin Lousa
89671a8859 🐛 fix(App.tsx): add support for preventing control+backspace event on the application to improve user experience 2023-08-01 23:21:58 -03:00
anovazzi1
44686dda06 fix(GenericNode/index.tsx): fix indentation of Tooltip component to improve code readability 2023-08-01 22:19:47 -03:00
anovazzi1
fbca8497d6 refactor(reactflowUtils.ts): improve variable names and add type checking for source and target nodes in updateEdgesHandleIds function
fix(reactflowUtils.ts): fix assignment of newTarget in updateEdgesHandleIds function to correctly set type, fieldName, id, and inputTypes properties
fix(reactflowUtils.ts): fix assignment of newSource in updateEdgesHandleIds function to correctly set dataType, id, and baseClasses properties
fix(reactflowUtils.ts): fix assignment of sourceHandle and targetHandle in updateEdgesHandleIds function to correctly stringify newSource and newTarget objects
2023-08-01 22:09:32 -03:00
anovazzi1
75c4d3e85c refactor(reactflowUtils.ts): add type definitions for updateEdgesHandleIdsType to improve code readability and maintainability
feat(reactflowUtils.ts): implement updateEdgesHandleIds function to update handle ids in edges based on node changes
2023-08-01 22:09:32 -03:00
anovazzi1
1e3c918880 update old handle as string to json format and types to easily use the new id as json 2023-08-01 22:09:07 -03:00
anovazzi1
6604ef5351 created type for HandleIds 2023-08-01 22:08:01 -03:00
Cristhian Zanforlin Lousa
8c2ce3f209 🔀 merge(frontend): resolve merge conflict in reactflowUtils.ts file
🐛 fix(frontend): remove unnecessary merge conflict markers in reactflowUtils.ts file
2023-08-01 20:21:06 -03:00
Cristhian Zanforlin Lousa
2f1f3ee9d8 🐛 fix(App.tsx): prevent default behavior of Ctrl+Backspace key combination to improve user experience
🐛 fix(AccordionComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(floatComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(inputComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(inputListComponent/index.tsx): prevent default behavior of Ctrl+Backspace key combination to improve user experience

🐛 fix(intComponent/index.tsx): prevent default behavior of Backspace key to improve user experience

🐛 fix(genericModal/index.tsx): prevent default behavior of Backspace key to improve user experience
2023-08-01 20:15:54 -03:00
Gabriel Luiz Freitas Almeida
3a76d2de59 🐛 fix(parameterComponent): change default value for unknown node family to "Other" for better clarity 2023-08-01 19:27:08 -03:00
gustavoschaedler
5b9bed07b5 🔥 chore(custom.py): remove custom component file
The custom component file `custom.py` has been removed from the project as it is no longer needed.
2023-08-01 23:17:23 +01:00
anovazzi1
ba1fe2c815 Merge branch 'dev' of personal:logspace-ai/langflow into dev 2023-08-01 18:55:30 -03:00
anovazzi1
1d20a91b6e fix csv file upload bug 2023-08-01 18:53:47 -03:00
Gabriel Luiz Freitas Almeida
a09e57b9ef 🔧 chore(__main__.py): update components_path default value to include "components" directory for better organization
🔧 chore(custom.py): update description of YourComponent to be more descriptive and accurate
2023-08-01 18:24:19 -03:00
gustavoschaedler
0fa15d2d91 feat(custom.py): add new custom component 'YourComponent' to the project
This commit adds a new file 'custom.py' under the 'src/backend/langflow/components/custom_components' directory. The file contains the implementation of a custom component called 'YourComponent'.

The 'YourComponent' class extends the 'CustomComponent' class from the 'langflow' library. It has a display name of "Custom Component" and a description of "My description".

The component has a 'build_config' method that returns a configuration object with a single property 'url'. The 'url' property is multiline and required.

The 'build' method of the component takes in a 'url' string, a 'llm' object of type 'BaseLLM', and a 'prompt' object of type 'PromptTemplate'. It makes a GET request to the provided 'url', runs the response text through an 'LLMChain' with the given 'llm' and 'prompt', and returns a 'Document' object with the resulting page content.
2023-08-01 22:18:54 +01:00
Gabriel Luiz Freitas Almeida
9f97ecba25 🐛 fix(__main__.py): fix default value of components_path option to point to the correct directory
 feat(__main__.py): add support for LANGFLOW_COMPONENTS_PATH environment variable to specify the directory containing custom components
2023-08-01 18:12:02 -03:00
Gabriel Luiz Freitas Almeida
f4271ba4d9 🔧 chore(settings.py): add debug logs to track the behavior of components_path configuration
 feat(settings.py): add support for LANGFLOW_COMPONENTS_PATH environment variable to add custom components path to components_path
2023-08-01 18:09:01 -03:00
Gabriel Luiz Freitas Almeida
3e465f6df3 📝 docs(flow-runner.mdx): update example code formatting and fix indentation for better readability
🖼️ chore(flow_runner_code.png): update flow_runner_code.png image
2023-08-01 17:49:58 -03:00
Gabriel Luiz Freitas Almeida
11854ccdb3 🔧 chore(constants.py): update default custom component code to improve readability and remove unnecessary imports
 feat(constants.py): update display name and description of the custom component to improve clarity and user experience
🔧 chore(custom_components.py): update display name of the custom component to improve clarity and user experience
2023-08-01 17:44:02 -03:00