Commit graph

14,389 commits

Author SHA1 Message Date
Lucas Oliveira
c08d237e14
fix: changed width of sidebar to be consistent across application (#4759)
Changed width of sidebar to be 280
2024-11-21 09:45:34 -08:00
Ítalo Johnny
e728e40561
fix: ensure unique flow names when assigning to superuser and avoid adding starter projects (#4751)
* fix: ensure unique flow names when assigning to superuser

* refactor: Creates a new function with logic to rename flows

* refactor: simplify function

* Extract STARTER_FOLDER constants to a separate module

* Filter orphaned flows by excluding those in the starter folder

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-21 09:35:32 -08:00
Gabriel Luiz Freitas Almeida
12407f00af
fix: Indent JSON output for exported flow data (#4750)
Indent JSON output for exported flow data in reactflowUtils.ts
2024-11-21 09:27:24 -08:00
Sebastián Estévez
4f27dbd918
chore: speed up whl install in cli tests with uv (#4764)
uv for whl install
2024-11-21 17:19:18 +00:00
Gabriel Luiz Freitas Almeida
be7eac9e00
fix: Gracefully handle missing imports for model components (#4743)
* Handle ImportError for langchain_groq in Groq model initialization

* Refactor model input constants to handle missing imports gracefully

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-21 16:41:01 +00:00
Gabriel Luiz Freitas Almeida
9450f8529a
fix: Update dependency versions for pydantic to fix sqlmodel conflict (#4755)
Update dependency versions for pydantic in pyproject.toml
2024-11-21 16:01:14 +00:00
anovazzi1
105e52f6eb
docs: update Message object in guides-data-message.md (#4727)
* refactor: Improve structure and attributes of Message object in guides-data-message.md


Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-21 14:04:45 +00:00
Mendon Kissling
3e57340cc4
Fix: simple agent template notes (#4709)
* delete-youtube-template

* update-simple-agent

* update-description

* docs-package-and-yarn-lock

* update-edges

* descriptions-and-markdown

* readme

* tags

* update

hotfix for the tool_kit mode component update

* Update Simple Agent.json

added project tags

* Update Simple Agent.spec.ts

Playwright test update

* Update Simple Agent.spec.ts

* Update starter-projects.spec.ts

remove  youtube flow  from templates in test

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
2024-11-20 15:24:37 -05:00
Vinícios Batista da Silva
32554b4b93
docs: add google integration (#4382)
* docs: Add Google OAuth Integrations Docs

- Added documentation teaching how to configure an application using Google's OAuth API to use the components present in Langflow. Example: (Google Drive Loader, Google Drive Search and Gmail Loader).

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* docs: Updated the json available for download with the example flow

- Updated the json available for download with the example flow for using OAuth permissions in Langflow.
- Modified the existing Google Oauth Token component in Flow, with corrections and updates from component.

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* cleanup-style

* url

* docs: Add Google OAuth Integrations Docs

- Added documentation teaching how to configure an application using Google's OAuth API to use the components present in Langflow. Example: (Google Drive Loader, Google Drive Search and Gmail Loader).

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* docs: Updated the json available for download with the example flow

- Updated the json available for download with the example flow for using OAuth permissions in Langflow.
- Modified the existing Google Oauth Token component in Flow, with corrections and updates from component.

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* cleanup-style

* url

* fix: Updated Google Oauth Token component in flow example
- The component code has been updated to resolve lint issues and improve performance as per commit example:
    https://github.com/langflow-ai/langflow/pull/4383/commits/4df070f6e23a323114930e3e1dce500df7368353

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* docs: apply reviewer’s suggestions for documentation clarity

- Corrected grammar and improved readability as per GitHub review feedback

Co-authored-by: Vinícios Batista da Silva <vinicios.batsi@gmail.com>

* update-gif-new-workflow

* style-and-test

* 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: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-20 14:42:41 -05:00
Mendon Kissling
3fd4a61310
docs: Update agent tool documentation and enhance flow as tool component (#4636)
* docs: Update agent tool documentation and enhance flow as tool component details

* docs: Update component terminology for consistency and improve section title

* chore: add lucide-react dependency to package-lock and yarn.lock
2024-11-20 14:21:44 -05:00
Deon Sanchez
d5010c5d0b
refactor: Improve GitHub link styling in AppHeader component (#4737) 2024-11-20 10:04:54 -07:00
anovazzi1
9ceb18ad4f
fix: reset tool mode after update component code (#4723)
fix bug related to tool mode
2024-11-19 23:28:00 +00:00
Gabriel Luiz Freitas Almeida
a0acf39f8a
feat: Add database cleanup functions for transactions and vertex builds (#4694)
* feat: Add configuration options for maximum transactions and vertex builds retention

* Add functions to clean up old transactions and vertex builds in the database

- Implement `clean_transactions` to delete transactions exceeding the configured limit.
- Implement `clean_vertex_builds` to delete vertex builds exceeding the configured limit.
- Integrate cleanup functions into the service initialization process.

* Add error handling and logging for cleanup tasks in utils.py

- Wrap transaction and vertex build cleanup operations in try-except blocks.
- Log success and error messages for cleanup operations.
- Rollback session on exceptions without re-raising, as these are cleanup tasks.
- Adjust service initialization order to ensure proper setup.

* Reorder setup and cleanup tasks in database initialization process

* fix: Update type hints for settings_service in cleanup functions

* Remove execution options in cleanup functions

* Handle specific exceptions during cleanup tasks in utils.py

* Use `col` for column references in delete statements to improve SQL query clarity.
2024-11-19 15:16:36 -08:00
anovazzi1
ebe4f3470c
refactor: Improve time and use waitForSelector in globalVariables.spec.ts (#4619) 2024-11-19 14:04:08 -08:00
Ítalo Johnny
b978241d16
fix: assign orphaned flows to superuser if auto-login is enabled (#4715)
* fix: assign orphaned flows to superuser if auto-login is enabled

* fix: orphan flow naming

* fix: ruff errors

* fix: orphan flow naming (again)
2024-11-19 13:55:07 -08:00
Lucas Oliveira
c9e0d5e4ba
fix: updated node toolbar to be more stable on zoom, fix success and error component tooltips, unselect nodes on flow opening (#4610)
* Unselect nodes and edges on enter

* Start with viewport fit

* Fix run component tooltip to match error and success

* Update scrollbar design

* Added node toolbar without portal to match the width of the node

* Updated color of scrollbar

* Updated NoteNode to have same behavior as GenericNode

* Updated logic for tests to pass

* Fix fitview to only occur when nodes are present

* Update z index of resize handle

* Sticky notes test fix

* [autofix.ci] apply automated fixes

* freeze test fixed

---------

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-11-19 13:54:49 -08:00
Gabriel Luiz Freitas Almeida
ffd9eaae9f
fix: update Test Docker Images workflow to use get_version_info (#4721)
Update Docker test workflow to use get_version_info function for version retrieval
2024-11-19 21:48:37 +00:00
anovazzi1
39cec36641
fix: fix overflow for lists in markdown render (#4720)
* feat: Add support for ordered and unordered lists in ContentDisplay and ChatMessage components to prevent overflow
2024-11-19 21:28:39 +00:00
Junxi (Eric) Li
f1c00750aa
fix: correct issue with Milvus field name, renamed connection password to Token (#4453)
rename connectino password to Token
2024-11-19 12:10:39 -08:00
Jordan Frazier
e7e364eb0d
chore: add deprecation flag on base upload flow route (#4717)
* add deprecation flag on base upload flow route

* add deprecation flag on base upload flow route

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-19 12:05:23 -08:00
Gabriel Luiz Freitas Almeida
fb83af224a
chore: Add pyproject.toml configuration to ruff format command in Makefile (#4714)
* Add pyproject.toml config flag to ruff commands in Makefile

* Update ruff exclude path in pyproject.toml

* Remove unused TYPE_CHECKING import from api_key.py

* Remove redundant config flag from 'ruff check' command in Makefile
2024-11-19 19:06:01 +00:00
Cristhian Zanforlin Lousa
9e8715cf4c
fix: enhance folder download endpoint with zip file support (#4706)
* expanding download folder to zip file

* run formatter

* Update src/backend/base/langflow/api/v1/folders.py

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

* changing model to flowRead

* run formatter

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-19 18:41:37 +00:00
Gabriel Luiz Freitas Almeida
25a0d7674a
fix: update import for compatibility, format starter projects, fix coroutine call (#4708)
* Use `typing_extensions.override` for compatibility with older Python versions

* Format starter projects

* Fix async call in get_lf_version_from_pypi by adding 'await'
2024-11-19 18:17:32 +00:00
Christophe Bornet
1b39ce6f6e
ref: Make check_langflow_version async (#4701)
Make check_langflow_version async
2024-11-19 15:33:55 +00:00
Thorsten Ph.
67a9fff581
feat: Extend mongodb component with mTLS (#4591)
* Extend mongodb component with mTLS

* [autofix.ci] apply automated fixes

* fix check style errors

* [autofix.ci] apply automated fixes

* bug fix

* Update src/backend/base/langflow/components/vectorstores/mongodb_atlas.py

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

* adjustment for MyPy

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Thorsten Philipp <thorsten.philipp@msg.group>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-19 07:13:40 -08:00
Mendon Kissling
a1fa8ec1b6
fix: update Basic Prompting and Vector Store RAG notes (#4644)
* refactor: update README content and add OpenAI API key note in Basic Prompting project

* cleanup-link

* refactor: improve performance of data processing functions

* remove-astradb-setup-notenode

* text-cleanup

* test-linking

* pin-notes

* pin-load-data

* openai-key-locations

* missed-comma

* resize-basic-prompting-readme

* height-and-description-vector-rag

* selected-false

* height-styling

* height

* refactor: update README content and add OpenAI API key note in Basic Prompting project

* cleanup-link

* refactor: improve performance of data processing functions

* remove-astradb-setup-notenode

* text-cleanup

* test-linking

* pin-notes

* pin-load-data

* openai-key-locations

* missed-comma

* resize-basic-prompting-readme

* height-and-description-vector-rag

* selected-false

* height-styling

* height

* basic-prompt

* style

* vector-rag-done
2024-11-19 14:38:44 +00:00
Ítalo Johnny
d65274da78
chore: remove unnecessary target from makefile (#4702) 2024-11-19 06:20:27 -08:00
Gabriel Luiz Freitas Almeida
1aef2d8d62
chore: Update README.md with local image assets for hero and integrations sections (#4700)
* Update images for hero and integrations sections

* Update image paths in README.md to use local assets
2024-11-19 14:19:16 +00:00
Cristhian Zanforlin Lousa
35392078ff
fix: Add unique keys to Badge components in HandleTooltipComponent (#4688)
 (HandleTooltipComponent/index.tsx): add unique key to each tooltip item to prevent React warning about missing key prop
2024-11-19 06:00:20 -08:00
Cristhian Zanforlin Lousa
a76e43fd74
feat: Add post-update callback to setNode and improve node internals handling (#4696)
*  (use-handle-new-value.tsx): Introduce useUpdateNodeInternals hook from reactflow to update node internals when handling new values
♻️ (flowStore.ts): Refactor set method in useFlowStore to accept a callback function to be executed after updating nodes
📝 (flowStore.ts): Update FlowStoreType to include a callback function in the update method signature

* 📝 (flowStore.ts): add comment to explain deferring callback execution to ensure it runs after state updates are fully applied
2024-11-19 05:59:48 -08:00
anovazzi1
d28c7f4f30
fix: removes delay for running flow skeleton (#4679)
Update rendering logic for chat messages && running flow
2024-11-19 05:56:30 -08:00
Gabriel Luiz Freitas Almeida
50defedfe6
fix: add a check in ComponentToolkit to avoid building a tool that builds tools (#4678)
* Enhance tool filtering logic by adding TOOL_TYPES set for output type checking

* Rename TOOL_TYPES to TOOL_TYPES_SET for clarity
2024-11-19 13:54:47 +00:00
Edwin Jose
699ec18205
fix: add Groq Model Constants (#4689)
* upddate in groq models

groq models updated

* [autofix.ci] apply automated fixes

* Update model_input_constants.py

remove groq prefix

* Update groq.py

updated Groq Model list to be also a backup list if the API call fails, also at start.

* Update groq.py

format issue solved

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-19 05:28:34 -08:00
Jordan Frazier
50aa61826c
fix: is null sql statement (#4690)
* fix is null sql statement

* use == since linter complains about is_

* [autofix.ci] apply automated fixes

* ignore error

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-19 05:27:17 -08:00
waterstark
faee93e562
feat: make AIML load dynamically and fix minor issues (#4374)
* Added auto upgrade for list of AIML models, minor fixes for AIML component

* fix minor issues

* Fix minor issues

* Fix embeddings

* Resolve conflicts

* refactor: clean up imports and improve type hints in AIML components

* Fix import path for AIMLEmbeddingsImpl in aiml.py

* Fix update_build_config

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-19 13:27:03 +00:00
Gabriel Luiz Freitas Almeida
7614cfbac6
refactor: Remove unnecessary exception logging and improve error logging (#4676)
* Remove unnecessary exception logging in API key decryption

* Removes unnecessary exception logging in services

* fix: Change debug logging to error logging for user last login update

* fix: Enhance error logging to include exception details in various services
2024-11-19 12:24:42 +00:00
Eric Hare
6133fed90a
fix: Ensure the service selection comes before the choice (#4692)
* fix: Ensure the service selection comes before the choice

* Update components-vector-stores.md
2024-11-19 01:44:42 +00:00
anovazzi1
e6cd335b1c
refactor: time and use waitForSelector in filterSidebar.spec.ts (#4609)
* refactor: Improve time and use waitForSelector in filterSidebar.spec.ts

* refactor: Improve time and use waitForSelector in filterSidebar.spec.ts
2024-11-18 17:08:26 -08:00
anovazzi1
4965971901
refactor: Improve performance in logs.spec.ts and format code (#4671)
* improve performance in logs

* format code
2024-11-18 17:08:04 -08:00
Eric Hare
2fa258068d
fix: CrewAI-based flows with no extra openai (#4683)
* fix: CrewAI-based flows with no extra openai

* [autofix.ci] apply automated fixes

* Clean up the location of the crewai model processing

* [autofix.ci] apply automated fixes

* Properly subclass the tasks and agents method

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-18 23:04:07 +00:00
Eric Hare
31885175e5
feat: Add support for dynamic providers in Astra DB Comp (#4627)
* feat: Add support for dynamic providers in Astra DB Comp

* [autofix.ci] apply automated fixes

* Make sure we return a default dict

* Rename params in starter template

* Update test_vector_store_rag.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-18 22:42:15 +00:00
anovazzi1
cd2517f7e2
refactor: improve tests for group and keyBoardComponentSearch tests (#4621)
* refactor: Remove unnecessary wait in group.spec.ts

* refactor: Improve keyboard component search tests

Improve the keyboard component search tests by using waitForSelector instead of waitForTimeout for better reliability and stability.
2024-11-18 14:09:24 -08:00
Edwin Jose
3d768ea041
fix: make provider switching work by setting attributes on SecretStrInput for Agent Component Inputs (#4643)
* Refactor `process_inputs` function to handle `SecretStrInput`

- Reset `value` and disable `load_from_db` for `SecretStrInput` instances.

* [autofix.ci] apply automated fixes

* Update model_input_constants.py

Optimize input processing for speed improvements

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-18 13:18:33 -08:00
anovazzi1
a0cd179258
refactor: Improve time and use waitForSelector in folder tests (#4614)
* refactor: Improve time and use waitForSelector in folder tests

* add comment for documentation

* Refactor componentHoverAdd test to use opacity check instead of exact value
2024-11-18 13:03:06 -08:00
Deon Sanchez
b9ffce2a8f
fix: Update background color in FlowMenu dropdown (#4681)
Updated the background color in the FlowMenu dropdown to match the dark theme background. This ensures a consistent and visually appealing user experience.

Refactor the code in `src/frontend/src/components/appHeaderComponent/components/FlowMenu/index.tsx` to change the `DropdownMenuContent` class from `bg-white` to `bg-background`.
2024-11-18 20:43:11 +00:00
Gabriel Luiz Freitas Almeida
160409d19c
refactor: Enhance migration script with column existence check and improved error handling (#4680)
* Enhance migration script with column existence check and improved error handling

* Refactor migration script to use `column_exists` with explicit parameters
2024-11-18 20:21:58 +00:00
Jonathan Kurten
64ac6dd9d9
fix: update hero and integrations image in readme (#4628)
* Update hero and integrations image in readme

* Fix border radius on hero asset

---------

Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
2024-11-18 10:43:19 -08:00
Edwin Jose
c3dbabbd35
feat: add latest models to Google Generative AI, Anthropic Models (#4685)
* updated models

models updates

* Update google_generative_ai_constants.py

formatting
2024-11-18 18:36:35 +00:00
Mendon Kissling
8bb9c015a3
Docs: upgrade and pin docusaurus to v3.5.2 (#4646)
* fix: Update Docusaurus dependencies to version 3.5.2

* upgrade-docusaurus-packages
2024-11-18 18:00:05 +00:00
Cristhian Zanforlin Lousa
50ac92dda4
docs: add icons component with lucide-react integration (#4682)
*  (package.json): add lucide-react package to dependencies for using Lucide icons in the project
 (index.tsx): create a new Icon component to render Lucide icons with specified name, size, and color properties

* ♻️ (package.json): remove lucide-react dependency as it is no longer needed in the project

* ⬆️ (package.json): upgrade lucide-react dependency to version 0.460.0
2024-11-18 09:55:02 -08:00