Commit graph

6,039 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6f2165402a
Merge branch 'dev' into optional_deps 2023-07-26 08:34:10 -03:00
Gabriel Luiz Freitas Almeida
4a1faf3b66 📝 docs(README.md): update dependencies section to remove huggingface-hub and mention the ability to use models from LocalAI project 2023-07-26 08:29:38 -03:00
Gabriel Luiz Freitas Almeida
de110151be 🔒 chore(pyproject.toml): update huggingface-hub version to "^0.16.0" and add "inference" extra to improve compatibility and functionality
🔥 refactor(pyproject.toml): remove unnecessary dependencies from the "local" extra to simplify the project configuration
2023-07-26 08:28:17 -03:00
Lucas Oliveira
8d1fda5760 Changed class name to not interfere with default tailwind class 2023-07-26 08:10:22 -03:00
Gabriel Luiz Freitas Almeida
260e8c7f02 🔧 chore(README.md): remove unnecessary hyphen in Table of Contents
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Installation section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Command Line Interface (CLI) section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Usage section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Deploy Langflow on Jina AI Cloud section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Deploy on Railway section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Deploy on Render section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in Contributing section
🔧 chore(README.md): remove empty line
🔧 chore(README.md): remove unnecessary hyphen in License section
2023-07-26 08:08:50 -03:00
Lucas Oliveira
b6592d8567 Fixed order of imports 2023-07-26 08:06:57 -03:00
Lucas Oliveira
a308ecbc4f Formatting 2023-07-26 07:55:38 -03:00
Gabriel Luiz Freitas Almeida
02ca9739a0 Merge branch 'dev' into python_custom_node_component 2023-07-26 07:55:25 -03:00
Lucas Oliveira
a624cee8db Added Chat Widget HTML API Tab 2023-07-26 07:55:12 -03:00
Gabriel Luiz Freitas Almeida
67b2aeae67 🐛 fix(custom_component.py): remove unused import of UUID from langflow.interface.custom.custom_component.py
🐛 fix(custom_component.py): handle case when code is None in is_check_valid method of CustomComponent class
🐛 fix(custom_component.py): handle case when code is None in get_function_entrypoint_args property of CustomComponent class
🐛 fix(custom_component.py): handle case when code is None in get_function_entrypoint_return_type property of CustomComponent class
🐛 fix(custom_component.py): change flow_id parameter type from UUID to str in load_flow method of CustomComponent class
🐛 fix(util.py): ignore type error for multiprocess import in langflow.utils.util module
🐛 fix(util.py): handle case when _type is a type object in remove_optional_wrapper function of langflow.utils.util module
2023-07-26 07:47:34 -03:00
Gabriel Luiz Freitas Almeida
c4a2c1c80a feat(schema.py): add ClassCodeDetails and CallableCodeDetails data classes to store details about classes and callables respectively 2023-07-26 07:46:31 -03:00
Gabriel Luiz Freitas Almeida
bf422f7f37 🔨 refactor(code_parser.py): remove unused imports and classes to improve code cleanliness and maintainability
🔨 refactor(code_parser.py): remove commented out code for function details to improve code readability
🔨 refactor(code_parser.py): refactor parse_node method to remove type ignore comments and improve code readability
🔨 refactor(code_parser.py): refactor parse_function_args method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_positional_args method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_varargs method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_keyword_args method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_kwargs method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_function_body method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_assign method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_class method to improve code readability and maintainability
🔨 refactor(code_parser.py): refactor parse_global_vars method to improve code readability and maintainability
2023-07-26 07:46:00 -03:00
Gabriel Luiz Freitas Almeida
029f01aa35 🐛 fix(base.py): change variable name from fileTypes to file_types for consistency and readability
🐛 fix(agents.py): change variable name from fileTypes to file_types for consistency and readability
🐛 fix(documentloaders.py): change variable name from fileTypes to file_types for consistency and readability
🐛 fix(llms.py): change variable name from fileTypes to file_types for consistency and readability
2023-07-26 07:45:31 -03:00
Gabriel Luiz Freitas Almeida
57dd75b3f5 🔧 chore(component.py): add Optional type hint to the 'code' field in the Component model to indicate that it is an optional field
🔧 chore(component.py): update the error message in the validate_entrypoint_name function to provide more clarity on the required field
2023-07-26 07:43:49 -03:00
Gabriel Luiz Freitas Almeida
c93febc7a3 🚀 feat(test_agents_template.py): add "fileTypes" field to the "path" agent configuration to specify supported file types 2023-07-26 07:43:16 -03:00
Lucas Oliveira
d79f58cfb5
Notification modal refactor (#683)
This pull request refers to the Notification Center modal refactor,
deleting permanently the PopupContext way of showing the popup, and
utilizing the Popover component from ShadCN to display it.
2023-07-26 07:13:35 -03:00
Gabriel Luiz Freitas Almeida
39755fb217 🐛 fix(code_parser.py): refactor CodeParser.parse_function_node to use CallableCodeDetails dataclass for storing function details 2023-07-26 07:12:24 -03:00
gustavoschaedler
1e54c17574 🔥 refactor(tools.py): remove unused import and typing import statement 2023-07-26 01:00:56 +01:00
Gabriel Luiz Freitas Almeida
683d0ffcc8 🐛 fix(types.py): prevent adding base classes that are in CLASSES_TO_REMOVE list to frontend_node 2023-07-25 20:54:57 -03:00
Igor Carvalho
91e0bf7a01 refactor: Change types to types folder 2023-07-25 20:43:11 -03:00
Igor Carvalho
ff2eb2d13d refactor[genericIconComponent]: Refactor icon to type it properly 2023-07-25 19:48:13 -03:00
gustavoschaedler
f486c27a2f 🔥 refactor(types.py): remove commented out code for building langchain custom component list from path
🔨 refactor(types.py): refactor load_files_from_path function to improve readability and maintainability

🔨 refactor(types.py): refactor build_and_validate_all_files function to improve readability and maintainability

🔨 refactor(types.py): refactor build_invalid_menu function to improve readability and maintainability
2023-07-25 23:45:35 +01:00
gustavoschaedler
0ada6b841f 🐛 fix(types.py): remove unnecessary blank line
 feat(types.py): refactor build_langchain_template_custom_component function to improve readability and error handling
2023-07-25 23:44:36 +01:00
Igor Carvalho
b70ed70788 refactor[index.css]: Refactor index.css 2023-07-25 19:03:04 -03:00
anovazzi1
e232d33c07 feat(EditFlowSettingsComponent): add validation for duplicate flow names
- Added `invalidName` and `setInvalidName` props to `EditFlowSettings` component to handle validation for duplicate flow names.
- Added `nameLists` useRef to store the list of flow names fetched from the database.
- Added `useEffect` to fetch the flow names from the database and populate `nameLists` useRef.
- Modified `handleNameChange` function to check if the entered name already exists in `nameLists` useRef and set `invalidName` accordingly.
- Added a new span element to display an error message if the name is already in use.

fix(flowSettingsModal): disable save button when the flow name is invalid

- Added `invalidName` and `setInvalidName` states to `FlowSettingsModal` component to handle the validation for invalid flow names.
- Passed `invalidName` and `setInvalidName` props to `EditFlowSettings` component.
- Disabled the save button when `invalidName` is true.
2023-07-25 18:49:52 -03:00
gustavoschaedler
e8f6b435f2 🐛 fix(types.py): fix formatting issues in build_langchain_template_custom_component function for better readability
🐛 fix(types.py): fix formatting issues in build_langchain_custom_component_list_from_path function for better readability
2023-07-25 22:20:28 +01:00
gustavoschaedler
60f6c0a8ed Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-25 22:06:21 +01:00
Igor Carvalho
f11c41644c refactor[utils.ts]: Remove and change wrong types 2023-07-25 18:01:35 -03:00
gustavoschaedler
883f852b73 🐛 fix(utils.py): move merge_nested_dicts function to the top of the file for better organization
 feat(utils.py): add merge_nested_dicts function to merge nested dictionaries recursively
🐛 fix(endpoints.py): import merge_nested_dicts function from the correct module
 feat(endpoints.py): use merge_nested_dicts function to merge dictionaries in build_langchain_custom_component_list_from_path function
🐛 fix(types.py): import merge_nested_dicts function from the correct module
 feat(types.py): use merge_nested_dicts function to merge dictionaries in build_langchain_custom_component_list_from_path function
🐛 fix(types.py): import merge_nested_dicts function from the correct module
 feat(types.py): use merge_nested_dicts function to merge valid and invalid menus in build_langchain_custom_component_list_from_path function
🐛 fix(tools.py): import Optional from typing module
 feat(tools.py): add CustomComponentEmptyNode class to represent an empty custom component template
2023-07-25 21:58:09 +01:00
Lucas Oliveira
f35cbde38a Changed color to specific one 2023-07-25 17:56:02 -03:00
Gabriel Luiz Freitas Almeida
4e5850da3a 🔀 chore(base.py): add "beta" field to the serialized representation of FrontendNode class
📝 docs(base.py): update documentation for FrontendNode class to include information about the "beta" field
2023-07-25 17:49:30 -03:00
Lucas Oliveira
11bad4d07d Added classes to index.css 2023-07-25 17:43:51 -03:00
Lucas Oliveira
ae2707d7c3 Merge branch 'python_custom_node_component' of github.com:logspace-ai/langflow into python_custom_node_component 2023-07-25 17:38:49 -03:00
Lucas Oliveira
c9e13eb359 Changed color 2023-07-25 17:38:24 -03:00
Lucas Oliveira
6749fb4475 Changed disposition of Beta div 2023-07-25 17:30:03 -03:00
Gabriel Luiz Freitas Almeida
74e263811b 🔨 refactor(types.py): import CustomComponentFrontendNode from custom_components module to improve code organization and readability
🔨 refactor(types.py): change usage of CustomComponentNode to CustomComponentFrontendNode to align with updated module structure

🔨 refactor(frontend_node/base.py): add beta flag to FrontendNode class to indicate if a node is in beta stage

🔨 refactor(custom_components.py): add beta flag to CustomComponentFrontendNode class to indicate it is in beta stage

🔨 refactor(tools.py): remove unused import of DEFAULT_CUSTOM_COMPONENT_CODE

🔨 refactor(tools.py): remove CustomComponentNode class as it is no longer used
2023-07-25 17:22:02 -03:00
Lucas Oliveira
19c714a7d5 Added Beta badge 2023-07-25 17:14:12 -03:00
Gabriel Luiz Freitas Almeida
b76141b3df 🔄 refactor(custom_component.py): rename list_flow_names method to list_flows for better clarity and consistency
🐛 fix(custom_component.py): fix return value of list_flows method to return the actual flow objects instead of just their names
🔥 chore(custom_component.py): remove unused build method as it is not implemented
2023-07-25 17:12:48 -03:00
Gabriel Luiz Freitas Almeida
41471b72a2 🐛 fix(memories.py): fix conditional statement for setting show and required properties of fields in MotorheadMemory class
 feat(memories.py): add conditional statement to show client_id field in MotorheadMemory class
2023-07-25 16:45:00 -03:00
Gabriel Luiz Freitas Almeida
a3417d047b 📝 docs(config.yaml): add documentation link for MotorheadMemory integration
🐛 fix(memories.py): hide and make chat_memory field optional for MotorheadMemory frontend node
2023-07-25 16:32:01 -03:00
Gabriel Luiz Freitas Almeida
95f69442d6 📝 docs(README.md): add documentation for deploying on Railway and Render platforms
📝 docs(README.md): add documentation for the `component-path` command line option to specify custom components directory path
2023-07-25 15:37:12 -03:00
Lucas Oliveira
361fd08828 Formatting 2023-07-25 15:16:24 -03:00
Lucas Oliveira
39a696117e Changed notification center popup to ShadCN Popover and deleted popupContext permanently. 2023-07-25 15:15:52 -03:00
Gabriel Luiz Freitas Almeida
46c6afd85f 🔥 refactor(main.py): remove commented out code for getting log level in create_app() function
🔒 chore(main.py): configure logger in create_app() function to ensure proper logging setup
2023-07-25 15:13:43 -03:00
Gabriel Luiz Freitas Almeida
a928005b7b 🐛 fix(endpoints.py): change import statement for typing module to import Annotated from typing module to fix type hinting error
 feat(endpoints.py): add support for clear_cache parameter in process_flow endpoint to allow clearing the cache before processing the flow
🐛 fix(process.py): add logic to clear cache if clear_cache parameter is True in process_graph_cached function to fix caching issue
2023-07-25 15:04:41 -03:00
Gabriel Luiz Freitas Almeida
c83060ed58 🐛 fix(base.py): import CLASSES_TO_REMOVE constant from constants module to fix NameError
🔀 chore(constants.py): add CLASSES_TO_REMOVE constant to store classes to be removed from base.py module
2023-07-25 14:21:43 -03:00
Gabriel Luiz Freitas Almeida
f64d0a2ae4 🐛 fix(parameterComponent): remove unnecessary empty lines for better code readability
🐛 fix(utils): remove unnecessary empty lines for better code readability
2023-07-25 14:21:14 -03:00
Gabriel Luiz Freitas Almeida
12933ccf52 🔧 chore(__main__.py): add debug logs to update_settings function for better troubleshooting
 feat(__main__.py): add support for loading settings from a specified config file
 feat(__main__.py): add support for setting remove_api_keys flag
 feat(__main__.py): add support for setting cache flag
 feat(__main__.py): add support for adding component path
2023-07-25 13:53:39 -03:00
Cristhian Zanforlin Lousa
418e132da1 Merge branch 'python_custom_node_component' of https://github.com/logspace-ai/langflow into python_custom_node_component 2023-07-25 12:48:32 -03:00
Cristhian Zanforlin Lousa
75e19b4339 🐛 fix(parameterComponent): remove unnecessary if condition and code block
🐛 fix(utils): remove unnecessary if condition and code block
 feat(parameterComponent): add fallback logic to display a custom component when no grouped objects are found
2023-07-25 12:48:24 -03:00