Commit graph

15,814 commits

Author SHA1 Message Date
Victor-w-Madeira
ca83cbe613
docs: Revise and restructure docs for the Custom Component (#7838)
* Update Custom Component session documentation

* Follow-up fix for the Custom Component documentation update

* docs: add explanation for tool_mode in custom component inputs

* at-typed-annotations

* finished-edit

* tool-mode

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-08 01:25:00 +00:00
Nicholas Freybler
66fb4d471a
fix: voice mode progress response queue (#7938)
* progress update nudge

* progress update nudge

* nick's fix

* progress toggle

* typo

* fix auth and ws thread safety

* [autofix.ci] apply automated fixes

* fix deadlock

* delete commented function

* fix duplicate events

* [autofix.ci] apply automated fixes

* merge

* clean up log_event

* queues not locks

* response ids for 11L flow

* async bug

* Fix awaits

* ElevenLabsResponse -> Response

* queues not locks

* response_q

* comment

* small fix

* new response queue mechanism

* ignore duplicate events

* event logging

* process_text_deltas refactor to be a single thread/task and use AsyncElevenLabs. No longer need a text chunker. Significantly more stable.

* return the chunking

* reliable function calling and de-duplicating

* fix shadowed var names

* fix shadowed var names

* cleanup

* fix response id in response.audio.done

* FunctionCall

* [autofix.ci] apply automated fixes

* mypy

* 3.10 exceptions

---------

Co-authored-by: phact <estevezsebastian@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-08 00:02:17 +00:00
Lucas Oliveira
ad82222ecc
fix: update hide outputs behavior to show current state, update disabled button UI (#7917)
* Fixed hidden to be output.hidden

* Fixed disabled Hide button to look disabled

* Fixed lastInput being true to all fields

* Changed text

* fixed multiple renders

* fixed show hidden
2025-05-07 23:20:50 +00:00
Edwin Jose
ee706073db
fix: MCP Tool mode issue (#7944)
* refactor to ensure proper initiallisations

* [autofix.ci] apply automated fixes

* fix lint

* add comment on lint issue

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-07 21:42:28 +00:00
Edwin Jose
fbcb3ddf35
feat: Update mcp_component add advanced True for env and headers (#7909)
Update mcp_component.py
2025-05-07 20:48:45 +00:00
Cristhian Zanforlin Lousa
4995a19609
test: improve test reliability with updated selectors and utility functions (#7943)
 (auto-login-off.spec.ts): update text selector to match new welcome message for improved test accuracy
♻️ (user-flow-state-cleanup.spec.ts): refactor test to use the new welcome message selector for consistency and accuracy
📝 (autoLogin.spec.ts): add import statement for awaitBootstrapTest utility function to fix test failures due to missing import
2025-05-07 20:13:56 +00:00
Sebastián Estévez
d84ae71e7d
fix: mcp anyOf support (#7941)
* improve anyOf support

* explicitly handle simple nullable types

* mypy
2025-05-07 16:46:29 +00:00
Bar Nuri
2bfb2c02c3
chore: bump langchain and langsmith dependencies (#7934)
langchain-langsmith-bump-safer
2025-05-07 14:46:26 +00:00
Mike Fortman
d887646383
refactor: performance improvements for canvas controls/toolbar (#7930)
* performance improvements for canvas controls/toolbar

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-07 14:12:22 +00:00
Gabriel Luiz Freitas Almeida
8c0813f3d8
fix: make tool mode updates possible (#7931)
* refactor: streamline node update logic in setup.py

Simplified the conditions for updating project components by consolidating checks for tool mode and output types. This enhances readability and maintainability of the code while ensuring that updates are applied correctly based on the latest component versions.

* fix: refine field removal logic in update_projects_components_with_latest_component_versions

* feat: add 'description' to NODE_FORMAT_ATTRIBUTES in constants.py

Enhanced the NODE_FORMAT_ATTRIBUTES list by including 'description' to improve metadata handling for nodes.

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-07 12:45:07 +00:00
Lucas Oliveira
4f36583601
fix: removed gradient from icon when component is tool mode (#7929)
removed gradient from tool mode components
2025-05-06 23:38:54 +00:00
May Ramati Kroitero
8cabedae55
feat: Add Tavily search API parameters and Tavily Extract API component (#7644)
* Add Tavily search parameters and Extract API component

* [autofix.ci] apply automated fixes

* Fix style issues flagged by Ruff

* fix Ruff Style Check issues

* [autofix.ci] apply automated fixes

* Fix linting issue reported by Ruff

* fix inlcude and exclude domains

* Fix linting issue reported by Ruff

* fix: update descriptions and input types across multiple starter project JSON files

- Changed "Tavily AI" to "Tavily Search" in descriptions for consistency.
- Updated input types for several API keys to be empty arrays instead of containing "Message".
- Added new fields such as "chunks_per_source", "days", "exclude_domains", "include_domains", and "include_raw_content" to enhance functionality in various projects.
- Adjusted the "description" field in the "Youtube Analysis" project for clarity.

---------

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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-06 22:38:14 +00:00
Jordan Frazier
793e5784d5
fix: suppress migration warnings on flow table (#7920)
Surpress migration warnings on flow table
2025-05-06 22:28:13 +00:00
Mendon Kissling
1a2f4631d0
docs: bump openapi.json to 1.4.0 (#7921)
bump-to-1.4.0
2025-05-06 17:52:15 +00:00
Pedro Pacheco
12f35a0edc
fix: improvement to ollama component to allow for dynamic filtering based on model capabilities (#7696)
* Updated model filtering to avoid hard coding of named based exclusions

* Stylistic adjustments

* Remove accidentally added package-lock.json from PR

* revert removal of package lock

* Modifications to the UT and changed component to be more async

* [autofix.ci] apply automated fixes

* Lint

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.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>
2025-05-06 17:10:32 +00:00
Mendon Kissling
744df31f18
docs: v1.4 features (#7778)
* bump-supported-version-to-1.4.x

* overview-page

* small-naming-changes

* change-folders-to-projects

* api-examples-folder-to-projects

* more

* update-screenshots-and-text

* sidebars

* npx-astra-command

* move-and-redirect-outdated-page

* sidebars

* tools-and-env-var

* language

* authentication

* flow-description-and-tool

* mcp-component-astra-db

* rename-page

* cleanup

* update-message

* update-for-client-strategy

* sse-port-7868-and-api-key-creation

* external-deploy

* init-ngrok

* add-ngrok-deploy

* cleanup

* cleanup

* Minor capitalization fix

* Fix message object anchors

* Fix indentation of MCP server procedure

* Add anchor link for MCP SSE mode

* Mild cleanup of concepts overview

* Fix indentation issues in mcp-component-astra

* Use universal date format on luna-for-langflow

* Update mcp-server doc

* fix-missed-bracket

* change-npx-to-uvx-mcp-proxy

* update-screenshots-for-uvx

* inspector-with-auth

* Apply suggestions from code review

Co-authored-by: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>

---------

Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com>
Co-authored-by: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
2025-05-06 16:41:07 +00:00
Mike Fortman
710b6f99b5
refactor: Reduce Sidebar Rerenders (#7699)
* menubar and hook optimizations

* sidebar optimizations

* [autofix.ci] apply automated fixes

* cleanup

* [autofix.ci] apply automated fixes

* sidebare button optimization

* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and performance

* Get state on focus instead of on keypress

* revert test shard change

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-05-06 16:11:47 +00:00
Sebastián Estévez
a04e5f56b8
feat: update sql component to support toolkit (#7652)
* update sql component

* cache

* Update src/backend/base/langflow/components/data/sql_executor.py

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* Update src/backend/base/langflow/components/data/sql_executor.py

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

* [autofix.ci] apply automated fixes

* fix: sql query component (#7700)

* feat: Sql toolkit tests (#7842)

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gustavo Costa <gsantosaero@gmail.com>
2025-05-06 16:08:33 +00:00
Victor-w-Madeira
15993f6eff
docs: improve hybrid search documentation for Astra DB component (#7831)
docs: improve Hybrid Search documentation for better clarity and user understanding
2025-05-06 15:58:05 +00:00
Garrett George
986c4bcf24
Feature: Adds additional azure openai api versions (#7105)
* Adds additional azure openai api versions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Garrett George <ggeorge@pros.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-06 13:58:57 +00:00
Jordan Frazier
674cee0906
build: add event-delivery polling for cloud image (#7911)
Add event-delivery polling for cloud image
2025-05-05 21:28:17 -07:00
Jordan Frazier
e0ae3f69c2
fix: wait on loguru to flush async logs from services (#7908)
Allow loguru to flush async logs from services
2025-05-06 00:05:03 +00:00
Jordan Frazier
2c6ea9c98f
fix: truncate transaction and vertex messages (#7893)
* add pyinstrument and fastapi wrapper

* Truncate vertex build responses

* Truncate vertex response and transactions

* [autofix.ci] apply automated fixes

* Update test for vertex response structure to reflect new truncation logic

* Refactor profiling middleware to use environment variable for configuration

* Update test for vertex response structure to correct truncation logic

* move pyinstrument to dev dependencies

* Update serialization test to include max_items parameter for list truncation

* remove profiling from this PR, fix constants

* [autofix.ci] apply automated fixes

* Add asyncio configuration options to pyproject.toml

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-06 00:03:13 +00:00
Gabriel Luiz Freitas Almeida
304e28b48a
feat: event polling can process more than one event at a time (#7858)
* refactor: enhance event polling to retrieve all available events and return in NDJSON format

Updated the event polling logic to collect all available events from the queue instead of just one. The response format has been changed to NDJSON, allowing multiple events to be returned in a single response. Improved error handling for timeouts by returning an empty response instead of raising an error.

* refactor: improve NDJSON event processing in build polling

Enhanced the event polling logic to handle NDJSON responses by processing multiple events in a single fetch. Updated the response handling to read the response as text, split it into individual JSON objects, and process each event accordingly. This change improves the efficiency of event handling and maintains a consistent polling interval.

* fix: change event list type from list[str] to list in get_flow_events_response

* refactor: enhance event stream consumption with timeout and error handling

Updated the consume_and_assert_stream function to include a timeout for processing events and improved error handling for JSON parsing failures. Added logging for better debugging and tracking of processed events. Adjusted the event validation logic to ensure both the first and last expected events are present.

* refactor: enhance event polling logic with improved limits and JSON validation

Updated the event polling mechanism to include configurable limits for total events and empty polls, along with a timeout for requests. Enhanced JSON validation for individual events and added logging for better debugging of polling behavior. This refactor aims to improve robustness and maintainability of the event consumption process.

* refactor: update polling interval and streamline event handling

Modified the polling interval constant to improve responsiveness and adjusted event handling logic in the get_flow_events_response function to simplify the processing of event values. This change enhances the efficiency of event consumption and maintains a consistent approach to handling NDJSON responses.

* refactor: simplify event retrieval in get_flow_events_response

Removed unused event_id and put_time variables from the event retrieval logic in the get_flow_events_response function. This change streamlines the code and enhances readability while maintaining the functionality of event handling.

* refactor: update consume_and_assert_stream to use asyncio.wait_for for timeout handling

Modified the consume_and_assert_stream function to utilize asyncio.wait_for for managing timeouts in event processing. This change improves compatibility with Python 3.10 and enhances the robustness of the event consumption logic while maintaining existing functionality.
2025-05-05 22:20:04 +00:00
nidhimishra-datastax
102946be72
docs: Adding Best practices for Deploying and Running Langflow in production (#7311)
* Adding Best practices on running Langflow in production

* combine-content

* combine-more-content-and-sidebars

* sidebars

* docs: add deployment guide for Langflow development environment on Kubernetes

- Introduced a new page for deploying the Langflow IDE in a development environment on Kubernetes.
- Updated sidebar to reflect the new deployment guide.
- Adjusted existing documentation links to point to the new development deployment page.

* combine-more-content-and-sidebars

* combine-more-content-and-sidebars

* Enhance docs: Dark mode messaging, fix link, update title, reorder pages

- Enhanced the messages for Dark Mode support
- Fixed broken link in Deployment Docker pointing to Deployment Kubernetes
- Updated title to 'Langflow Architecture and Best Practices' from 'Langflow Best Practices'
- Changed ordering of pages in Deployment Kubernetes section

* Restore missing content

* Cleaning stale changes in sidebars

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>

* Update docs/docs/Develop/develop-application.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-dev.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-dev.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-dev.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-dev.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-docker.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-prod.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-kubernetes-prod.md

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-prod-best-practices.md

Co-authored-by: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
2025-05-05 21:49:32 +00:00
Lucas Oliveira
75deddd102
fix: re-add name and description editing on tool mode except for Composio, fix MCP server code (#7901)
* Changed backend to contain readonly props for tools

* Show name editing for not readonly tools

* Fixed edit-tools test

* Updated command to use "uvx" instead of "npx" for stability

* Fixed mcp code for authentication on auto_login=false

* removed args from component desc

* [autofix.ci] apply automated fixes

* making tool mode inputs the priority.

* fix: Clean up comments and whitespace in component_tool.py

* Fix column name

* update the dispaly name in composio

* fix format

*  (get-started-progress.tsx): add data-testid attribute to improve testability and accessibility
🔧 (user-progress-track.spec.ts): update test assertions to use the new data-testid attribute for get started progress title

---------

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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-05-05 21:20:19 +00:00
Saurabh Misra
82e08d6100
chore: Upgrade codeflash to v0.12.0 (#7752)
Upgrade codeflash to v0.12.0

Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-05-05 21:17:17 +00:00
Gustavo Costa
50341d1a65
docs: fix Hugging Face embeddings inference inputs (#7843)
Fix HF embeddings inference inputs in docs

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2025-05-05 21:06:30 +00:00
Bar Nuri
21f9182a82
fix: flow_runner better run_id and support stream (#7892)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-05 19:16:07 -03:00
Gabriel Luiz Freitas Almeida
36c9f6fa15
chore: Update CI workflow to conditionally run tests based on the presence of a label (#7905) 2025-05-05 17:25:29 -03:00
Edwin Jose
c5306643bb
fix: anthropic Model component base url empty issue (#7872)
* Update anthropic.py

* updates to templates

* [autofix.ci] apply automated fixes

* update the templates

* Refactor Anthropic API URL handling to use a constant. Introduced DEFAULT_ANTHROPIC_API_URL in anthropic_constants.py and updated references in anthropic.py for improved maintainability and clarity.

* [autofix.ci] apply automated fixes

* Refactor AnthropicModelComponent to streamline API URL handling. Removed unnecessary base_url checks and ensured consistent use of DEFAULT_ANTHROPIC_API_URL for improved clarity and maintainability.

* [autofix.ci] apply automated fixes

* Fix base_url check in update_build_config to ensure key existence before accessing value

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-05 19:23:57 +00:00
Edwin Jose
99d9a52bd9
fix: Deprecate Google Components (#7880)
deprecate components
2025-05-05 19:02:46 +00:00
Carter Rabasa
29f3fcacd9
docs: adds Discord server reference in README (#7902)
* Adding Discord

* fixed X url, removed huggingface
2025-05-05 19:01:10 +00:00
Gabriel Luiz Freitas Almeida
7fdca5895e
chore: Update codspeed workflow with timeout parameter (#7903) 2025-05-05 16:29:46 -03:00
Cristhian Zanforlin Lousa
051a6c2ae5
feat: Enhance main interface by ensuring persistent navbar visibility (#7889)
* ♻️ (appHeaderComponent/index.tsx): remove unused variables and condition for isEmpty to simplify the code and improve readability

* 📝 (empty-page.tsx): Update page title and descriptions to reflect the new branding and messaging for Langflow
🗑️ (github-bg.png): Delete unused background image file from the frontend assets folder

* 📝 (empty-page.tsx): update text size class from text-xs to text-sm for better readability

* 📝 (empty-page.tsx): Update EMPTY_PAGE_DESCRIPTION to remove extra period for consistency
📝 (empty-page.tsx): Increase font size for text elements for better readability and user experience
2025-05-05 15:54:57 +00:00
Mendon Kissling
45826ce1c4
docs: astra json tool example (#7764)
* initial-content

* colon

* outputs

* capitalizing-tool

* image-ref

* cleanup

* cleanup

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* code-review

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2025-05-05 15:51:13 +00:00
github-actions[bot]
463ce105f0
chore: update test durations (#7896)
Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com>
2025-05-05 09:08:23 -03:00
Rahul Shah
164d931bbd
fix: correct typo in pretty-logs property (#7886)
Typo property pretty logs
2025-05-05 00:33:20 +00:00
Gabriel Luiz Freitas Almeida
910720db00
feat: Change default event delivery method to streaming (#7851)
feat: change default event delivery method from polling to streaming
2025-05-05 00:25:59 +00:00
Lucas Oliveira
ef8ff1ed9b
fix: disable images on playground (#7881)
* Changed id of sent file on playground page

* Deactivate enable_image_on_playground feature flags
2025-05-02 22:00:20 +00:00
Lucas Oliveira
940b1100ca
fix: get backend url dynamically for mcp (#7878)
added check to use backend URL if baseURL is set (desktop)
2025-05-02 20:27:36 +00:00
Cristhian Zanforlin Lousa
1ebf1598c8
fix: Update folder progress component sizing and correct analytics event name (#7879)
* 🐛 (empty-page.tsx): fix incorrect user tracking event name from "discord_joined" to "discord_clicked" to accurately track user actions

* ♻️ (get-started-progress.tsx): refactor height value from pixels to rem units for better consistency and maintainability
2025-05-02 19:37:48 +00:00
Lucas Oliveira
296d285555
fix: playground page allowing image upload even if feature flag is disabled (#7877)
* Fix use drag and drop to check for playground page

* fix chat input to change file only if enable_image_on_playground is enabled and its on playground page

* change input wrapper to show upload file if constant is enabled

* changed onDrop to not allow sending files if enable_image_on_playground is disabled
2025-05-02 19:05:32 +00:00
dependabot[bot]
2c8e134725
build(deps-dev): bump vite from 5.4.18 to 5.4.19 in /src/frontend (#7870)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.18 to 5.4.19.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.19/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.19/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.19
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 18:25:39 +00:00
Gabriel Luiz Freitas Almeida
a388126ea4
chore: Bump version numbers for langflow and langflow-base to 1.4.0 and 0.4.0 respectively (#7867) 2025-05-02 18:07:04 +00:00
Edwin Jose
a904db6220
fix: Agent execution time duration display in streaming mode (#7852)
* Update events.py

* timer compotation update

* clean up

* add time elapsed for streaming

* [autofix.ci] apply automated fixes

* Update events.py

* preliminary fix

* Update src/backend/base/langflow/schema/message.py

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* Update src/backend/base/langflow/schema/message.py

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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-02 17:23:07 +00:00
Edwin Jose
eba76ecc57
fix: run flow multiple execution in tool mode (#7873)
* disable dataframe and data output in tool mode

* Update src/backend/base/langflow/base/tools/run_flow.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-02 17:10:58 +00:00
Gabriel Luiz Freitas Almeida
28445d0a70
fix: update templates containing Agent and Tool components (#7860)
* refactor: Update Simple Agent configuration and enhance tool integration

- Changed source and target handles to improve data flow between components.
- Updated input types for better compatibility with new data structures.
- Enhanced tool metadata and descriptions for clarity.
- Adjusted layout dimensions and properties for improved UI consistency.
- Updated agent and tool identifiers to reflect recent changes in the system.

* refactor: Update Invoice Summarizer project configuration and component identifiers

- Changed component IDs and source/target handles for improved data flow.
- Updated tool and agent identifiers to align with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.

* refactor: Update Pokédex Agent configuration and component identifiers

- Changed component IDs and source/target handles to enhance data flow.
- Updated input types and tool identifiers for improved compatibility with recent system changes.
- Enhanced layout properties and descriptions for better clarity and consistency.
- Adjusted metadata for tools and components to facilitate better integration.

* refactor: Update Search Agent configuration for improved compatibility

- Removed input types for the OpenAI API Key to streamline configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", and "gpt-4.1-nano" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update Financial Agent configuration and component identifiers

- Changed component IDs and source/target handles to enhance data flow.
- Updated tool and agent identifiers for improved compatibility with recent system changes.
- Adjusted layout properties and descriptions for better clarity and consistency.
- Enhanced metadata for tools and components to facilitate better integration.

* refactor: Update Gmail Agent configuration for improved model options

- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update Invoice Summarizer project configuration for improved clarity

- Standardized formatting of source and target handles for consistency.
- Adjusted score representation for better readability.
- Removed unnecessary hidden properties to streamline configuration.
- Enhanced metadata for components to facilitate better integration.

* refactor: Standardize source and target handles in agent configurations

- Updated formatting of source and target handles in both Pokédex and Simple Agent configurations for improved consistency.
- Removed unnecessary hidden properties to streamline the configuration.
- Enhanced metadata for components to facilitate better integration and clarity.

* refactor: Streamline OpenAI API Key configuration and enhance model options

- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options including "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for increased flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Simplify OpenAI API Key configuration and expand model options

- Removed input types for the OpenAI API Key to streamline the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1" for better alignment with current capabilities.

* refactor: Update YouTube Analysis project configuration for improved model options

- Removed input types for the OpenAI API Key to simplify the configuration.
- Added new model options "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", and "o1" for enhanced flexibility.
- Updated default model value to "gpt-4.1-mini" for better alignment with current capabilities.

* fix: update tools in Travel Planning Agents

* update mutateTemplate to be debounced by nodeId

* update fetch data on mount to fetch node data if its tool mode

* Update mutateTemplate instances to contain nodeId

* update starter projects to use gpt-4.1-mini model

* fix: update test expectation for Portfolio Website Code Generator

---------

Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
2025-05-02 16:51:42 +00:00
Edwin Jose
2fa6d868a1
fix: Streaming for anthropic models in Agents (#7871)
* fix streaming for anthropic models and optimise the _extract_output_text

* Update src/backend/base/langflow/base/agents/events.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: improve handling of AIMessageChunk state and output text extraction

* fix: change ValueError to TypeError in output text extraction

* fix: ensure output text is appended only if it is valid and agent message text is a string

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-05-02 14:49:44 +00:00
Deon Sanchez
6ec73c5d92
fix: Icons on dropdown are inconsistent when search/selecting (#7875)
* fix: improve metadata mapping for dropdown options

* fix: refactor dropdown component to streamline selected icon rendering
2025-05-02 14:45:04 +00:00