Commit graph

15,098 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
f49feef92b
chore: Bump langflow and langflow-base versions (#5972)
chore: bump langflow and langflow-base to version 1.1.3
2025-01-28 14:02:23 +00:00
Mattias Michaux
6aa4f9cc6a
fix: use correct json load method when loading flow from file (#5936)
load json from string instead of file
2025-01-28 13:37:10 +00:00
github-actions[bot]
2d3bfbc6fb
chore: update test durations (#5968)
Co-authored-by: ogabrielluiz <24829397+ogabrielluiz@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-01-28 13:14:32 +00:00
Eric Hare
76764b52d8
fix: Allow basic Astra DB Collection creation in combobox (#5958)
* fix: Allow basic creation colleciton in combobox

* [autofix.ci] apply automated fixes

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

* Add new collection to list if created

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-28 12:42:41 +00:00
Raphael Valdetaro
cc592e8ad1
feat: add deepseek-r1-distill-llama-70b to Groq (#5970)
* feat: add deepseek-r1-distill-llama-70b to Groq

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-28 12:39:44 +00:00
Gabriel Luiz Freitas Almeida
fb0696c526
feat: Add text key option to CSVToDataComponent (#5935)
Enhance CSV to Data component by introducing a configurable text key parameter, allowing users to specify the column used for text extraction when converting CSV data to Data objects.
2025-01-28 12:35:05 +00:00
Cristhian Zanforlin Lousa
f6c8750d15
fix: handle undefined data.outputs and outputName params in log utility functions (#5928)
🐛 (utils.ts): Fix logic in logHasMessage, logTypeIsUnknown, and logTypeIsError functions to correctly handle cases where outputs may be undefined or empty arrays.
2025-01-28 12:28:38 +00:00
Gabriel Luiz Freitas Almeida
0ef54c5ad9
fix: Ensure importability of modules not included in __init__.py files (#5965)
* fix: ensure that modules not included in __init__.py files are importable

* test: add test for module import in custom component
2025-01-28 12:18:40 +00:00
Gabriel Luiz Freitas Almeida
ea2685fb83
fix: remove reference to a non-existent method in NvidiaRerankComponent (#5957)
Removing reference to nonexistent method

Co-authored-by: brian.ogrady@datastax.com <brian.ogrady@datastax.com>
2025-01-27 15:53:05 +00:00
github-actions[bot]
e8879ff79f
chore: update test durations (#5951)
Co-authored-by: ogabrielluiz <24829397+ogabrielluiz@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-01-27 14:24:33 +00:00
Edwin Jose
410d16f997
fix: fixes AgentExecutor handle greyed out (#5900)
* Update styleUtils.ts

* 📝 (index.css): update color values for datatype-purple and datatype-purple-foreground to improve design consistency

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
2025-01-27 14:22:21 +00:00
Gabriel Luiz Freitas Almeida
d459fc1827
chore(deps): upgrade litellm from 1.54.1 to 1.59.8 (#5952) 2025-01-27 12:32:44 +00:00
Eric Hare
f84033f9e6
fix: don't require embedding model in case astra db token lacks perms (#5926)
* fix: don't require embedding model in case astra db token lacks perms

* [autofix.ci] apply automated fixes

* Skip databases that fail on collection lookups

* [autofix.ci] apply automated fixes

* Update astradb.py

* [autofix.ci] apply automated fixes

* Update Vector Store RAG.json

* [autofix.ci] apply automated fixes

* Fix dynamic inputs

* [autofix.ci] apply automated fixes

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

* Update template

* [autofix.ci] apply automated fixes

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

* Add more descriptive variables for update build config

* [autofix.ci] apply automated fixes

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

* Add updated vector rag template

* [autofix.ci] apply automated fixes

* One more template update

* Fix api endpoint selector

* Some additional comments

* [autofix.ci] apply automated fixes

* One more template tweak

* Slight tweak to reactivity

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-27 11:56:47 +00:00
Ítalo Johnny
5c64e5997a
fix: env-file loading (#5918)
* fix: premature execution of MCP router logic

* style: remove comment

* chore: move import statement inside the condition

* fix: mypy error valid-type
2025-01-24 21:40:34 +00:00
Mendon Kissling
0d11564dea
docs: v1.1.2 (#5850)
* docs:add-changelog-to-nav

* docs: add OpenRouter component documentation with detailed inputs and outputs

* docs: add Outputs section to components-models documentation for Cohere and Ollama

* docs: update references from configuration-objects to concepts-objects across multiple components and documentation files

* feat: Add DataFrame operations section to components-processing documentation

* title-case-in-nav

* fix-memories-tab-in-chat-memory

* tool-calling-agent-update

* feat: enhance documentation with icon imports and improved instructions for OpenAI component

* material-icon

* fix: update documentation for tool mode input connection in agent component

* add-loop-component

* add-img-for-loop-summary

* feat: add documentation for using logic components in a flow with examples

* fix: enhance documentation for Loop component with detailed data flow explanation

* redirect-for-config-objects-page

* fix: improve error handling in data processing module

* fix: update documentation for Data objects in Loop component and add import statement in memory chatbot tutorial

* quickstart-screenshots

* docs: update starter flow images

* update-agent-screenshots

* move-repl-agent

* docs: enhance global variables documentation and clarify prerequisites for vector store RAG flow

* docs: update Simple Agent to use URL component

* docs: enhance memory chatbot tutorial with example conversation and clarify session ID terminology

* docs: update visibility icon description in concepts-components.md

* Apply suggestions from code review

Co-authored-by: brian-f <brian.fisher@datastax.com>

* correct-playground-sequence-and-typo

---------

Co-authored-by: brian-f <brian.fisher@datastax.com>
2025-01-24 14:24:57 +00:00
dependabot[bot]
3e835632df
chore(deps): bump undici from 6.21.0 to 6.21.1 in /docs (#5907)
Bumps [undici](https://github.com/nodejs/undici) from 6.21.0 to 6.21.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.0...v6.21.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-01-24 13:52:22 +00:00
github-actions[bot]
7b6c0be380
chore: update test durations (#5909)
Co-authored-by: ogabrielluiz <24829397+ogabrielluiz@users.noreply.github.com>
2025-01-24 13:43:15 +00:00
Gabriel Luiz Freitas Almeida
76a3a2a461
chore: bump langflow-base in langflow (#5913) 2025-01-24 04:17:50 -08:00
Gabriel Luiz Freitas Almeida
4580685a1c
chore: bump langflow and langflow-base (#5912) 2025-01-24 03:52:27 -08:00
Gabriel Luiz Freitas Almeida
30bcf5ecb4
ci: Update Python version defaults in CI workflows (#5911) 2025-01-24 03:32:04 -08:00
Gabriel Luiz Freitas Almeida
eff5eb6af2
fix: remove lock from log transaction handling in Vertex (#5906) 2025-01-24 03:26:47 -08:00
Cristhian Zanforlin Lousa
248de836bb
fix: improve modal z-index and keyboard event handling (#5898)
📝 (NodeOutputfield/index.tsx): Add styleClasses property with value "z-40" to improve styling
📝 (outputModal/index.tsx): Add className property with value "z-50" to improve styling
📝 (textModal/index.tsx): Add handleEscapeKeyDown function to handle escape key event and close modal
2025-01-24 11:14:31 +00:00
anovazzi1
312d5f6a81
feat: Add ScrapeGraph icon component (#5903)
* feat: Add ScrapeGraph icon component

This commit adds a new icon component called ScrapeGraph. It is a forwardRef component that renders the ScrapeGraphAI icon. The component is added to the list of sidebar bundles and can be used to display the ScrapeGraph icon in the UI.

* refactor: Update ScrapeGraph bundle name

* [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-01-24 02:19:54 +00:00
Mendon Kissling
aee8d0c680
chore: Update Docusaurus and OpenAPI dependencies to latest versions (#5905) 2025-01-24 02:11:02 +00:00
Gabriel Luiz Freitas Almeida
55c9ee2eb2
fix: improve task management in _log_transaction_async to avoid database locks (#5896)
* refactor: Update _log_transaction_async to be asynchronous and improve task management

- Changed _log_transaction_async method from synchronous to asynchronous to allow proper handling of transaction logging.
- Added error handling for task cancellation and ensured that pending tasks are managed correctly.
- Updated calls to _log_transaction_async in the ComponentVertex class to await the asynchronous method, ensuring proper flow execution and error handling.

* refactor: Simplify _log_transaction_async method by removing redundant error handling

- Streamlined the _log_transaction_async method to enhance readability and maintainability.
- Removed unnecessary try-except blocks for task cancellation, as the async context already handles task management effectively.
- Ensured that completed tasks are awaited and cleared properly, improving overall task management.

* fix: Correctly handle vertex build response in asynchronous flow construction

- Moved the retrieval of the vertex build response to occur after awaiting the build task, ensuring proper handling of task completion.
- Improved error handling by maintaining the cancellation logic while ensuring the response is only accessed after the task is completed.
- This change enhances the reliability of the flow construction process in the chat API.

* fix: Improve task management in Vertex class by refining log transaction handling

- Updated the log transaction handling in the Vertex class to await a single task instead of gathering all tasks, enhancing efficiency.
- Removed the clearing of the task list, ensuring that only the most recent task is processed, which simplifies the task management logic.
- This change aims to improve the reliability and performance of asynchronous logging in the flow execution.

* refactor: Comment out log transaction handling in Vertex class for future review
2025-01-23 23:03:10 +00:00
Eric Hare
5910638c9c
fix: Expose API Endpoint when no DB list access in Astra (#5886)
* fix: Expose API Endpoint when no DB list access in Astra

* [autofix.ci] apply automated fixes

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

* Update starter template

* [autofix.ci] apply automated fixes

* Update Vector Store RAG.json

* Update astradb.py

* [autofix.ci] apply automated fixes

* Update astradb.py

* [autofix.ci] apply automated fixes

* Update astradb.py

* [autofix.ci] apply automated fixes

* Small update to dropdown for OSS

* [autofix.ci] apply automated fixes

* fix: Don't delete value when refreshing db list

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-23 21:38:13 +00:00
Gabriel Luiz Freitas Almeida
d035e41e63
fix: Update 'advanced' flag for concurrency multithreading and data input in FileComponent (#5901)
* fix: Update 'advanced' flag for concurrency multithreading and data input in file components

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-23 20:23:00 +00:00
Lucas Oliveira
07bf8311bb
fix: errors exhibition and printing (#5892)
* Added onBuildError to error case on buildVertices

* add onBuildError just if there's no source

* refactor: Update markdown rendering in alert components

* Fixed list on error

* Fixed md exibition of error

* Fixed exibition for component erorrs

* Made errors be generated with the correct map

* Removed markdown from unused places

* Update src/frontend/src/utils/buildUtils.ts

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>

* Update src/frontend/src/utils/buildUtils.ts

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2025-01-23 19:31:07 +00:00
Gabriel Luiz Freitas Almeida
22e24fa718
fix: Fix tool mode retrieval in frontend node template update (#5884) 2025-01-22 18:41:40 -08:00
Gabriel Luiz Freitas Almeida
f5929fe58e
fix: ensure string timestamps are converted to UTC in MessageTable model (#5881) 2025-01-22 18:00:36 -08:00
Gabriel Luiz Freitas Almeida
eedabbe50f
fix: make sure tool mode is not lost on component validation (#5875) 2025-01-22 18:00:24 -08:00
Gabriel Luiz Freitas Almeida
ec7e76cc7b
fix: Incorporate DEFAULT_IMPORT_STRING for dynamic class creation and clean up unused function (#5882) 2025-01-22 17:59:11 -08:00
Eric Hare
c479615b1b
fix: Allow specification of api endpoint as fallback when token lacks permissions (#5879)
* fix: Allow direct specification of api_endpoint on oss

* Update astradb.py

* Update Vector Store RAG.json

* Add vector store rag template updates

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-22 23:59:03 +00:00
Eric Hare
220727a1f9
Fix: Ensure compatibility with DSLF Overlays in Astra DB Component (#5876)
* fix: address DSLF issues with Astra DB component

* Update Vector Store RAG.json

* [autofix.ci] apply automated fixes

* Update astradb.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-22 20:31:02 +00:00
anovazzi1
1df53a87f4
Fix: update initial graph sort for disconnected graph (#5867)
* refactor: add test for sorting vertices in unconnected graph

Add a new test case to the `test_get_sorted_vertices_with_unconnected_graph` function in the `test_utils.py` file. This test verifies the correct sorting of vertices in an unconnected graph. The test defines a graph structure and checks that the first layer contains the input vertices and the remaining layers contain the rest of the vertices in the correct order.

Refactor the code to improve test coverage and ensure the correctness of the sorting algorithm.

* refactor: improve handling of unconnected vertices in graph sorting

* [autofix.ci] apply automated fixes

* Refactor: Update start_component_id in test_get_sorted_vertices_with_unconnected_graph

The start_component_id parameter in the test_get_sorted_vertices_with_unconnected_graph function was updated to "A" to improve the handling of unconnected vertices in graph sorting.

* Refactor: Improve handling of unconnected vertices in graph sorting

* [autofix.ci] apply automated fixes

* Refactor: Add test_filter_vertices_from_vertex function to test_utils.py

* Refactor: Add error handling for missing graph information in filter_vertices_up_to_vertex and filter_vertices_from_vertex functions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-22 20:27:23 +00:00
xuyingjie
33ba516e48
fix: session list overflow when there are many list items. (#5832)
Co-authored-by: xuyingjie <xuyingjie@unipus.cn>
2025-01-22 20:23:42 +00:00
Marco Vinciguerra
dc8e40cb2d
feat: integration of scrapegraph apis (#5551)
* feat: integration of scrapegraph apis

* feat: refactoring of descriptions

* udpate uv lock

* [autofix.ci] apply automated fixes

* pyproject update

* did make format_backend

---------

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-01-22 20:16:58 +00:00
Edwin Jose
8108d6fc13
fix: fixes date time issue, which was blocking run flow execution of agent flows (#5866)
* fixes PydanticSerializationError

fixes:
    PydanticSerializationError: Error calling function `serialize_model`: TypeError: tz_convert() takes exactly 2 positional arguments (1 given)

* format

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/api/v1/schemas.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-01-22 19:56:20 +00:00
Edwin Jose
cfe265337a
fix: fixes model refresh issues conflicting with build config updates, setting real time fresh false to persist model selection (#5868)
* add combobox and set realtime refresh to false

* [autofix.ci] apply automated fixes

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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-22 19:04:28 +00:00
Gabriel Luiz Freitas Almeida
79844fc54b
fix: make with_session rollback only on SQLAlchemy errors (#5865)
* fix: remove unnecessary session commit in DatabaseService

* fix: improve error logging in DatabaseService session management

* fix: enhance error handling in DatabaseService session management by specifying SQLAlchemyError
2025-01-22 18:53:24 +00:00
Edwin Jose
229ba19a66
feat: add WikiData Component and depeciates the WikiData API tool component (#5872)
* update

* [autofix.ci] apply automated fixes

* Update test_wikidata_api.py

* [autofix.ci] apply automated fixes

* Update wikidata.py

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-22 18:30:01 +00:00
Edwin Jose
dcd68c5f4e
feat: adds Wikipedia Component and deprecates the wikipedia API tool component (#5871)
* update

* Update test_wikipedia_api.py

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/tools/wikipedia.py

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

* Update test_wikipedia_api.py

* [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-01-22 18:29:53 +00:00
Dmitry
f20d721213
docs: Fix incorrect article form in French text Update README.FR.md (#5858) 2025-01-22 17:47:21 +00:00
Lucas Oliveira
1f004560ec
fix: loop error condition and edge design (#5869)
* Changed math to show better edge when loop source is on the left side of the target

* Added logic to only allow loops if it comes from a loop edge

* Removed unused console log
2025-01-22 17:12:25 +00:00
Vinícios Batista da Silva
bfdb2fd90e
feat(openai): make api_key field required on OpenAI Model (#5854)
* feat(openai): make api_key field required

- Add required=True to api_key field in OpenAI model component
- Ensure proper authentication by making API key mandatory

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

* [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-01-22 15:23:29 +00:00
github-actions[bot]
c9d5b6f9f3
chore: update test durations (#5857)
Co-authored-by: ogabrielluiz <24829397+ogabrielluiz@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-01-22 15:19:57 +00:00
Gabriel Luiz Freitas Almeida
4ff34b6cc9
fix: make sure graph build errors bubble up to the frontend (#5864)
fix: Add handling for None value in validate_source method to return default Source instance
2025-01-22 15:14:37 +00:00
Mattias Michaux
cdf85e55de
fix: add the git binary to the final step of the container images (#5863)
Add the git binary to the runtime images
2025-01-22 15:07:34 +00:00
Cristhian Zanforlin Lousa
c01452f890
refactor: adjust SliderComponent spacing and typography (#5836)
🐛 (sliderComponent/index.tsx): adjust styling to fix alignment issue with input element in SliderComponent

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2025-01-22 14:37:25 +00:00
Gabriel Luiz Freitas Almeida
16448e4247
ci: Automatically close existing PRs for test duration updates (#5852)
ci: add step to close existing PRs before creating a new one for test duration updates

- Introduced a new step in the GitHub Actions workflow to automatically close any open pull requests titled "chore: update test durations" before creating a new pull request.
- This change ensures that only one pull request for updating test durations is active at a time, streamlining the workflow and reducing potential merge conflicts.
2025-01-22 13:10:45 +00:00