26 Commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
b05d0eb55c feat: Add configurable API key validation source (db/env) (#10783)
* add xapikey to env authentication

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* remove-docs-for-1.8-release

* add fallback to db

* [autofix.ci] apply automated fixes

* test(api_key_source.py): enhance tests for check_key function to cover more scenarios and improve reliability

- Add tests to verify routing to environment and database based on API_KEY_SOURCE.
- Implement fallback logic tests when environment validation fails.
- Ensure correct behavior when both environment and database validations fail.
- Refactor existing tests to improve clarity and coverage of edge cases.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* fix tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-12-03 17:55:52 +00:00
Hamza Rashid
f5bdaa7b34 Fix: add environment variable flag to log alembic to stdout (#10620)
* fix: add flag to log alembic to stdout

fix indentation

refine docs

mypy (db service.py)

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes (attempt 3/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-21 22:07:00 +00:00
Hamza Rashid
803745b932 fix: minor redesign of guardrails for disabling components in LF Astra cloud (#10662)
* create cloud validation util file

disable local_db if in astra cloud

disable split_video if in astra cloud

disable video_file component if in astra cloud

ruff (video_file.py)

correct the error message in video_file.py

disable mem0 and composio in astra cloud

update astra disable component util fn name to be more descriptive

add tests for disabling components

minor docs patch

remove component disable check in places that interact with building the component index

replace init test with execution in composio unit test suite

remove dotenv from validate_cloud

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes (attempt 3/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-20 18:53:57 +00:00
Jordan Frazier
bb098a509e release: merge release-v1.6.0 into main (#9889)
* Update pyproject versions

* fix: Avoid namespace collision for Astra (#9544)

* fix: Avoid namespace collision for Astra

* [autofix.ci] apply automated fixes

* Update Vector Store RAG.json

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Revert to a working composio release for module import (#9569)

fix: revert to stable composio version

* fix: Knowledge base component refactor (#9543)

* fix: Knowledge base component refactor

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Update styleUtils.ts

* Update ingestion.py

* [autofix.ci] apply automated fixes

* Fix ingestion of df

* [autofix.ci] apply automated fixes

* Update Knowledge Ingestion.json

* Fix one failing test

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Revert composio versions for CI

* Revert "Revert composio versions for CI"

This reverts commit 9bcb694ea1e20d544cf5e17fed2f9f4c0a3c192b.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: Fix env file handling in Windows build scripts (#9414)

fix .env load on windows script

Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>

* fix: update agent_llm display name to "Model Provider" in AgentComponent (#9564)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: use custom file handler on chat view, disable mcp_composer by default (#9550)

* Use custom voice assistant on chat input

* Changed mcp composer to default disabled

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: Use the newest file component in Vector Store RAG Template (#9571)

fix: Use newest file component in RAG

* fix: AI/ML icon is missing (#9553)

* refactor: clean up imports and improve code readability in AIML and FlowSidebar components

- Organized import statements in aiml.py and index.tsx for better structure.
- Enhanced formatting in aiml.py for the update_build_config method.
- Updated nodeIconToDisplayIconMap in styleUtils.ts for consistency in AIML label.
- Removed unnecessary console log in FlowSidebarComponent for cleaner code.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: Allow updates to the file component in templates using it (#9572)

fix: Allow updates to file component in templates

* fix: Fixes filtering so legacy components aren't shown by default (#9575)

fix filtering so legacy components aren't shown by default

* fix: changed name on tool mode to slug, added close button to sidebar (#9589)

* Changed Name to Slug, added Close button

* Updated data test id

* Tested closing the sidebar

* fixed test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: enhance scroll behavior on playground (#9586)

* Added stick to bottom dependency

* Removed scroll direction dependency

* Added scroll to bottom action in voice assistant and chat input

* Made messages occupy full width

* Changed chat view to use StickToBottom instead of previous scroll handling mechanism

* Delete unused chat scroll anchor

* Set initial as instant

* Update session name styling

* fix: delete duplicate Serper api from google bundle (#9601)

Deleted google serper api core

* fix: allow deletion of mcp servers, add tests for mcp sidebar (#9587)

* Added onDelete prop to sidebarDraggableComponent

* Removed unused props

* Added handleDeleteMcpServer

* Add tests for on delete functionality, fixed linting errors

* Format

* Add test on mcp-server to test adding and deleting mcp server from sidebar

* Adds data test id to delete select item

* Changed data test id to not be mcp related

* Added delete confirmation modal to mcp sidebar group

* Changed test to contain modal

* fix: change zoom in and out limit, create tests for zooming in and out, change zoom out logic in canvasControls (#9595)

* Fix zoom out to 0.6 instead of 1.0

* remove min zoom on canvascontrolsdropdown, since it's enforced by reactflow

* Changed min zoom to 0.25 and max zoom to 2.0

* Added tests for zoom in and zoom out in canvas controls dropdown

* fix: Add localStorage persistence for feature toggles (#9597)

* fix: Add help text to Lock Flow option (#9600)

* fix: Add comprehensive tests and improve minimal condition logic (#9611)

* fix: change icon color for mcp, remove color setting of icons (#9594)

* Changed node icon to not have icon color

* Added portion of test that checks if color is right for mcp component

* Refactor nodeIcon

* removed lucideIcon check for performance

* Changed the test to evaluate color from computed style

* fix: remove unsupported styling options from chats components (#9610)

* fix: disable mcp auto install for not installed applications, refactor mcp-projects logic (#9599)

* Add new available field to installed mcps

* Disable auto install field when program not present

* Refactor logic and get back the Available field for the installed

* Added tooltip

* Fixed linting

* fix: Properly allow the non-specification of an OCR Engine (#9617)

* fix: Properly allow no OCR engine

* [autofix.ci] apply automated fixes

* Set default to easyocr

* Update docling_inline.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Support objects with data attribute in body processing (#9644)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Add comprehensive message sorting + tests (#9641)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Fix audio recording resource cleanup (#9623)

* fix: Add voice mode availability detection (#9621)

* fix: Remove formatting from agent input text content (#9638)

* fix: added most important types at the beginning of the extensions array on File component (#9639)

* Changed file type order

* Changed starter projects that had the file component

* order tooltip types alphabetically

* changed order of text_file_types

* Removed duplicate types

* Changed starter projects that used past types

* changed test

* Fixed data test id

* Changed test to expect correct types

* fix: Include flow ID in webhook URLs (#9624)

* fix(logger): add optional cache to configure; update caching behavior (#9532)

* fix: update logger configuration to use environment variable for log level

* fix: remove default log level configuration and set logger initialization

* fix: enhance logger configuration to prevent redundant setup and improve cache handling

* fix: improve cache handling in logger configuration to prevent unintended defaults

* fix: enhance logger configuration to prevent redundant setup and improve early-exit logic

* fix: remove defensive comment in logger configuration for clarity

---------

Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>

* fix: Update sidebar border styles (#9625)

style fix

* fix: Remove top padding from sidebar groups (#9636)

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>

* fix: disable message editing on playground, fix new session not persisting after message is sent (#9662)

* update session storage in the same useeffect as the refetchSessions

* updated to send just the chat id

* added useGetFlowId custom hook

* updated places to use new currentFlowId hook

* updated to use new id, to edit the message in the api and to set the flowId in the message

* Restore current flow id from chat view

* put on cell value changed only if it exists to enable read-only tables

* removed call  to backend when updating messages on playground

* disable editing session view when on playground page

* delete unused props, show edit only when not in playground

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: disable elevate edges on node select (#9658)

disable elevate edges on select

* fix: Properly respect the order parameter for Message History (#9605)

* fix: Respect the order parameter for Message History

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Return multi-row dataframe when Structured Output data supports it (#9659)

* fix: Return multi-row dataframe output in SO

* [autofix.ci] apply automated fixes

* Tool support in message schema

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: apply to fields in settings page  (#9602)

* fix: Segmented Sidebar switch to search on value change (#9615)

* search icon selection behavior

* switch to search on input change

* unit test fix

* test fix

* update test

*  (frontend): add mock modules for @jsonquerylang/jsonquery and vanilla-jsoneditor packages
📝 (frontend): update test file to improve robustness and add debugging information for CI environment

* [autofix.ci] apply automated fixes

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: deprecate claude 3 sonnet model (#9622)

* fix: Properly import Langchain ToolMessage for Message options (#9675)

* fix: Properly import the ToolMessage from langchain

* Update logger.py

* Fix one line output

* fix: fixed user settings test (#9690)

Fixed userSettings test

* fix: Remove warning log for unset TRACELOOP_API_KEY in configuration validation (#9536)

fix: remove warning log for unset TRACELOOP_API_KEY in configuration validation

* fix: knowledge base fixes for 1.6 pointing to release branch (#9683)

* refactor: Improve code readability and organization in Knowledge Ingestion component

- Reorganized import statements for better clarity.
- Enhanced formatting of lists and function parameters for improved readability.
- Removed unused parameters and streamlined the column configuration in the Knowledge Bases tab.
- Updated JSON configuration for Knowledge Ingestion to reflect changes in code structure.

These changes aim to enhance maintainability and readability of the codebase.

* fix: Remove extraneous flag from package-lock and update column configuration in knowledge base

- Removed the extraneous flag from the `@clack/prompts` dependency in `package-lock.json`.
- Updated the `editable` property in the knowledge base columns configuration to `false`, enhancing the integrity of the data structure.

* refactor: Update FlowToolbar and related components for improved API modal handling

- Refactored FlowToolbar to replace openCodeModal with openApiModal for better clarity in modal management.
- Updated FlowToolbarOptions to accept openApiModal and setOpenApiModal props, enhancing the component's flexibility.
- Adjusted PublishDropdown to utilize the new API modal state, ensuring consistent behavior across the toolbar.
- Cleaned up import statements for better organization and readability.

* refactor: Clean up imports and streamline knowledge base column configuration

- Reorganized import statements in KnowledgeBasesTab and knowledgeBaseColumns for improved clarity and consistency.
- Removed unused parameters from the createKnowledgeBaseColumns function, simplifying its signature.
- Adjusted column flex properties for better layout in the knowledge base table.
- Enhanced overall readability and maintainability of the codebase.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes (attempt 3/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: remove github link on discord button (#9655)

* Fixed discord opening github

* [autofix.ci] apply automated fixes

* fixed mcp server tab test

* Fixed flakyness on files test

* fixed flaky file upload

* Try to fix file upload component test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: remove python code component, fix placeholder not appearing (#9660)

* remove python code component and experimental category

* Refactor code area modal test to use custom component

* fixed placeholder not returning default value

* fix: add margins to <p> tag in markdown (#9656)

* Added margins to message paragraph

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: delete unused components, delete [deprecated] tag on the component title, add Replace and legacy tag functionality to components (#9645)

* Remove deprecated components

* Removed deprecated tags

* removed mcp deprecated components

* Add new applyComponentFilter

* add replacement to node parameters

* added filtercomponent to flow store

* Added replacement to api class type

* Made sidebar filter component more modular

* remove unused props and pass props to filtercomponent

* Apply component filters and get name and description for filter

* Add resetting to handle and page

* Added types to sidebar header

* Added legacy and replacement to node description, activate component filter on click

* updated sidebar header test

* format test

* update sidebar filter component test to match current behavior

* Refactor to allow multiple replacements

* removed legacy from node description

* added dismissed legacy nodes

* removed unused props

* add node legacy component

* changed replacement type to list

* Instantiate nodelegacycomponent on generic node when component is legacy

* Add components filtering in nodelegacycomponent

* added replacement instead of display name

* Added legacy tag to component name

* Add replacement to some components

* Added replacements to majority of legacy components

* Made component name not be capitalized

* fixed bundles not appearing at component filter

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes (attempt 3/3)

* added replacement for crew ai

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: Ensure correct Docling Remote URL for API (#9708)

fix: Correct url for docling remote

* feat: remove agent dual output (#9700)

* remove agent dual output

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* refactor: Agent component enhancements for release v1.6 (#9685)

* refactor: improve code structure and add NodeDrawer component

- Refactored import statements for better organization in agent.py and dropdownComponent.
- Enhanced the AgentComponent's description and memory_inputs formatting for clarity.
- Introduced a new NodeDrawer component for improved UI handling in the dropdown.
- Updated Dropdown component to integrate NodeDrawer functionality, allowing for side panel interactions.

* refactor: simplify NodeDrawer component and enhance Dropdown integration

- Removed unnecessary props from NodeDrawer, streamlining its interface.
- Updated the Dropdown component to improve the integration of NodeDrawer, ensuring better handling of side panel interactions.
- Refactored the NodeDrawer's structure for improved readability and maintainability.

* fix

* refactor: enhance Dropdown and input components with externalOptions support

- Updated Dropdown and related components to incorporate externalOptions for improved flexibility.
- Refactored input classes to maintain consistent formatting and readability.
- Removed deprecated dialogInputs functionality in favor of the new externalOptions structure.

* fix: reorganize imports after cherry-pick resolution

* refactor: enhance Dropdown component with loading state and source options

- Introduced a loading state to the Dropdown component to indicate when a response is awaited.
- Updated the logic to utilize sourceOptions instead of dialogInputs for better clarity and maintainability.
- Refactored the rendering of options and associated UI elements to improve user experience.

* refactor: improve Dropdown component structure and styling

- Cleaned up import statements for better organization.
- Enhanced the loading state display and adjusted the layout for better user experience.
- Updated styling for CommandItem components to ensure consistent padding and font weight.
- Refactored option rendering logic for improved clarity and maintainability.

* refactor: reorganize imports and adjust Dropdown component behavior

- Moved import statements for better clarity and organization.
- Commented out the setOpen function call to modify Dropdown behavior when dialog inputs are present.

* refactor: enhance Dropdown component functionality and logging

- Removed unnecessary console log for source options.
- Introduced handleSourceOptions function to streamline value handling and state management.
- Updated onSelect logic to utilize handleSourceOptions for improved clarity and functionality.

* refactor: enhance Dropdown component with flow store integration

- Added useFlowStore to manage node state within the Dropdown component.
- Introduced a new handleSourceOptions function to streamline value handling and API interaction.
- Updated onSelect logic to ensure proper value handling when selecting options.

* refactor: Update agent component to support custom model connections

- Changed the agent component's dropdown input to allow selection of "connect_other_models" for custom model integration.
- Enhanced the dropdown options and metadata for better user guidance.
- Updated the build configuration to reflect these changes and ensure proper input handling.

* refactor: Reorganize imports and enhance dropdown component logic

- Moved and re-imported necessary dependencies for clarity.
- Updated dropdown rendering logic to improve handling of selected values and loading states.
- Ensured compatibility with agent component requirements by refining option checks.

* small fix and revert

* refactor: Clean up imports and improve dropdown component styling

- Removed duplicate imports for PopoverAnchor and Fuse.
- Simplified class names in the dropdown component for better readability.
- Adjusted layout properties for improved visual consistency.

* refactor: Enhance dropdown component functionality and clean up imports

- Reorganized imports for better clarity and removed duplicates.
- Implemented a new feature to handle "connect_other_models" option, improving the dropdown's interaction with flow store and types store.
- Added logic to manage input types and display compatible handles, enhancing user experience.
- Updated utility functions for better integration with the dropdown component.

* style: format options_metadata in agent component

* refactor: Update import statements in starter project JSON files and adjust proxy settings in frontend configuration

- Refactored import statements in multiple starter project JSON files to improve readability by breaking long lines.
- Changed proxy settings from "http://localhost:7860" to "http://127.0.0.1:7860" in frontend configuration files for consistency and to avoid potential issues with localhost resolution.

* [autofix.ci] apply automated fixes

* revert and fix

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* fixed dropdown

* [autofix.ci] apply automated fixes

* kb clean up

* [autofix.ci] apply automated fixes (attempt 2/3)

* update to templates with display name change

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* feat: mcp composer integration (#9506)

* encrypt oauth auth settings at rest

* [autofix.ci] apply automated fixes

* Fix rebase changes and add env to env server config

* Correctly unmask secretstr before encryption

* update mcp-composer args

* [autofix.ci] apply automated fixes

* ruff

* ruff

* ruff

* [autofix.ci] apply automated fixes

* ruff

* catch invalidtoken error

* ruff

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* ruff

* ruff

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

* fix test

* Add initial mcp composer service and startup

* remove token url

* Register server on project creation

* WARN: fall back to superuser on no auth params, to allow mcp-composer to connect. also fixes race condition in server creatoin

* update sse url args

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Add langflow api keys to the server configs

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* add port searching

* [autofix.ci] apply automated fixes

* Fix for dead servers - use devnull on subprocess to avoid pipe from filling up

* uvlock

* [autofix.ci] apply automated fixes

* Update composer startup behavior re: auth settings

* [autofix.ci] apply automated fixes

* fix some auth logic, add dynamic fetch of new url

* Clean up sse-url parameters

* [autofix.ci] apply automated fixes

* Only call composer url when composer is enabled

* [autofix.ci] apply automated fixes

* improve shutdown

* starter projects update

* [autofix.ci] apply automated fixes

* update logging
git push

* revert hack to auth mcp composer

* [autofix.ci] apply automated fixes

* Fix 500 on composer-url query

* [autofix.ci] apply automated fixes

* Update feature flag; update api key addition to aut-install

* [autofix.ci] apply automated fixes

* Fix composer url and re-add auth

* Changed needs_api_key logic

* Refactor use-get-composer-url

* remove python fallback for now, then pipe stderr to pipe

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Changed api key logic to allow connection if not api key and auto login is off

* fix oauth addition to cmd

* restart server when auth values change

* Restart server on oauth values changes

* [autofix.ci] apply automated fixes

* Changed project port to be the same as OAuth port

* Changed endpoint to provide port_available

* add is_port_available prop

* Added port_available to request

* Edit mutation to not have linting errors

* Added port not available state to authentication

* [autofix.ci] apply automated fixes

* Added port and host to get composer url

* Invalidate project composer url queries

* Changed to display port and host that is not running

* Cleanup old port finding and some mypy fixes

* Add print, remove unused env var

* Use mcp-composer directly in client and a lot of fixes

* changed starter projects

* refactor mcp_projects to use always IP generated for WSL

* changed to check args -4 too on installed servers

* changed to just check if sse url is in args

* added member servers in gitignore

* add check for ff

* Handle secret request response cycle securely and add better logging

* Use asycn logger

* Add decorator to check if composer is enabled in settings

* more logging changes

* Much better handling of existing oauth servers when the flag is disabled on restart

* Reset oauth projects to apikey or none when composer flag is disabled

* fix url for api key auth

* Fix auth check; set project auth to api key when auto login disabled

* Ruff, comments, cleanup

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Consolidate the auth handling since its used in two endpoints

* [autofix.ci] apply automated fixes

* Ruff

* [autofix.ci] apply automated fixes

* last ruff

* Update FE env var naming and dont unnecessarily decrypt auth settings at times

* update feature flag usage - remove mcp composer

* [autofix.ci] apply automated fixes

* Update timeout methods to have more reliable startup

* more feature flag changes

* Attempt to extract helpful user messages

* [autofix.ci] apply automated fixes

* Added loading on mcp server tab auth

* Changed to load on start too

* cleanup mcp composer on project deletion

* [autofix.ci] apply automated fixes

* remove nested retry mech

* Ruff

* lint

* Fix unit tests

* [autofix.ci] apply automated fixes

* ruff

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>

* fix: Adjust padding and layout for improved spacing (#9711)

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: remove Groq from Agents model provider list (#9616)

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com>

* fix: conditional scheduling logic to not run branch (#9722)

* Use separate conditional router flag to check if-else branch execution

* clean comments

* [autofix.ci] apply automated fixes

* Ruff

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: disable keys when flow is locked (#9726)

* Disable keys when isLocked

* Disabled adding and deleting nodes when flow is locked

* fix: superuser credential handling and AUTO_LOGIN security (#9542)

* Refactor superuser credential handling for security

* [autofix.ci] apply automated fixes

* refactor: enhance superuser credential handling in setup process (#9574)

* [autofix.ci] apply automated fixes

* refactor: streamline superuser flow tests and enhance error handling (#9577)

* [autofix.ci] apply automated fixes

* None Super user is not allowed hence for a valid string resetting it to

* None Super user is not allowed hence for a valid string resetting it to ""

* use secret str for password everywhere

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>

* chore: Update version to 1.6.0 in package files (#9746)

fix: update version to 1.6.0 in package.json and package-lock.json

* fix: update logs position to be absolute (#9724)

* removed left auto from log canvas controls

* made initial position be fetched from event for notes

* added relative class and put shadow box outside of the div that contains reactflow

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>

* fix: make entire playground chat area be clickable (#9721)

* Add stop propagation to chat input buttons

* Made entire area focus chat when clicked

* fix: Restore old description from file description. (#9752)

fix: Restore file component description

* fix: Preserve flows and components during project updates (#9750)

* 📝 (projects.py): add logic to separate flows and components from a single query result for better organization and readability
🐛 (projects.py): fix logic to correctly exclude project flows from the list of excluded flows

*  (test_projects.py): add tests to ensure project renaming preserves associated flows and components

* 📝 (projects.py): remove unnecessary comment to improve code readability and maintainability

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix(langwatch): prevent trace errors with proper API key validation (#9720)

* fix(URLComponent): filter out `None` in headers to avoid silent serialization errors (#9596)

fix: Filter out None values from headers in URLComponent

* fix: put knowledge bases under feature flag (#9749)

Added enable_knowledge_bases feature flag everywhere it's been used

* refactor: Padding misaligned for sidebar icons and other issues fix for 1.6 (#9713)

* sidebar fixes

* [autofix.ci] apply automated fixes

* refactor: update FlowMenu and CanvasControlsDropdown styles, enhance MemoizedCanvasControls with flow lock status

* feat: add 'Sticky Notes' functionality to sidebar and enhance note handling

- Introduced a new 'add_note' section in the sidebar for adding sticky notes.
- Implemented event listeners to manage the add-note flow, allowing for better integration with the sidebar.
- Updated styles and structure in various components to accommodate the new feature.
- Refactored existing components for improved organization and readability.

* fix: adjust button height in FlowSidebarComponent for improved UI consistency

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Updated Agent Starter Projects with new Templates (#9772)

* updates templates

* fix formating

* fix: remove agents from skipped components list in setup (#9785)

* fix: improve error handling for missing OCR dependencies (#9753)

* fix(docling): improve error handling for missing OCR dependencies

- Add DoclingDependencyError custom exception
- Detect specific OCR engine installation issues
- Provide clear installation instructions to users
- Suggest OCR disable as alternative solution
- Fail fast when dependencies are missing

Fixes issue where users received unclear error messages when OCR engines
like ocrmac, easyocr, tesserocr, or rapidocr were not properly installed.

* fix: prevent missing clean_data attribute error

* chore: update starter_projects

* [autofix.ci] apply automated fixes

* refactor(docling): update dependency error messages to use uv and suggest complete install

Address code review feedback by using 'uv pip install' and offering langflow[docling] as alternative

* refactor(docling): simplify worker error handling per code review

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: adjust casing on Add MCP Server buttons (#9774)

* Added span to buttons to not remove casing

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: set gpt4.1 as default model (#9780)

* feat: double clicking a component will add it to the canvas (#9730)

* fix

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: release branch tests (#9820)

* Fix auth tests

* [autofix.ci] apply automated fixes

* Modularized lock flow

* Added more assertions

* t Fixed flow lock test

* Fixed sticky notes test

* Removed warning on mcpsidebargroup test

* fixed warnings on sidebar footer buttons

* fixed sidebar footer buttons and test

* Re-added padding

* Fixed sidebar segmented nav test

* fixed searchconfigtrigger

* Fixed sidebar header test

* fixed sidebar items list test

* Fixed flow lock test

* fixed sticky notes test

* Fixed sidebarfooterbuttons test

* Revert fix

* Fixed test_refresh_starter_projects

* attempt to fix fe merge conflicts

* [autofix.ci] apply automated fixes

* lint

* [autofix.ci] apply automated fixes

* mypy

* Improve sorting of sender messages

* ruff

* starter projects

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>

* fix: Properly serialize documents for Graph RAG in Astra (#9777)

fix: Serialize documents for graph RAG

* fix: Standardize content dict format for LLM provider compatibility (#9745)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>

* fix: make components added with filter come with the output pre-selected, fix Agent filtering (#9787)

* Added output selection if there is a filter and the output exists

* Fixed wrong pseudo source handle

* Removed handle dragging

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>

* fix: make mcp tools refresh when changing server with the same name (#9778)

* Delete cache when editing servers

* Add check to refresh tools if the cache is changed from the current tools

* Updated mcp to only delete from cache if it exists there

* Added test to tools refresh functionality

* remove tools count from updated server

* [autofix.ci] apply automated fixes

---------

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>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>

* fix: remove extra spaces from playground, added separator (#9779)

Adjusted margins for items in playground

* fix: Update message schema tests for image_url structure (#9823)

* 📝 (test_schema_message.py): update image content type to "image_url" for consistency and clarity in message schema
♻️ (test_schema_message.py): refactor image URL handling to improve readability and maintainability of the code

* [autofix.ci] apply automated fixes

* fixed mcp sidebar

* revert sidebar change

* Fixed test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>

* fix: Restore Embedding Model Connections in Vector Store RAG (#9776)

fix: Restore Embedding model connections

* fix: update CORS configuration and add env vars to allow for user control (#9744)

* Update CORS configuration and add env vars to allow for user control

* Add unit test

* fix: add noqa comment for linting in create_refresh_token function

Added a noqa comment to suppress linting warnings for the token type check in the create_refresh_token function, ensuring code clarity while maintaining compliance with linting standards.

* refactor: enhance CORS tests with temporary directory usage and improve exception handling

Updated unit tests for CORS configuration to utilize a temporary directory for environment variables, ensuring isolation during tests. Improved exception handling in refresh token tests to raise HTTPException with appropriate status codes and messages. This enhances test reliability and clarity.

* fix: enhance CORS origin validation to ensure consistent list output

Updated the validate_cors_origins method to convert a single origin string into a list for consistency, in addition to handling comma-separated strings. This change improves the robustness of CORS configuration handling.

* refactor: update CORS test cases to ensure single origin is consistently treated as a list

Modified unit tests for CORS configuration to assert that single origin strings are converted to lists, enhancing consistency in CORS origin handling. This change aligns with recent updates to the CORS validation logic.

* re-add uvlock

* [autofix.ci] apply automated fixes

* feat: revert CORS changes and add deprecation warnings for v1.7

- Revert CORS behavior to maintain backward compatibility until v1.7
- Add CORS configuration fields with current defaults (*, True, *, *)
- Implement deprecation warnings for upcoming v1.7 security changes
- Preserve existing behavior while enabling early configuration adoption

* [autofix.ci] apply automated fixes

* Add back imports

* Fix tests

* [autofix.ci] apply automated fixes

* Rt;uff

* Ruff

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>

* fix: handle pandas Series in get_message boolean evaluation (#9765)

* fix: handle pandas Series in get_message boolean evaluation

Resolves ValueError when message is pandas Series by checking .empty
instead of relying on ambiguous truth value evaluation.

* fix: mypy error

* fix: mypy error

* [autofix.ci] apply automated fixes

---------

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>

* fix: Add VLM support for Docling and improve deps (#9757)

* fix: Support the VLM pipeline in docling

* fix: Add VLM support and opencv dep

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Update comments and fix ruff errors

* [autofix.ci] apply automated fixes

* Hide OCR engine when VLM selected

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Fix VLM pipeline

* [autofix.ci] apply automated fixes

* Add type annotation for visited and excluded

* [autofix.ci] apply automated fixes

* Small fix for the templates

* Update Vector Store RAG.json

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>

* fix: make cursor position not go to end on input list component (#9782)

* added new cursor input with cursor handling to input list component

* Change to use cursor input on input list component

* Test cursor position preservation on inputlistcomponent

---------

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>

* fix: remove metadata building to speed up load times (#9819)

Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: turn mcp composer feature on by default on frontend (#9831)

fix mcp composer not on by default

* fix: make astra db component not disconnect, fix handle color when type is undefined (#9829)

* remove hidden from vector store

* Added vector store color

* Added fallback for when the connected color is not found

* Changed starter projects

* fixed null check

* fix: Handle ImportError for parse_api_endpoint and remove debug logging (#9830)

* fix: remove debug logging for processed modules in _process_single_module

* fix: move parse_api_endpoint import inside try-except block to handle ImportError gracefully

* fix: make session_id visible in Message History Retrieve mode (#9557)

* fix: make session_id visible in Message History Retrieve mode

- Added session_id to default_keys to make it visible by default
- Added session_id to Retrieve mode config to show it when mode is selected
- Kept advanced=True as requested to maintain field categorization
- Fixes issue where session_id input was hidden preventing dynamic session retrieval

Fixes #9464

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Fix api key detection for skip test

* Oops. Remove print

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>

* feat: Enhance logging configuration with caller information and conditional callsite data (#9747)

* fix: enhance logging configuration to include caller information and improve log level handling

* fix: add caller information to logging configuration

* fix: conditionally add callsite information to logging configuration based on DEV environment

* fix: update DEV variable initialization to use environment variable

* fix: update logging configuration to include callsite fields in DEV environment

* mypy

* [autofix.ci] apply automated fixes

* mypy

---------

Co-authored-by: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* ref: update auto login behavior to use secure defaults (#9825)

* Update auto login behavior to use secure defaults; remove skip auth option

* Add warning back

* ordering of params

* skip unimplemented cors tests

* fix: make mcp tools update when auth settings is null (#9844)

* allow trailing and starting _

* Fixed selection

* fixed auth settings being called when it's null

* fix: adjust tools title and description padding (#9847)

* Fixed padding on tools table

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Apply a per-user uniqueness for mcp (#9840)

* fix: Apply a per-user uniqueness for mcp

* Test updates

* [autofix.ci] apply automated fixes

* Fix tests

* Update mcp.py

* Update 1cb603706752_modify_uniqueness_constraint_on_file_.py

* Update 1cb603706752_modify_uniqueness_constraint_on_file_.py

* Update 1cb603706752_modify_uniqueness_constraint_on_file_.py

* Update 1cb603706752_modify_uniqueness_constraint_on_file_.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: make file button clickable after focusing on chat (#9863)

Fixed file button unclickable

* fix: make input clickable on chat  (#9864)

Fixed not able to select text

* test: Increase loading performance test timeout (#9873)

* Revert "ref: update auto login behavior to use secure defaults (#9825)"

This reverts commit 567d0fa91a5feb787b23c614cb7d21309488eacd.

* refactor: update skip_auth_auto_login behavior and update messaging timelines for removal (#9874)

* Update auto login warnings to reflect new timelines

* Add regex match to test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* fix: Remove the uniqueness constraint on file names (#9872)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Move mcp composer service to lfx

* MCP Composer service factory fixes

* Add back script changes for lfx

* Clean up mcp project imports

* Update d37bc4322900_drop_single_constraint_on_files_name_.py

* Fix mcp imports

* Update CORS deprecation notice

* Add back the external options in dropdown input

* Add back starter projects

* Remove old components/data init file and update starter projects

* remove todo

* Re-adds the clean_data param for chat output

* [autofix.ci] apply automated fixes

* Update starter projects with clean_data

* Update oauth timeouts and fix socket binding check

* Fix import and main duplicate code

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Import and test fixes

* [autofix.ci] apply automated fixes

* Temporarily skipping knowledge bases import issue to allow other CI tests to run

* Add python function to lfx test

* fixed typesStore test

* Ruff and image unit test fixes

* [autofix.ci] apply automated fixes

* 📝 (image.py): Update function documentation to reflect changes in the content dictionary structure
♻️ (test_schema_data.py): Refactor tests to use "image" type instead of "image_url" and remove unnecessary checks for "source_type" in the content dictionary

* Knowledge bases update for merge

* Update __init__.py

* Revert the changes to package lock

* Fix kb tests to use client fixture instead of mocks

* Clean up mcp init task

* Fix other kb tests

* fixed text file typs with repeated data

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: VICTOR CORREA GOMES <112295415+Vigtu@users.noreply.github.com>
2025-09-18 21:23:08 +00:00
Lucas Oliveira
bd1bec6224 fix: set mcp_composer feature as true by default (#9522)
* Set mcp composer feature flag as default true

* Add env var to .env.example
2025-08-25 21:03:57 +00:00
Jordan Frazier
c188ec113c fix: enforce authentication for superuser cli command (#9152)
* Enforce authentication for superuser cli command

* shorten security md

* cleanup

* use session_scope

* re-add uvlock

* [autofix.ci] apply automated fixes

* ruff

* update env example

* [autofix.ci] apply automated fixes

* better exception handling

* [autofix.ci] apply automated fixes

* update tests to not use mocks

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* Remove old test

* Catch exceptions for typer

* Try output instead of stdout

* Use xdist to run in serial

* Separate create superuse

* [autofix.ci] apply automated fixes

* Ruff

* [autofix.ci] apply automated fixes

* lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-14 20:29:35 +00:00
XiaochuanLyu
324caf486c refactor: remove AsyncFileSink logger, add rotation support, and update docs (#9105)
* refactor(logs): remove asyncfilesink logger, add rotation support, and update docs

* refactor(logs): remove asyncfilesink logger, add rotation support, and update docs

---------

Co-authored-by: Harry Lyu <harrylyu@umich.edu>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2025-07-25 17:50:45 +00:00
Jordan Frazier
b77351331d fix: replace instances of 127.0.0.1 to localhost (#8536)
* Replace instances of 127.0.0.1 to localhost

* fix some replace-all issues

* fix some replace-all issues

* update starterprojects

* Upgrade uvlock
2025-06-16 15:54:04 +00:00
Jordan Frazier
471b8e2f6f feat: add retry on database connection (#5772)
* Add retry to database connection

* [autofix.ci] apply automated fixes

* fix comments

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-21 20:41:17 +00:00
himan-k
7414a01235 fixing ThreadingInMemoryCache usage (#2604)
* ThreadingInMemoryCache usage is broken. This commit addresses those issues along with missing documentation about the caching options.

* make lint & make unit_tests fixes

* removing unnecessary changes from unclear test results in  last run

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-10 04:52:37 -07:00
cristhianzl
8bf7156e90 📝 (env.example): add comment to clarify BACKEND_URL value must end with a slash 2024-06-21 17:54:32 -03:00
Cristhian Zanforlin Lousa
74b8b98cb2 Two edges (#2249)
* fix error on port frontend variable .env

*  (constants.ts, vite.config.mts): add support for configurable LANGFLOW_HOST environment variable to allow dynamic backend URL configuration

* 🔧 (constants.ts, vite.config.mts): consolidate backend URL configuration into a single environment variable
2024-06-21 17:26:58 -03:00
Gabriel Luiz Freitas Almeida
53dc025b5e Changes default location for the database and adds the option to use the previous behavior (#1907)
* chore: Refactor loading of settings and handle missing keys

* chore: Update .env.example file with new configuration options

* Ignore database files in .gitignore

* Refactor loading of settings and handle missing keys

* Update DOWNLOAD_WEBHOOK_URL in base settings to use the correct URL for triggering flows in the Langflow store.

* 🐛 (base.py): Fix condition to copy existing database to new location only if SAVE_DB_IN_CONFIG_DIR is true

* 🐛 (base.py): update log message to accurately reflect the action being taken when creating a new database
2024-05-15 20:41:01 -03:00
Gabriel Luiz Freitas Almeida
e486d46602 Add environment variable initialization and store_environment_variables (#1654)
* Add environment variable initialization and add store_environment_variables

* Add variables_to_get_from_environment to store specific environment variables

* Remove unused variables from VariableService

* Update global variables documentation and refactor VariableService
2024-04-10 11:57:53 -03:00
Gabriel Luiz Freitas Almeida
05cd6e4fd7 1.0 Alpha (#1599)
* Update model kwargs and temperature values

* Update keyboard shortcuts for advanced editing

* make Message field have no handles

* Update OpenAI API Key handling in OpenAIEmbeddingsComponent

* Remove unnecessary field_type key from CustomComponent class

* Update required field behavior in CustomComponent class

* Refactor AzureOpenAIModel.py: Removed unnecessary "required" attribute from input parameters

* Update BaiduQianfanChatModel and OpenAIModel configurations

* Fix range_spec step type validation

* Update RangeSpec step_type default value to "float"

* Fix Save debounce

* Update parameterUtils to use debounce instead of throttle

* Update input type options in schemas and graph base classes

* Refactor run_flow_with_caching endpoint to include simplified and experimental versions

* Add PythonFunctionComponent and test case for it

* Add nest_asyncio to fix event loop issue

* Refactor test_initial_setup.py to use RunOutputs instead of ResultData

* Remove unused code in test_endpoints.py

* Add asyncio loop to uvicorn command

* Refactor load_session method to handle coroutine result

* Fixed saving

* Fixed debouncing

* Add InputType and OutputType literals to schema.py

* Update input type in Graph class

* Add new schema for simplified API request

* Add delete_messages function and update test_successful_run assertions

* Add STREAM_INFO_TEXT constant to model components

* Add session_id to simplified_run_flow_with_caching endpoint

* Add field_typing import to OpenAIModel.py

* update starter projects

* Add constants for Langflow base module

* Update setup.py to include latest component versions

* Update Starter Examples

* sets starter_project fixture to Basic Prompting

* Refactor test_endpoints.py: Update test names and add new tests for different output types

* Update HuggingFace Spaces link and add image for dark mode

* Remove filepath reference

* Update Vertex params in base.py

* Add tests for different input types

* Add type annotations and improve test coverage

* Add duplicate space link to README

* Update HuggingFace Spaces badge in README

* Add Python 3.10 installation requirement to README

* Refactor flow running endpoints

* Refactor SimplifiedAPIRequest and add documentation for Tweaks

* Refactor input_request parameter in simplified_run_flow function

* Add support for retrieving specific component output

* Add custom Uvicorn worker for Langflow application

* Add asyncio loop to LangflowApplication initialization

* Update Makefile with new variables and start command

* Fix indentation in Makefile

* Refactor run_graph function to add support for running a JSON flow

* Refactor getChatInputField function and update API code

* Update HuggingFace Spaces documentation with duplication process

* Add asyncio event loop to uvicorn command

* Add installation of backend in start target

* udpate some starter projects

* Fix formatting in hugging-face-spaces.mdx

* Update installation instructions for Langflow

* set examples order

* Update start command in Makefile

* Add installation and usage instructions for Langflow

* Update Langflow installation and usage instructions

* Fix langflow command in README.md

* Fix broken link to HuggingFace Spaces guide

* Add new SVG assets for blog post, chat bot, and cloud docs

* Refactor example rendering in NewFlowModal

* Add new SVG file for short bio section

* Remove unused import and add new component

* Update title in usage.mdx

* Update HuggingFace Spaces heading in usage.mdx

* Update usage instructions in getting-started/usage.mdx

* Update cache option in usage documentation

* Remove 'advanced' flag from 'n_messages' parameter in MemoryComponent.py

* Refactor code to improve performance and readability

* Update project names and flow examples

* fix document qa example

* Remove commented out code in sidebars.js

* Delete unused documentation files

* Fix bug in login functionality

* Remove global variables from components

* Fix bug in login functionality

* fix modal returning to input

* Update max-width of chat message sender name

* Update styling for chat message component

* Refactor OpenAIEmbeddingsComponent signature

* Update usage.mdx file

* Update path in Makefile

* Add new migration and what's new documentation files

* Add new chapters and migration guides

* Update version to 0.0.13 in pyproject.toml

* new locks

* Update dependencies in pyproject.toml

* general fixes

* Update dependencies in pyproject.toml and poetry.lock files

* add padding to modal

*  (undrawCards/index.tsx): update the SVG used for BasicPrompt component to undraw_short_bio_re_fmx0.svg to match the desired design
♻️ (undrawCards/index.tsx): adjust the width and height of the BasicPrompt SVG to 65% to improve the visual appearance

* Commented out components/data in sidebars.js

* Refactor component names in outputs.mdx

* Update embedded chat script URL

* Add data component and fix formatting in outputs component

* Update dependencies in poetry.lock and pyproject.toml

* Update dependencies in poetry.lock and pyproject.toml

* Refactor code to improve performance and readability

* Update dependencies in poetry.lock and pyproject.toml

* Fixed IO Modal updates

* Remove dead code at API Modal

* Fixed overflow at CodeTabsComponent tweaks page

*  (NewFlowModal/index.tsx): update the name of the example from "Blog Writter" to "Blog Writer" for better consistency and clarity

* Update dependencies versions

* Update langflow-base to version 0.0.15 and fix setup_env script

* Update dependencies in pyproject.toml

* Lock dependencies in parallel

* Add logging statement to setup_app function

* Fix Ace not having type="module" and breaking build

* Update authentication settings for access token cookie

* Update package versions in package-lock.json

* Add scripts directory to Dockerfile

* Add setup_env command to build_and_run target

* Remove unnecessary make command in setup_env

* Remove unnecessary installation step in build_and_run

* Add debug configuration for CLI

* 🔧 chore(Makefile): refactor build_langflow target to use a separate script for updating dependencies and building
 feat(update_dependencies.py): add script to update pyproject.toml dependency version based on langflow-base version in src/backend/base/pyproject.toml

* Add number_of_results parameter to AstraDBSearchComponent

* Update HuggingFace Spaces links

* Remove duplicate imports in hugging-face-spaces.mdx

* Add number_of_results parameter to vector search components

* Fixed supabase not commited

* Revert "Fixed supabase not commited"

This reverts commit afb10a6262.

* Update duplicate-space.png image

* Delete unused files and components

* Add/update script to update dependencies

* Add .bak files to .gitignore

* Update version numbers and remove unnecessary dependencies

* Update langflow-base dependency path

* Add Text import to VertexAiModel.py

* Update langflow-base version to 0.0.16 and update dependencies

* Delete start projects and commit session in delete_start_projects function

* Refactor backend startup script to handle autologin option

* Update poetry installation script to include pipx update check

* Update pipx installation script for different operating systems

* Update Makefile to improve setup process

* Add error handling on streaming and fix streaming bug on error

* Added description to Blog Writer

* Sort base classes alphabetically

* Update duplicate-space.png image

* update position on langflow prompt chaining

* Add Langflow CLI and first steps documentation

* Add exception handling for missing 'content' field in search_with_vector_store method

* Remove unused import and update type hinting

* fix bug on egdes after creating group component

* Refactor APIRequest class and update model imports

* Remove unused imports and fix formatting issues

* Refactor reactflowUtils and styleUtils

* Add CLI documentation to getting-started/cli.mdx

* Add CLI usage instructions

* Add ZoomableImage component to first-steps.mdx

* Update CLI and first steps documentation

* Remove duplicate import and add new imports for ThemedImage and useBaseUrl

* Update Langflow CLI documentation link

* Remove first-steps.mdx and update index.mdx and sidebars.js

* Update Docusaurus dependencies

* Add AstraDB RAG Flow guide

* Remove unused imports

* Remove unnecessary import statement

* Refactor guide for better readability

* Add data component documentation

* Update component headings and add prompt template

* Fix logging level and version display

* Add datetime import and buffer for alembic log

* Update flow names in NewFlowModal and documentation

* Add starter projects to sidebars.js

* Fix error handling in DirectoryReader class

* Handle exception when loading components in setup.py

* Update version numbers in pyproject.toml files

* Update build_langflow_base and build_langflow_backup in Makefile

* Added docs

* Update dependencies and build process

* Add Admonition component for API Key documentation

* Update API endpoint in async-api.mdx

* Remove async-api guidelines

* Fix UnicodeDecodeError in DirectoryReader

* Update dependency version and fix encoding issues

* Add conditional build and publish for base and main projects

* Update version to 1.0.0a2 in pyproject.toml

* Remove duplicate imports and unnecessary code in custom-component.mdx

* Fix poetry lock command in Makefile

* Update package versions in pyproject.toml

* Remove unused components and update imports

* 📦 chore(pre-release-base.yml): add pre-release workflow for base project
📦 chore(pre-release-langflow.yml): add pre-release workflow for langflow project

* Add ChatLiteLLMModelComponent to models package

* Add frontend installation and build steps

* Add Dockerfile for building and pushing base image

* Add emoji package and nest-asyncio dependency

* 📝 (components.mdx): update margin style of ZoomableImage to improve spacing
📝 (features.mdx): update margin style of ZoomableImage to improve spacing
📝 (login.mdx): update margin style of ZoomableImage to improve spacing

* Fix module import error in validate.py

* Fix error message in directory_reader.py

* Update version import and handle ImportError

* Add cryptography and langchain-openai dependencies

* Update poetry installation and remove poetry-monorepo-dependency-plugin

* Update workflow and Dockerfile for Langflow base pre-release

* Update display names and descriptions for AstraDB components

* Update installation instructions for Langflow

* Update Astra DB links and remove unnecessary imports

* Rename AstraDB

* Add new components and images

* Update HuggingFace Spaces URLs

* Update Langflow documentation and add new starter projects

* Update flow name to "Basic Prompting (Hello, world!)" in relevant files

* Update Basic Prompting flow name to "Ahoy World!"

* Remove HuggingFace Spaces documentation

* Add new files and update sidebars.js

* Remove async-tasks.mdx and update sidebars.js

* Update starter project URLs

* Enable migration of global variables

* Update OpenAIEmbeddings deployment and model

* 📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment
📝 (inputs.mdx): add margin to image style to improve spacing and center alignment

📝 (rag-with-astradb.mdx): add margin to image styles to improve spacing and readability

* Update welcome message in index.mdx

* Add global variable feature to Langflow documentation

* Reorganized sidebar categories

* Update migration documentation

* Refactor SplitTextComponent class to accept inputs of type Record and Text

* Adjust embeddings docs

*  (cardComponent/index.tsx): add a minimum height to the card component to ensure consistent layout and prevent content from overlapping when the card is empty or has minimal content

* Update flow name from "Ahoy World!" to "Hello, world!"

* Update documentation for embeddings, models, and vector stores

* Update CreateRecordComponent and parameterUtils.ts

* Add documentation for Text and Record types

* Remove commented lines in sidebars.js

* Add run_flow_from_json function to load.py

* Update Langflow package to run flow from JSON file

* Fix type annotations and import errors

* Refactor tests and fix test data

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: carlosrcoelho <carlosrodrigo.coelho@gmail.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: Matheus <jacquesmats@gmail.com>
2024-04-04 02:46:44 -03:00
Gabriel Luiz Freitas Almeida
50c90f0879 Update .env.example file 2024-03-18 12:47:17 -03:00
Gabriel Luiz Freitas Almeida
e3a2abacae Merge remote-tracking branch 'origin/dev' into merge 2023-12-12 15:45:53 -03:00
Gabriel Luiz Freitas Almeida
79b12b8135 Revert "Release 0.5.6" 2023-11-06 23:18:49 -03:00
Gabriel Luiz Freitas Almeida
d34b551677 🔧 chore(.env.example): update example URLs for LANGFLOW_STORE_URL, LANGFLOW_DOWNLOAD_WEBHOOK_URL, and LANGFLOW_LIKE_WEBHOOK_URL to improve clarity and consistency
🔧 chore(store.py): add endpoint to like a component in the store API to enable users to like components

🔧 chore(base.py): add LIKE_WEBHOOK_URL to the settings to allow configuration of the webhook URL for liking components

🔧 chore(service.py): rename webhook_url variable to download_webhook_url for clarity and add like_webhook_url variable to store the LIKE_WEBHOOK_URL from the settings. Update call_webhook method to use download_webhook_url for downloading components and add like_component method to handle liking a component.
2023-10-27 00:16:57 -03:00
Gabriel Luiz Freitas Almeida
7b158c6ae6 📝 chore(.env.example): add LANGFLOW_STORE_URL variable to the example file for configuring the store URL
🐛 fix(Makefile): add --env-file .env option to the 'backend' target to load environment variables from .env file
2023-10-18 17:00:39 -03:00
Gabriel Luiz Freitas Almeida
d9e69b1ba3 🔧 chore(.env.example): add LANGFLOW_AUTO_LOGIN variable to enable/disable automatic login feature 2023-10-16 09:59:43 -03:00
Gabriel Luiz Freitas Almeida
b3febf25dd Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 14:50:19 -03:00
Gabriel Luiz Freitas Almeida
f22c66d824 📝 chore(.env.example): add placeholders for LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD to improve documentation and configuration 2023-09-18 15:45:27 -03:00
Gabriel Luiz Freitas Almeida
37773e0ca1 📝 chore(.env.example): add documentation for LANGFLOW_CACHE_TYPE environment variable and its possible values 2023-08-13 23:46:26 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-07-05 13:06:50 -03:00
Gabriel Luiz Freitas Almeida
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.
2023-07-05 12:00:42 -03:00