* ci: Add dynamic input for Python versions and frontend tests folder in CI workflow.
* build: Update python versions to ['3.10', '3.11', '3.12'] and set frontend tests folder to 'tests'
* refactor: Simplify log configuration logic in Graph class
* feat(tracing): Refactor _end_traces method to be async and use asyncio.to_thread.
This is an attempt to avoid blocking the build loop
Update OpenAIModel.py- Fix can not set temperature to 0 bug.
As when the input temperature is 0, the condition would become False , so this expressing set it to 0.1, it become impossible to set it to 0.
* 📝 (langflow): Add support for configuring auto saving interval for Langflow
📝 (langflow): Update ConfigResponse and Settings to include auto_saving_interval
📝 (frontend): Update useGetConfigQuery and useSaveConfig to handle auto_saving_interval
📝 (frontend): Update useAutoSaveFlow and flowsManagerStore to handle auto saving interval
* 📝 (util.py): add support for setting auto_saving_interval in update_settings function to allow customization of auto-saving interval
* 🐛 (users.py): Fix issue where user password was not being updated correctly
📝 (constants.ts, authContext.tsx, index.tsx): Add LANGFLOW_REFRESH_TOKEN constant and update related code to support refresh token functionality
📝 (userManagementModal/index.tsx): Update form reset logic and handle input values correctly
📝 (LoginPage/index.tsx, LoginAdminPage/index.tsx): Update login function to include refresh token parameter
📝 (components/index.ts, auth.ts): Update inputHandlerEventType to support boolean values
✨ (auto-login-off.spec.ts): Add end-to-end test for user login functionality with auto_login set to false, CRUD operations for users, and verification of user flows visibility based on permissions.
* ✨ (auto-login-off.spec.ts): improve test description for better clarity and understanding
📝 (auto-login-off.spec.ts): add comments to clarify the purpose of intercepting requests and performing CRUD operations
* 🐛 (users.py): fix comparison of password to check for None using 'is not None' instead of '!= None' for better accuracy
* Added refresh flows mutation
* Changed places that used refreshFlows to use the mutation
* removed old refreshFlows
* removed readFlowsFromDatabase api call
* Removed unused API calls from API.ts
* Removed getFlowFromDatabase call
* feat: Add NodeIcon component for displaying icons in GenericNode
This commit adds a new component called NodeIcon to the GenericNode module. The NodeIcon component is responsible for displaying icons based on the data type of the node. It uses the nodeIconsLucide object from the styleUtils module to map the data type to the corresponding icon name. The component also handles the display of emojis as icons by checking if the icon is an emoji using the emoji-regex library. The icon color is determined based on the data type using the nodeColors object from the styleUtils module. The NodeIcon component is used in the GenericNode component to render the icon of the node.
* [autofix.ci] apply automated fixes
* feat: Remove useIconNodeRender hook from CustomNodes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Added Validate endpoint
* Added API Code Validate type
* Added post validate code hook
* Used mutation instead of API call to validate code
* Removed validate code api call
* move css class for improve of the UI/UX
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: nltk text splitter support
* feat: add doc link to nltk text splitter
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* build: Update boto3 version to 1.34.162.
* ci(langchain-aws): Bump version to ^0.1.16.
* build: Update langchain-anthropic and langchain-openai versions.
* chore: set new lock file
* refactor: Improve post-processing of return type in type extraction.
* feat: Add support for Union[int, Sequence[str]] in post_process_type.
* refactor(langflow): Simplify return type extraction in CustomComponent.
* Refactor: Remove 'Sequence' and 'list' type options in starter projects.
* test: fix assertion
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* enhancement: Update PythonCodeStructuredTool to create inputs automatically and accept global variables
* [autofix.ci] apply automated fixes
* feat: Create a tool to search using SearXNG
* [autofix.ci] apply automated fixes
* refactor: reorganize imports and type annotations in PythonCodeStructuredTool.py for clarity and consistency
* refactor: clean up imports and enhance type annotations in SearXNGTool.py for improved readability and type safety
* refactor: Improved PythonCodeStructuredTool to allow arguments to have any types
* refactor: Formatted and refactored SearXNGTool
* refactor: Allowed RunnableExecutor to stream output and changed its build method to asynchronous.
* fix: correct indentation issue in PythonCodeStructuredTool
* fix: correct type for int and float inputs when updating custom component
* [autofix.ci] apply automated fixes
* fix: change Tool to StructuredTool due to arguments in SearXNGTool
* refactor(endpoints.py): remove duplicate imports of loguru and sqlmodel to improve code readability and maintainability
---------
Co-authored-by: Haseong Kim <dynaferkim@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* feat(api): Add endpoint to get list of starter projects with error handling.
* feat: Add test for getting starter projects with valid API key.
* [autofix.ci] apply automated fixes
* refactor(langflow): Update function name from get_all_graphs_dump to get_starter_projects_dump.
* bug: fixes route collision
* bug: fixes serialization
* chore: move endpoint to new file
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* feat: Add data-testid attribute to main page title
The code changes add a `data-testid` attribute to the main page title in the `PageLayout` component. This attribute can be used for testing purposes.
* refactor: Update page load timeout in end-to-end test
Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.
* refactor: Decrease page load timeout in end-to-end test
Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.
* refactor: Decrease page load timeout in end-to-end test
* refactor: Update page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
* refactor: Decrease page load timeout in end-to-end test
Reduce the page load timeout in the end-to-end test for Basic Prompting to improve test efficiency. The timeout is decreased from 2000ms to 1000ms.
* improve tests decreasing and removing time outs
* 🐛 (ComposioAPI.py): Fix issue where build_config was not being updated correctly when api_key is not empty
* 🐛 (GenericNode/index.tsx): Fix potential null pointer exception by adding non-null assertion operator to info property access
✨ (generalBugs-shard-11.spec.ts): Add end-to-end tests to ensure users can use ComposIO without api_key error and connect tools successfully
* ✨ (index.tsx): Add data-testid attribute to the save button for testing purposes
✨ (auto-save-off.spec.ts): Add end-to-end test for manually saving a flow when auto_save is off
* ⬆️ (auto-save-off.spec.ts): decrease wait time from 5000ms to 3000ms for improved test efficiency
* moving auto-save-off test to scheduled folder
* feat: Add ComponentTool to convert a Component to a Tool
* test(component): add unit test for ComponentTool with ChatInput input.
* feat: Add method to convert Component to ComponentTool.
* feat: Add unit test for ChatInput to Tool conversion.
* chore: add comment
* test: fix assertion
---------
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
* feat: Add function to create input schema from list of input types.
* feat: Add unit tests for creating input schemas.
* refactor(io): Improve input schema creation logic.
* refactor(schema): Simplify eval call in create_input_schema function.
* fix: Change ValueError to TypeError in create_input_schema to reflect correct exception.
* refactor: refactor create_input_schema to accept a list of input instances.
* feat: add useGetDownloadFileMutation hook for downloading files
This commit adds a new hook called useGetDownloadFileMutation to handle the downloading of files in the frontend. The hook takes in the path and filename as parameters and uses the fetch API to download the file. It then creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.
* feat: add use-download-files hook for downloading files on chat
This commit adds a new hook called use-download-files to handle the downloading of files in the frontend. The hook takes in the path and filename as parameters and uses the fetch API to download the file. It then creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.
* [autofix.ci] apply automated fixes
* feat: refactor file download handling in chat view
Refactor the file download handling in the chat view by introducing a new hook called `use-download-files`. This hook takes in the path and filename as parameters and uses the fetch API to download the file. It creates a URL object for the downloaded file and sets it as the href of a dynamically created anchor element. Finally, it triggers a click event on the anchor element to initiate the file download. The URL object is revoked after the download is complete.
* remove console.log
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com>
* refactor: Update lazy loading imports in routes.tsx
The code changes in `routes.tsx` refactor the lazy loading imports by removing unnecessary code duplication and reorganizing the import statements. This improves the readability and maintainability of the code.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>