7b238b44e7🔀 chore(base.py): update _built_object_repr method to include emojis and more descriptive messages The _built_object_repr method in the Vertex class has been updated to include emojis and more descriptive messages. The message "Built successfully ✨" is now returned when the _built_object attribute is True, indicating that the object has been successfully built. On the other hand, the message "Failed to build 😵💫" is returned when the _built_object attribute is False, indicating that the object failed to build. This change improves the clarity and visual representation of the build status.
Gabriel Luiz Freitas Almeida
2023-07-06 15:25:05 -03:00
d31fe77d55🐛 fix(utils.py): remove unnecessary or operator in process_graph function call The unnecessary or operator in the process_graph function call has been removed. The chat_inputs.message parameter is now passed directly to the get_result_and_steps function.
Gabriel Luiz Freitas Almeida
2023-07-06 15:24:05 -03:00
c3886ed219🐛 fix(base.py): change wrong_variables from a set to a list to preserve order and improve error message generation 🔀 refactor(base.py): refactor check_input_variables function to simplify logic and improve readability The wrong_variables variable is now a list instead of a set to preserve the order of the variables. This change improves the error message generation by ensuring that the variables are displayed in the same order as they appear in the input. The check_input_variables function has been refactored to simplify the logic and improve readability. The code now handles invalid characters and wrong variables separately, making it easier to understand and maintain.
Gabriel Luiz Freitas Almeida
2023-07-06 15:23:17 -03:00
56b23c4a1d🔧 chore(types.py): add missing return statement in _built_object_repr method of PromptVertex 📝 docs(types.py): improve readability and add clarity to the _built_object_repr method of PromptVertex The _built_object_repr method of PromptVertex was missing a return statement when the condition in the if statement was not met. This commit adds the missing return statement to ensure the method always returns a value. Additionally, the commit improves the documentation of the method to provide better readability and clarity.
Gabriel Luiz Freitas Almeida
2023-07-06 15:22:47 -03:00
049a41d25e🔥 refactor(GenericNode/index.tsx): remove unnecessary console.log statement 🔥 refactor(buildTrigger/index.tsx): remove unnecessary console.log statement The console.log statements were removed as they were no longer needed and were cluttering the code.
Gabriel Luiz Freitas Almeida
2023-07-06 15:18:55 -03:00
be26ed9979🔥 refactor(textAreaModal/index.tsx): remove unused imports and code, simplify component structure for better readability and maintainability
Lucas Oliveira
2023-07-06 15:32:39 -03:00
5dc73b41b6🐛 fix(genericModal/index.tsx): move setValue(inputValue) before the switch statement to ensure proper value assignment
Lucas Oliveira
2023-07-06 15:28:54 -03:00
798be36cd8🐛 fix(genericModal/index.tsx): change validatePrompt function call to setIsEdit to fix incorrect behavior when blurring input field
Lucas Oliveira
2023-07-06 15:27:36 -03:00
5d417fc11dMerge branch 'form_io' of github.com:logspace-ai/langflow into form_io
Lucas Oliveira
2023-07-06 15:13:05 -03:00
01ecf37893🐛 fix(genericModal/index.tsx): remove redundant setValue call to fix a bug where the value was being set twice 🐛 fix(textAreaModal/index.tsx): remove redundant setValue call to fix a bug where the value was being set twice
Lucas Oliveira
2023-07-06 15:09:19 -03:00
a046e3a141chore(index.css): remove border-1 class from dropdown-component-outline to fix styling issue
anovazzi1
2023-07-06 11:56:32 -03:00
7951ccfc77🐛 fix(base.py): fix logic for checking and fixing input variables in check_input_variables function 🔍 refactor(base.py): refactor build_error_message function to improve readability and error message generation
Gabriel Luiz Freitas Almeida
2023-07-06 10:27:26 -03:00
6eea2d8d58feat: Customize DB path for JCloud app
Zac Li
2023-07-06 16:57:20 +08:00
Update deploy_langflow_gcp_spot.sh
Ri
2023-07-06 04:14:54 -04:00
d6ec2a4713🔧 fix(chatMessage/index.tsx): change margin-bottom class from "my-3" to "mb-3" and add margin-top class "mt-1" to improve spacing and alignment of chat message component
Lucas Oliveira
2023-07-06 01:34:37 -03:00
4f4e77838f🐛 fix(accordion.tsx): remove unnecessary hover effect on AccordionTrigger to improve styling
Lucas Oliveira
2023-07-06 01:32:36 -03:00
26ec9c5d85Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io
Lucas Oliveira
2023-07-06 00:29:37 -03:00
0bb664f3ad🐛 fix(chatMessage): fix styling issue in ChatMessage component to ensure proper alignment and text wrapping 🐛 fix(chatMessage): add max height and overflow to AccordionContent in ChatMessage component to prevent content overflow 🐛 fix(formModal): adjust width of left panel in FormModal component to improve layout 🐛 fix(formModal): fix flexbox alignment issue in right panel of FormModal component
Lucas Oliveira
2023-07-06 00:29:05 -03:00
38da799224Add langchain imports and format error detail message
gustavoschaedler
2023-07-06 01:05:56 +01:00
11cece92b8Refactor code for CustomComponent class
gustavoschaedler
2023-07-06 01:02:34 +01:00
8b35b4b44eMerge branch 'dev' into tailwind-constants
anovazzi1
2023-07-05 20:57:16 -03:00
a8900c429d🔧 chore(base.py): improve the representation of the built object in the Vertex class The representation of the built object in the Vertex class has been improved to provide more meaningful information. Instead of returning the actual object representation, it now returns "Built successfully" if the object has been built, or "Not built yet" if the object has not been built yet. This change enhances the clarity and readability of the code.
Gabriel Luiz Freitas Almeida
2023-07-05 20:35:39 -03:00
ed17a621afChanged chat history to contain all keys unformatted, added accordion with all keys
Lucas Oliveira
2023-07-05 20:25:49 -03:00
9926edbbbfMerge remote-tracking branch 'origin/main' into dev
Gabriel Luiz Freitas Almeida
2023-07-05 20:24:02 -03:00
f92fefba46Refactor code for CustomComponent class and build_langchain_template_custom_component function
gustavoschaedler
2023-07-06 00:21:35 +01:00
0f97dfe678Formatting
Gabriel Luiz Freitas Almeida
2023-07-05 20:18:04 -03:00
Release (#615)
Gabriel Luiz Freitas Almeida
2023-07-05 20:13:05 -03:00
f84cd4026a🐛 fix(validate.py): set the value of the template field to an empty string The value of the template field is now set to an empty string to ensure consistency and avoid potential issues with undefined values.
Gabriel Luiz Freitas Almeida
2023-07-05 20:09:11 -03:00
605f7cecb2🐛 fix(chat.py): handle case when artifacts is empty to prevent potential error The code now handles the case when the artifacts variable is empty by setting input_keys_response to an empty dictionary. This prevents potential errors that could occur when trying to build the input_keys_response object.
Gabriel Luiz Freitas Almeida
2023-07-05 20:06:27 -03:00
c9a2ba5821fix(codeAreaComponent): add key prop to CodeAreaModal component to fix React warning feat(baseModal): create a reusable BaseModal component to be used in different modals fix(codeAreaModal): add missing imports and fix indentation in CodeAreaModal component refactor(codeAreaModal): refactor handleClick function to handle dynamic and non-dynamic code validation and execution refactor(codeAreaModal): refactor useEffect to update value prop when code state changes
anovazzi1
2023-07-05 19:59:08 -03:00
9d6d2fd88afeat: add header and input component tailwind constant classes
Igor Carvalho
2023-07-05 19:54:10 -03:00
100419833f🐛 fix(chatTrigger): update className condition to disable chat trigger button when isBuilt is false or canOpen is false
Lucas Oliveira
2023-07-05 19:40:52 -03:00
9f24f7830c🐛 fix(codeAreaComponent): adjust classNames to fix styling issues and improve readability 🐛 fix(promptComponent): adjust classNames to fix styling issues and improve readability 🐛 fix(textAreaComponent): adjust classNames to fix styling issues and improve readability
Lucas Oliveira
2023-07-05 19:30:48 -03:00
cbda5fc146fix: commit saving error
Igor Carvalho
2023-07-05 19:09:15 -03:00
dccb9c27dbfeat: Add CodeArea and Dropdown component tailwind constant classes
Igor Carvalho
2023-07-05 19:08:33 -03:00
d0621efd1cfeat: Add card component and unused extrasidebar tailwind constants classes
Igor Carvalho
2023-07-05 18:13:32 -03:00
6391cfd671Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component
anovazzi1
2023-07-05 18:01:27 -03:00
f6f471cc53fix(codeAreaComponent): update import path for CodeAreaModal to use v2 version fix(codeAreaModal/v2): set open prop to true in TwoColumnsModal component fix(twoColumnsModal): add missing import statement for PopUpContext refactor(twoColumnsModal): remove unused code and add logic to close modal and reset state when modal is closed
anovazzi1
2023-07-05 18:01:16 -03:00
27776f473fsubcomponents with type assertion
anovazzi1
2023-07-05 17:49:44 -03:00
1dcb71b952🐛 fix(base.py): handle case when base_type is None to avoid ValueError The code now checks if the base_type attribute is None before attempting to instantiate a class. If base_type is None, a ValueError is raised with a descriptive error message. This fix prevents potential errors when the base_type is not found for a given node.
Gabriel Luiz Freitas Almeida
2023-07-05 17:21:03 -03:00
e832711a1ffirst modal with subcomponents
anovazzi1
2023-07-05 17:04:32 -03:00
d9891b9c86🔧 chore(base.py): refactor code to improve readability and handle optional parameters 📝 chore(base.py): update comments and remove unused imports The code in the Vertex class has been refactored to improve readability and handle optional parameters more effectively. The code now checks if a parameter is of type "code", "str", or "prompt" and if it is not already set in the params dictionary, it sets it to the corresponding value from the value dictionary. Additionally, if a parameter is not required and not set in the params dictionary, it checks if a default value is provided and sets it to the default value if available, otherwise it removes the parameter from the params dictionary. This change improves the handling of optional parameters and makes the code more maintainable.
Gabriel Luiz Freitas Almeida
2023-07-05 17:00:50 -03:00
2fcc8296d2formatting
Gabriel Luiz Freitas Almeida
2023-07-05 16:45:45 -03:00
df09f6119d📝 docs(README.md): fix typo in Langflow to LangFlow for consistency The typo in the word "LangFlow" has been fixed to ensure consistency in the naming convention used throughout the project.
Gabriel Luiz Freitas Almeida
2023-07-05 16:42:47 -03:00
b71913a0aa🐛 fix(__main__.py): change word variable from "LangFlow" to "Langflow" for consistency 🐛 fix(schemas.py): change class name from "ExportedFlow" to "Exported flow from Langflow" for consistency The word variable in __main__.py is changed from "LangFlow" to "Langflow" to maintain consistency in naming conventions. Similarly, the class name in schemas.py is changed from "ExportedFlow" to "Exported flow from Langflow" for consistency in naming conventions.
Gabriel Luiz Freitas Almeida
2023-07-05 16:42:13 -03:00
a73737435b📝 docs(CONTRIBUTING.md): update project name to "Langflow" for consistency 📝 docs(README.md): update project name to "Langflow" for consistency 📝 chore(frontend): update project name in HTML title tag to "Langflow" for consistency The project name "LangFlow" has been updated to "Langflow" for consistency throughout the documentation and codebase. This change improves readability and maintains a consistent naming convention.
Gabriel Luiz Freitas Almeida
2023-07-05 16:41:57 -03:00
90acee2273🐛 fix(constants.tsx): fix typo in flow name from LangFlow to Langflow 🐛 fix(tabsContext.tsx): fix typo in variable name from LangFlowState to LangflowState 🐛 fix(flow_constants.tsx): fix typo in description from LangFlow to Langflow 🐛 fix(chatModal/index.tsx): fix typo in chat modal title from LangFlow Chat to Langflow Chat 🐛 fix(importModal/index.tsx): fix typo in import modal title from LangFlow Examples to Langflow Examples 🐛 fix(CommunityPage/index.tsx): fix typo in community page text from LangFlow to Langflow 🐛 fix(FlowPage/index.tsx): fix typo in flow page text from LangFlow to Langflow
Gabriel Luiz Freitas Almeida
2023-07-05 16:41:35 -03:00
87061316b3formatted code
Lucas Oliveira
2023-07-05 16:36:28 -03:00
14d50c878c🔖 chore(pyproject.toml): update package version to 0.2.13 The package version has been updated from 0.2.12 to 0.2.13. This change is made to reflect the latest changes and improvements in the package.
Gabriel Luiz Freitas Almeida
2023-07-05 16:25:43 -03:00
e2a066d7f2Added checks to see if the chat can open
Lucas Oliveira
2023-07-05 16:30:46 -03:00
5138129003🔧 chore(__main__.py): add load_params() function to load parameters from environment variables The load_params() function is added to load the parameters from the environment variables. This allows for more flexibility and configurability of the application by allowing the parameters to be set via environment variables.
Gabriel Luiz Freitas Almeida
2023-07-05 15:41:49 -03:00
Added better CLI docs in README and bumps langchain-serve (#611)
Gabriel Luiz Freitas Almeida
2023-07-05 15:10:39 -03:00
08bc992d63🔖 chore(pyproject.toml): update package version to 0.2.12 The package version has been updated from 0.2.11 to 0.2.12. This change is made to reflect the latest changes and improvements in the package.
Gabriel Luiz Freitas Almeida
2023-07-05 14:57:48 -03:00
Merge branch 'release' into jcloud_fix
Gabriel Luiz Freitas Almeida
2023-07-05 14:48:29 -03:00
f7515eb7bd📚 docs(README.md): update table of contents and headings for better organization and readability 🔧 chore(README.md): reformat and update CLI section for clarity and consistency The README.md file has been updated to improve the organization and readability of the document. The table of contents has been updated to include all relevant sections. Headings have been adjusted to provide a clear hierarchy and improve navigation. The CLI section has been reformatted and updated to provide clearer instructions and explanations.
Gabriel Luiz Freitas Almeida
2023-07-05 14:45:28 -03:00
b5c7646b37fix(codeAreaModal): update error state type to match API response structure for better error handling feat(codeAreaModal): add support for displaying error details and traceback in the error tab for better debugging refactor(codeAreaModal): improve code readability and formatting for better maintainability
anovazzi1
2023-07-05 14:01:09 -03:00
68c6ac8ea2Refactor base class removal logic and add dict representation
gustavoschaedler
2023-07-05 17:23:53 +01:00
611cb7f57c📝 docs(README.md): Add CLI usage and environment variables sections to the README The README file now includes a new section that provides information on how to use the command-line interface (CLI) of Langflow. It explains the available options and their usage. Additionally, a section on environment variables is added, which explains how to configure CLI options using environment variables. This provides users with more flexibility in customizing the behavior of the Langflow server.
Gabriel Luiz Freitas Almeida
2023-07-05 13:07:16 -03:00
70b634cbcf🔧 chore(__main__.py): refactor serve function to use environment variables for configuration options 🌟 feat(__main__.py): add support for environment variables to configure serve function The serve function in __main__.py has been refactored to use environment variables for configuration options. The following configuration options now support environment variables: host, workers, port, log_level, log_file, path, open_browser, and remove_api_keys. This change allows for greater flexibility and easier configuration of the serve function by using environment variables instead of command line options.
Gabriel Luiz Freitas Almeida
2023-07-05 13:07:02 -03:00
29f840aed9🔧 chore(.env.example): update example values and add new configuration options The .env.example file has been updated to include example values and new configuration options. The LANGFLOW_DATABASE_URL example has been updated to include both Postgres and SQLite examples. New configuration options have been added for cache type, server host, worker processes, server port, logging level, log file path, frontend directory path, whether to open the browser after starting the server, and whether to remove API keys from the projects saved in the database. These changes provide more flexibility and customization options for the application.
Gabriel Luiz Freitas Almeida
2023-07-05 13:06:50 -03:00
ae5bc1e203Refactor custom.py for better error handling
gustavoschaedler
2023-07-05 16:23:32 +01:00
a21582589cimport custom.py: Add HTTPExceptionWithTraceback class
gustavoschaedler
2023-07-05 16:22:22 +01:00
95b8555503🐛 fix(settings.py): change environment variable name from LANGFLOW_DATABASE_URL to langflow_database_url for consistency The environment variable name is changed from LANGFLOW_DATABASE_URL to langflow_database_url to maintain consistency with the naming conventions used in the codebase. This ensures that the code is more readable and easier to understand.
Gabriel Luiz Freitas Almeida
2023-07-05 12:10:32 -03:00
8214b22c09🔧 chore(__main__.py): update cache and database environment variable names for clarity and consistency The cache option has been changed to use the LANGFLOW_LANGCHAIN_CACHE environment variable instead of LANGCHAIN_CACHE for clarity and consistency. Similarly, the database_url option now uses the LANGFLOW_DATABASE_URL environment variable instead of the previous behavior of using a local SQLite database by default. This change allows for more flexibility in configuring the cache and database connections.
Gabriel Luiz Freitas Almeida
2023-07-05 12:10:09 -03:00
4b1fb4a49e🐛 fix(utils.py): rename cache_class variable to cache_type for clarity and consistency 🔧 chore(utils.py): refactor setup_llm_caching to extract cache setup logic into a separate function for better modularity and readability The variable cache_class has been renamed to cache_type to improve clarity and consistency with the naming conventions. The setup_llm_caching function has been refactored to extract the cache setup logic into a separate function called set_langchain_cache. This improves modularity and readability of the code.
Gabriel Luiz Freitas Almeida
2023-07-05 12:09:53 -03:00
cb1ab1a79e📝 docs(.env.example): add example .env file with langflow_database_url set to sqlite database URL The .env.example file is added to provide an example of how to configure the .env file. It includes a commented out example of a PostgreSQL database URL and a new line is added with the langflow_database_url set to a SQLite database URL. This allows users to easily copy the file to .env and modify the values according to their needs.
Gabriel Luiz Freitas Almeida
2023-07-05 12:00:42 -03:00
8cee7e701f🔺 chore(pyproject.toml): update langchain-serve version to >0.0.51 The langchain-serve package has been updated to version >0.0.51. This update may include bug fixes, new features, or other improvements.
Gabriel Luiz Freitas Almeida
2023-07-05 11:54:41 -03:00
d93dbef31bstyle(index.css): remove unused text-color class and update components-disclosure-title class to use text-primary class for consistent styling style(DisclosureComponent): update Icon class to use text-primary class for consistent styling style(FlowPage): remove logspace-icon-text class and update the structure of the icon and text elements for better alignment and spacing
anovazzi1
2023-07-05 11:51:06 -03:00
552edf072b🔧 chore(settings.py): make database_url optional to handle cases where it is not provided The database_url setting is now declared as an optional string (Optional[str]) instead of a required string. This change allows the application to handle cases where the database_url is not provided, providing more flexibility in the configuration.
Gabriel Luiz Freitas Almeida
2023-07-05 11:50:32 -03:00
d713d38ca7🔧 chore(__main__.py): refactor loading of environment variables to allow overriding with .env file The os module is imported to make use of the os.getenv() function. The loading of the environment variables is refactored to check for the presence of the "langflow_database_url" environment variable and use it as the value for the database_url variable if it is not provided. This allows for more flexibility in configuring the database URL. Additionally, the loading of environment variables is refactored to allow overriding with a .env file if the env_file parameter is provided. This allows for easier configuration management. 🔧 chore(__main__.py): import os module and refactor loading of environment variables
Gabriel Luiz Freitas Almeida
2023-07-05 11:50:07 -03:00
c0efe4dbcf🔧 chore(__init__.py): add noqa comments to import statements to ignore linting errors The noqa comments have been added to the import statements to ignore the linting errors raised by the linter. This ensures that the linting errors related to the imports are ignored and the code can be properly executed without any issues.
Gabriel Luiz Freitas Almeida
2023-07-05 11:49:22 -03:00
20da596d9a🐛 fix(base.py): handle case when no database_url is provided and raise an error ✨ feat(base.py): add error handling when creating database and tables to provide more informative error messages The code now checks if the settings.database_url is provided and raises a RuntimeError if it is not. This ensures that the application does not attempt to create a database connection without a valid URL. Additionally, error handling has been added when creating the database and tables. If an exception occurs during the creation process, an error message is logged and a RuntimeError is raised with a more informative error message. This helps in identifying and resolving any issues related to the database creation process.
Gabriel Luiz Freitas Almeida
2023-07-05 11:47:55 -03:00
53656dcc1ffeat: Add dynamic field support
gustavoschaedler
2023-07-05 15:04:22 +01:00
ffb8e17eb6Merge branch 'python_custom_node_component' of personal:logspace-ai/langflow into python_custom_node_component
anovazzi1
2023-07-05 10:52:19 -03:00
900aacb5fbdebug dynamic on console
anovazzi1
2023-07-05 10:52:10 -03:00
bc809c6a9eAdd dynamic option for custom component code in FrontendNode.
gustavoschaedler
2023-07-05 14:51:57 +01:00