* feat: Update API key authentication logic and add deprecation warning
- Introduced a deprecation warning for the upcoming change in v1.5 regarding AUTO_LOGIN authentication, which will require a valid API key or JWT.
- Modified the authentication logic to check for API key or JWT in query parameters or headers before falling back to superuser credentials.
- Enhanced the clarity of authentication requirements for users integrating with Langflow.
* fix: Update deprecation warning message for API key authentication
* feat: add EmbeddingModelComponent for generating embeddings
- Introduced a new EmbeddingModelComponent to generate embeddings using specified providers, starting with OpenAI.
- Updated the __init__.py file to include the new component in the exports.
- The component includes various input fields for configuration, such as provider selection, model name, API key, and additional parameters.
* update the tests.
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* add mcp sse to copy field
* add MCP_SSE from frontend
* [autofix.ci] apply automated fixes
* refactor: reorder imports in mcp_component.py for consistency
* ✅ (mcp-server.spec.ts): refactor code to use consistent selector for sse_url textarea element in tests
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
feat: Add constraint existence check for primary keys in migration scripts
- Implemented a function to check for existing constraints before creating temporary tables in the upgrade and downgrade functions.
- Updated primary key names dynamically to avoid conflicts during migrations for the 'vertex_build', 'transaction', and 'message' tables.
- Enhanced the robustness of the migration process by ensuring unique constraint names across different database states.
* chore: action params naming
* chore: remove comments
* chore: replaced MessageTextInput field with StrInput
* feat: add google calendar component
* feat: replaced loops with hardcoded display-name action-enum mapping to improve performance
* chore: format
* fix: add type ignore for action_key in getattr call
* feat: add google sheets component
* fix: format google calendar utils
* feat: add google meet Component
* chore: minor improvement
* chore: format & lint
* fix: google meet component
* feat: add GitHub component
* fix: format
* fix: lint
* fix: typo
* feat: add Slack Component
* fix: format
* fix: rest bool value to None
* chore: disabled slack tools temporarily
* fix: add condition to set list variables to None in when action is changed
* chore: capitalise display names
* fix: update list issues field to MessateTextInput
* fix: format/lint in slack component
* fix: google calendar logo
* fix: revert setting bool field to None
* feat: composio-core & composio-core version bump to 0.7.10
* fix: minor bugs
* feat: add accepted values to AccessType field in google meet component
* feat: add accepted values for entry point access field in Google meet component
* fix: Google Calendar display names
* feat: replace list with nested list for batch update field in Google sheets
* fix: display name in Google sheets
* fix: format
* fix: titlecase display name in google meet component
* feat: set advaced to true for advanced fields
* feat: add condition to skip empty list fields in execute_action
* chore: improve display names GitHub Component
* fix: slack component display names & minor enhancements
* feat: update condition to skip empty fields while executing action
* feat: fix google calendar field description
* feat: update googlemeet component to use new inputs & composio base class
* chore: update googlemeet component filename
* feat: update github component to use new inputs & composio base class
* feat: update google calendar to use new inputs & composio base class
* feat: update google sheets component to use new inputs & Composio base class
* feat: update slack component to use new inputs & Composio base class
* fix: format
* chore: cleanup un-used code
* chore: format
* feat: add missing fields & actions
* chore: fix typo
* feat: rm other components
* feat: improve error message format & revert composio libs bump
* chore: revert uv.lock file
* update tests
* fix: remove duplicate action field in GMAIL_FETCH_EMAILS
* fix: remove unused code
* fix: add ignore statement
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* added toggle_disable option
* made toggle be disabled when toggle_disable is true
* added logic to disable toggle when choosing hybrid search
* Updated starter projects
* Fixed toggle_disable to be optional
* fixed toggle disable to remove toggle
* ✅ (intComponent.spec.ts): update test assertions to match expected behavior after changes in the component's functionality
---------
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* fix: update Gmail icon to Google and improve ListSelectionComponent styles
* fix: remove unnecessary info and improve required field handling in Composio components
* style: update ListSelectionComponent and SortableListItem for improved layout and styling
* fix: enhance ListSelectionComponent and SortableListComponent to support search functionality
* style: adjust height and padding in SortableListItem for better visual consistency
* ✅ (intComponent.spec.ts): update test assertions to match expected behavior after changes in the component's functionality
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* chore: update package versions to 1.3.3 and 0.3.3
- Bump langflow version to 1.3.3 in pyproject.toml and uv.lock.
- Update langflow-base version to 0.3.3 in its pyproject.toml and uv.lock.
* chore: bump langflow version to 1.3.3 in package.json and package-lock.json
refactor: Update event delivery mechanism in build_flow_and_stream function
Modified the build_flow_and_stream function to utilize the new event delivery type, STREAMING, for improved event handling. The function now returns a response from get_flow_events_response, enhancing the clarity and robustness of the event streaming process.
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
* feat: Add new OpenAI model versions to constants
Added "gpt-4.1", "gpt-4.1-mini", and "gpt-4.1-nano" to the list of OpenAI model names in openai_constants.py to support the latest model updates.
* feat: Add new OpenAI model options to starter projects
Included "gpt-4.1", "gpt-4.1-mini", and "gpt-4.1-nano" in the options for various starter project configurations to support the latest model updates across multiple JSON files.
---------
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
* add _check_file_format
* [autofix.ci] apply automated fixes
* change to __adjust_file_path_with_format
* [autofix.ci] apply automated fixes
* Refactor and enhance tests for _adjust_file_path_with_format method
- Added parameterized tests to verify correct file extension handling for various formats.
- Ensured existing extensions are preserved and incorrect extensions are handled appropriately.
- Included a test for expanding the home directory symbol '~' in file paths.
- Removed outdated tests related to _check_file_format method.
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix: ensure foreign key constraints are only dropped if they exist in upgrade script
* Updated the upgrade function to check for the existence of foreign key constraint names before attempting to drop them in the message, transaction, and vertex_build tables, enhancing robustness and preventing potential errors during migration.
* refactor: streamline foreign key constraint removal in upgrade script
* Simplified the upgrade function by directly dropping foreign key constraints for the message, transaction, and vertex_build tables without checking for their existence, enhancing code clarity and maintainability.
* feat: introduce naming convention for database constraints in Alembic environment
* Added a naming convention dictionary to standardize the naming of indexes, unique constraints, check constraints, foreign keys, and primary keys in the Alembic migration environment, enhancing consistency and clarity in database schema management.
* refactor: enhance foreign key constraint management in upgrade and downgrade scripts
* Updated the upgrade function to recreate the message, transaction, and vertex_build tables without foreign key constraints, preserving data integrity during migration.
* Improved the downgrade function to restore these tables with the appropriate foreign key constraints, ensuring consistency in the database schema.
* Introduced a naming convention for database constraints to standardize naming across migrations.
* refactor: update table schema in Alembic migration for improved data handling
* Modified the schema for the message, transaction, and vertex_build tables to enhance data integrity by changing column types and adding new fields.
* Updated data insertion queries to use quoted identifiers, preventing potential issues with SQL keywords.
* Ensured that the upgrade and downgrade functions maintain consistency in the database schema during migrations.
* refactor: enhance data insertion logic in Alembic migration scripts
* Updated data insertion queries for the message, transaction, and vertex_build tables to explicitly list columns and filter out rows with NULL IDs, improving data integrity during migrations.
* Utilized window functions to ensure uniqueness of build_id across different database systems, enhancing compatibility and robustness.
* Maintained consistency in upgrade and downgrade functions to ensure seamless schema transitions.
* Revert "Revert "fix: published flows now can add rows to the database" (#7571)"
This reverts commit a8d2fccd1c.
fix: standardize endpoint paths in files API
Updated the file API routes to include trailing slashes for consistency. This change affects the upload, list, and delete endpoints, ensuring they all follow the same URL structure.
* create Amazon bundle
* Update s3_bucket_uploader.py
* update FE tests
* [autofix.ci] apply automated fixes
* ✅ (dropdownComponent.spec.ts): update test selectors to match the updated component names for better test accuracy
✅ (keyPairListComponent.spec.ts): update test selectors to match the updated component names for better test accuracy
* Update filterEdge-shard-1.spec.ts
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* tests cases
* update to loop
* Update component.py
* 📝 (LoopTemplate.json): update value of a configuration key from "OPENAI_API_KEY" to "ANTHROPIC_API_KEY" in order to reflect the correct API key being used
* update json test loop
* fix: update test URL in loop-component.spec.ts to reflect correct reference
Changed the URL in the test case from "Artificial_intelligence" to "Human_intelligence" to ensure accurate testing of the loop component functionality.
* update FE tests
* [autofix.ci] apply automated fixes
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* remove-tag-manager
* update-gtag-tracking-id
* add-head-tag
* remove Google Analytics gtag configuration from docusaurus.config.js
* fix-hydration-error
* revert-to-easy-way
* standard-gtag
* broken-link
* refactor: streamline Google Tag Manager script configuration in docusaurus.config.js
* Apply suggestions from code review
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
* Added ShowHiddenOutputs to node output field and made handle not be shown if hidden
* Added ShowHiddenOutputs in OutputParameter
* Added showHiddenOutputs to nodeOutputFieldComponentType
* Passed showHiddenOutputs to outputs
* Check if input types is not empty before counting handle
* Updated missing callback dep
* Added hidden parameter to not have duplicated handles
* [autofix.ci] apply automated fixes
---------
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* ssl-support: Enable SSL for local development to simulate a production-like environment. This would allow testing features requiring SSL during development, third party integrations, and allowing easier SSL integration without WAFs and reverse proxies
* rebase
* rebase fixes
---------
Co-authored-by: lpetkov <lpetkov@pros.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
* fix: update type hints in BatchRunComponent for improved clarity and consistency
* fix: add type casting in BatchRunComponent for improved type safety
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix: add File model to module exports in database models
* fix: remove unused relationships and imports in database models
* fix: remove foreign key constraints from message, transaction, and vertex_build tables
* fix the issue where `build_public_tmp` does not support `EVENT_DELIVERY=direct`
* fix: modify `build_public_tmp` to conform to the latest design
* [autofix.ci] apply automated fixes
* fix: Delete debugging logs
* fix: Delete debugging logs
* fix: Delete debugging logs
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* refactor: update BatchRunComponent to enhance functionality and usability
- Added TOML formatting for rows when no specific column is set.
- Updated display names and descriptions for clarity.
- Introduced an output column name option for customizable model response storage.
- Improved metadata handling and error management.
- Refactored row creation to include original columns and enhanced metadata.
* [autofix.ci] apply automated fixes
* fix: ruff errors
* [autofix.ci] apply automated fixes
* fix: component tests
* [autofix.ci] apply automated fixes
* Update src/backend/base/langflow/components/helpers/batch_run.py
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* ♻️ (batch_run.py): refactor type annotations to use Hashable for dictionary keys to improve type safety and compatibility with different types of keys
* youtube fix
* 🔧 (batch_run.py): remove unnecessary StrInput import and update MessageTextInput import to improve code cleanliness and remove redundancy
* 📝 (batch_run.py): Update import statement to include Hashable from collections.abc for better readability and maintainability
📝 (Youtube Analysis.json): Update display name from "Batch Results" to "DataFrame" for better clarity and consistency
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* uv ruff fixes
* [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>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
* Add Query Input and Mixin on backend
* Adds Query on supported types
* Adds types for query modal and component
* Adds size for new query modal
* Adds query modal
* Adds query component
* Adds query component on parameter render
* [autofix.ci] apply automated fixes
* ✨ (switch-case-size.ts): Update height value to 'h-fit' for 'small-query' case to improve responsiveness
✨ (queryInputComponent.spec.ts): Add unit test for user interaction with query input component, including updating code and testing functionality
* Fixed handle not working on Query Input
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* ✨ (frontend): Add handleOnNewValue prop to Dropdown component to allow selecting a value not in the list
🔧 (frontend): Remove TODO comment and keep handleOnNewValue prop in DropdownComponent
✅ (frontend): Add test for selecting a value not in the list in Dropdown component
* 🐛 (dropdownComponent/index.tsx): fix issue where custom value was not being added to validOptions and filteredOptions when pressing Enter
✨ (dropdownComponent/index.tsx): improve functionality to reset filtered options and custom value input when opening the dropdown
* 🔧 (dropdownComponent/index.tsx): improve styling and layout of dropdown component for better user experience
* ♻️ (dropdownComponent/index.tsx): remove unnecessary comments and improve code readability by removing redundant comments and separating render helper functions from logic blocks.
* 📝 (dropdownComponent/index.tsx): add 'no-focus-visible' class to dropdown component to remove focus outline for better accessibility
📝 (applies.css): add styles for 'no-focus-visible' class to remove focus outline for better accessibility