Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
bb247af614 🔧 chore(package.json): update dependencies
📦 Add new dependency:
- "@code-hike/mdx": "^0.9.0"

🔄 Update existing dependencies:
- "@mdx-js/react": "^2.3.0"
- "docusaurus-theme-mdx-v2": "^0.1.2"
2023-07-27 06:58:37 -03:00
Gabriel Luiz Freitas Almeida
e78ce40cbf 🔧 fix(docusaurus.config.js): fix import statement for remarkCodeHike to resolve linting error
 feat(docusaurus.config.js): add support for code highlighting with remarkCodeHike plugin
2023-07-27 06:58:36 -03:00
Gabriel Luiz Freitas Almeida
8ac890c553 🔧 chore(chains.mdx): add import statement for Admonition component to improve code organization and readability
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Prompts component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Conversation Chain component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in CSV Loader component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in MidJourney Prompt Chain component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Multiple Vector Stores component to use Admonition component

📝 docs(examples/python-function.mdx): add import statement for Admonition component
📝 docs(examples/python-function.mdx): improve readability of tip admonition by breaking lines
📝 docs(examples/python-function.mdx): improve readability of info admonition by breaking lines
📝 docs(examples/serp-api-tool.mdx): add import statement for Admonition component
📝 docs(examples/serp-api-tool.mdx): improve readability of info admonition by breaking lines
📝 docs(guidelines/features.mdx): add import statement for Admonition component
📝 docs(guidelines/features.mdx): improve readability of caution admonition by breaking lines
2023-07-27 06:58:35 -03:00
Cristhian Zanforlin Lousa
0ed7b7cb2a 📝 docs(widget.mdx): add instructions for including Chat Widget in Angular component's view
📝 docs(widget.mdx): provide example code for adding the 'langflow-chat' tag with necessary attributes to include the Chat Widget in the component's view
2023-07-27 00:11:40 -03:00
Cristhian Zanforlin Lousa
33ad61ae71 📝 docs(widget.mdx): add instructions for using Chat Widget in Angular application
The commit adds instructions for using the Chat Widget in an Angular application. It includes steps to insert a script tag in the index.html file, suppress warnings related to custom elements in Angular templates, and additional notes about using the Chat Widget in Angular components.
2023-07-27 00:05:17 -03:00
Lucas Oliveira
492371b185 Fixed Save With My API keys toggle 2023-07-26 23:25:19 -03:00
Igor Carvalho
498d0b0423 Merge branch 'types_refactor' of github.com:logspace-ai/langflow into types_refactor 2023-07-26 23:01:12 -03:00
Igor Carvalho
289a3f5d83 Remove console.log 2023-07-26 23:01:07 -03:00
Lucas Oliveira
ae83c987a5 Added documentation link to the description of the Api Tab 2023-07-26 23:00:51 -03:00
Igor Carvalho
7804ca9eaf refactor: Add more types 2023-07-26 22:59:55 -03:00
Lucas Oliveira
fd701ba272 Added documentation of Chat Widget. 2023-07-26 22:57:04 -03:00
Igor Carvalho
e5ac8c5211
Merge branch 'dev' into types_refactor 2023-07-26 18:38:14 -03:00
Igor Carvalho
6a32079d1b Merge branch 'types_refactor' of github.com:logspace-ai/langflow into types_refactor 2023-07-26 18:31:58 -03:00
Igor Carvalho
c69eb33d24 fix pull problems 2023-07-26 18:31:15 -03:00
Igor Carvalho
0d92a62759 Merge dev into types_refactor 2023-07-26 18:26:22 -03:00
anovazzi1
011dd98050 fixed bug on check and save 2023-07-26 16:44:15 -03:00
Lucas Oliveira
1124b10308 Changed comment to exemplify better 2023-07-26 16:20:39 -03:00
Lucas Oliveira
8df8875e7e Added description to Chat Widget HTML and changed comment from code 2023-07-26 16:04:11 -03:00
anovazzi1
d67e72d0b0 config package.json to find type errors 2023-07-26 15:49:10 -03:00
Lucas Oliveira
f4396fd6ea Fixed tooltip not appearing 2023-07-26 15:43:59 -03:00
Lucas Oliveira
aeb7b91446 Changed code to show how it is used. 2023-07-26 15:37:18 -03:00
Lucas Oliveira
eb0883231b Changed way of disabling sidebar button; Disabled API button before building. 2023-07-26 15:36:35 -03:00
Lucas Oliveira
40daa06d75 Added class 2023-07-26 14:16:34 -03:00
Lucas Oliveira
e90d05b711 Fixed button spacing at Sidebar 2023-07-26 14:15:42 -03:00
Lucas Oliveira
30779cb827 Ignore formatting 2023-07-26 14:12:23 -03:00
gustavoschaedler
ba02e99ec5 🔄 refactor(index.tsx): reorder import statements for better organization and readability 2023-07-26 18:02:12 +01:00
gustavoschaedler
d5ee293590 🔧 fix(test_custom_component.py): fix import statements and formatting issues in test_custom_component.py
 feat(test_custom_component.py): add tests for list_flows, build_config methods in CustomComponent class
🔧 fix(test_custom_component.py): fix formatting issues in test_list_flows_multiple_queries test
 feat(test_custom_component.py): add tests for list_flows, build_config methods in CustomComponent class
 feat(test_custom_component.py): add test for return type of list_flows method in CustomComponent class
 feat(test_custom_component.py): add test for return type of build_config method in CustomComponent class
 feat(test_custom_component.py): add test for presence of 'fields' key in build_config method in CustomComponent class
 feat(test_custom_component.py): add test for type of 'fields' value in build_config method in CustomComponent class
 feat(test_custom_component.py): add test for type of keys in 'fields' value in build_config method in CustomComponent class
 feat(test_custom_component.py): add test for type of values in 'fields' value in build_config method in CustomComponent class
2023-07-26 17:40:53 +01:00
gustavoschaedler
a89a9a3267 🔥 refactor(custom.py): remove unused code and class 'CustomComponent_old' to improve code cleanliness and maintainability
🔧 fix(test_custom_component.py): fix formatting issues in test_custom_component.py for better readability
 feat(test_custom_component.py): add import statements for 'patch' and 'MagicMock' to enable mocking in tests
🔬 test(test_custom_component.py): add test for the 'get_function' method of the Component class with valid code and function_entrypoint_name
🔬 test(test_custom_component.py): add test for the 'parse_assign' method of the CodeParser class
🔬 test(test_custom_component.py): add test for the 'get_code_tree' method of the Component class when given incorrect syntax
🔬 test(test_custom_component.py): add test for the '_class_template_validation' method of the CustomComponent class when the code is None
🔬 test(test_custom_component.py): add test for the 'get_function_entrypoint_args' method of the CustomComponent class
🔬 test(test_custom_component.py): add test for the 'get_function_entrypoint_return_type' method of the CustomComponent class
🔬 test(test_custom_component.py): add test for the 'get_main_class_name' method of the CustomComponent class when there is no main class

🔥 refactor(test_custom_component.py): remove commented out code and unused fixtures to improve code readability and maintainability

🔧 refactor(tests): remove commented out test cases and unused imports
 feat(tests): add new test case for list_flows method when there are no flows in the database
 feat(tests): add new test case for build_config method when code is not provided
 feat(tests): add new test case for list_flows method when there are multiple queries to the database
2023-07-26 16:56:21 +01:00
Gabriel Luiz Freitas Almeida
63ead274c4 🔧 fix(constants.py): add support for additional Python base types in CUSTOM_COMPONENT_SUPPORTED_TYPES dictionary
🔧 fix(custom_component.py): update return_type_valid_list to use CUSTOM_COMPONENT_SUPPORTED_TYPES dictionary
🔧 fix(types.py): update add_base_classes function to use CUSTOM_COMPONENT_SUPPORTED_TYPES dictionary instead of LANGCHAIN_BASE_TYPES
2023-07-26 10:15:22 -03:00
Gabriel Luiz Freitas Almeida
28149ddb6c 🔧 fix(index.css): remove unnecessary whitespace and comments for better code readability
 feat(index.css): add support for beta background and foreground colors to improve visual design and user experience

🔧 chore(styles.css): reorganize color variables for better readability and maintainability
2023-07-26 10:00:34 -03:00
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