Commit graph

14,553 commits

Author SHA1 Message Date
Eric Hare
9f3663e560
fix: Update components-loaders.md for accuracy with Unstructured (#5014) 2024-12-02 22:20:18 +00:00
Eric Hare
7a74c01a4b
fix: update vector RAG flow for Astra DB comp changes (#5006) 2024-12-02 20:11:44 +00:00
Lucas Oliveira
008c65b6b7
docs: update docs for global variables page and security (#4878)
* Added best practices document

* Refactored global variables page

* added category

* move-security-page

* link

* Removed title from Security Best Practices

* Avoid empty headings

* Sentence case for headings

* Remove general best practices not related to Langflow

* Add bulleted list instead of numbered list

* changed default secret locations to use the default secret key locations

* Add periods on end of sentences

* Changed title to be imperative

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-12-02 19:32:57 +00:00
Eric Hare
19d2974904
feat: Support for Autodetect in AstraDBVectorStore settings (#4869)
* feat: first pass at autodetect updates

* [autofix.ci] apply automated fixes

* Fully support autodetect

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-12-02 16:37:14 +00:00
Phil Miesle
269bc8fa63
allowing Server File Path to be Message or Data (#4995)
* allowing Server File Path to be Message or Data

* [autofix.ci] apply automated fixes

* Ruff check updates

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
2024-12-02 16:27:48 +00:00
Cristhian Zanforlin Lousa
4b5c956dbe
feat: add NvidiaIcon component to support dark mode (#4994)
*  (Nvidia): Add support for dark mode in Nvidia icon by using useDarkStore hook to determine fill color based on dark mode state

* ♻️ (index.tsx): remove unnecessary console.log statement from CustomInputPopover component
2024-12-02 16:17:39 +00:00
dependabot[bot]
6f8eaf3c13
build(deps): bump astral-sh/setup-uv from 3 to 4 (#4975)
build(deps):(deps): bump astral-sh/setup-uv from 3 to 4

Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 4.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](https://github.com/astral-sh/setup-uv/compare/v3...v4)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 12:35:28 +00:00
dependabot[bot]
b8e52f18b5
build(deps):(deps): bump autofix-ci/action from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c (#4973)
build(deps):(deps): bump autofix-ci/action

Bumps [autofix-ci/action](https://github.com/autofix-ci/action) from dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a to ff86a557419858bb967097bfc916833f5647fa8c.
- [Release notes](https://github.com/autofix-ci/action/releases)
- [Commits](dd55f44df8...ff86a55741)

---
updated-dependencies:
- dependency-name: autofix-ci/action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 12:29:53 +00:00
dependabot[bot]
cc1a5efe92
build(deps):(deps): bump Namchee/conventional-pr from 0.15.4 to 0.15.5 (#4974)
Bumps [Namchee/conventional-pr](https://github.com/namchee/conventional-pr) from 0.15.4 to 0.15.5.
- [Release notes](https://github.com/namchee/conventional-pr/releases)
- [Commits](https://github.com/namchee/conventional-pr/compare/v0.15.4...v0.15.5)

---
updated-dependencies:
- dependency-name: Namchee/conventional-pr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-02 04:27:52 -08:00
Rodrigo Nader
2a9396d68e
Refactor youtube transcripts for proper tool mode 2024-12-01 01:16:21 -03:00
Cristhian Zanforlin Lousa
d0c93992d8
fix: prevent a glitch displaying run duration (#4951) 2024-11-30 20:08:53 +00:00
Gabriel Luiz Freitas Almeida
cd3848661a
fix: allow passing curly braces in messages to the Agent component (#4960) 2024-11-30 18:39:08 +00:00
Mike Fortman
d49a1b24b5
refactor: Feature flag custom chat icons and custom banner spacing changes to stay in sync with DataStax Langflow (#4845)
fix chat icons and custom banner spacing
2024-11-30 18:31:43 +00:00
Gabriel Luiz Freitas Almeida
ee37ce04ef
fix: Handle DataFrame serialization and export in langflow.io (#4956) 2024-11-30 18:15:03 +00:00
Gabriel Luiz Freitas Almeida
2f6e4582e8
chore: Remove HAR files from the repository (#4935) 2024-11-30 15:11:00 -03:00
Cristhian Zanforlin Lousa
ce12ac096c
feat: Add toolset component utilities and refactor tool mode handling (#4946) 2024-11-30 18:10:36 +00:00
Soham
9cee720365
fix: composio component not updating config state on refresh (#4910)
* fix: not changing config state on refresh

* [autofix.ci] apply automated fixes

* fix ruff check

* fix:reverted change in cloudflare

* fix:removed unused code

* [autofix.ci] apply automated fixes

* removed commented code

* [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>
2024-11-29 16:34:49 -05:00
Gabriel Luiz Freitas Almeida
243dd9da0c
ci: Add GitHub Actions workflow to store pytest durations once a day (#4937)
Add GitHub Actions workflow to store pytest durations

This commit introduces a new workflow that runs pytest and stores test durations. The workflow is scheduled to run daily at 6:30 UTC and includes steps for setting up the environment, restoring cache, running tests, and creating a pull request to update the test durations file automatically.
2024-11-29 21:09:13 +00:00
anovazzi1
f313bd248a
fix: Add icon SQLDatabaseComponent (#4756)
* refactor: Add icon to SpiderTool class in spider.py

* refactor: Add icon to SQLDatabaseComponent class in sql_database.py

* remove langchain icon in spider component
2024-11-29 20:50:59 +00:00
Gabriel Luiz Freitas Almeida
df7ee68210
fix: update sort logic to handle cycles when running component (#4957)
fix: handle cycle scenario by adjusting stop component logic in graph sorting

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-29 17:30:02 -03:00
Ítalo Johnny
22482d7258
fix: update temperature input type and set min/max values (#4939)
* fix: update input type and define its min and max values

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-29 20:02:50 +00:00
anovazzi1
a30298f0e3
Refactor: remove timeouts and update selectors in linkComponent.spec.ts (#4917)
* fix: update timeouts and selectors in linkComponent.spec.ts
2024-11-29 17:24:55 +00:00
anovazzi1
5e2becdf32
refactor: improve timeouts for textAreaModalComponent (#4926)
refactor: Improve reliability and performance of keyPairListComponent.spec.ts test
2024-11-29 17:15:38 +00:00
anovazzi1
da09c6a2a1
Refactor: inputComponent.spec.ts to improve performance (#4858)
Refactor inputComponent.spec.ts to improve performance
2024-11-29 17:06:53 +00:00
anovazzi1
fd399e9692
fix: Update promptModalComponent.spec.ts to use waitForSelector instead of waitForTimeout (#4920)
- Replaced the usage of waitForTimeout with waitForSelector in promptModalComponent.spec.ts to improve reliability and stability of the tests.
2024-11-29 16:58:26 +00:00
anovazzi1
ae7401bf7b
refactor: Improve keyPairListComponent.spec.ts test reliability and performance (#4906)
This commit refactors the keyPairListComponent.spec.ts file to improve the reliability and performance of the tests. It replaces the usage of `waitForTimeout` with `waitForSelector` to ensure that the necessary elements are present before proceeding with the test. This change enhances the stability and efficiency of the test suite.
2024-11-29 13:47:54 -03:00
anovazzi1
f8c9ac3289
Refactor: Update Data class to handle different types of text inputs (#4938)
The Data class in the langflow schema has been updated to handle different types of text inputs. Previously, the page_content attribute was expected to be a string, but now it can also accept other types. If the input is already a string, it is used as is. Otherwise, it is converted to a string before being assigned to the page_content attribute of the Document object.

This change improves the flexibility and robustness of the Data class, allowing it to handle a wider range of input types.
2024-11-29 13:45:30 -03:00
anovazzi1
0240315020
Refactor: improve dropdownComponent (#4855)
Refactor dropdownComponent.spec.ts to improve code readability and reliability
2024-11-29 15:57:21 +00:00
Ítalo Johnny
3ed44430ef
test: re-enable unit test (#4455) 2024-11-29 13:23:50 +00:00
Gabriel Luiz Freitas Almeida
c99f2a35bd
fix: adds better boolean check for DataFrame and fixes output display (#4933)
* feat: Add DataFrameInput to inputs module

* feat: add DataFrame support and refactor array processing

* feat: add truth value testing for DataFrame class

* refactor: remove Python 2 compatibility method from DataFrame class
2024-11-28 17:58:50 -03:00
anovazzi1
438c3afdc9
Improve test reliability and performance in toggleComponent.spec.ts (#4927)
refactor: Improve test reliability and performance in toggleComponent.spec.ts
2024-11-28 20:01:58 +00:00
Christophe Bornet
c816832b44
fix: Use async_open in a few places (#4929)
Use async_open in a few places
2024-11-28 18:06:01 +00:00
anovazzi1
877d4dc0ed
Refactor: Improve performance of sliderComponent tests (#4923) 2024-11-28 17:41:52 +00:00
anovazzi1
17560245e2
Refactor: codeAreaModalComponent.spec.ts for improved test readability and maintainability (#4928)
* refactor: Update codeAreaModalComponent.spec.ts to improve test readability and maintainability

* [autofix.ci] apply automated fixes
2024-11-28 17:33:05 +00:00
Lucas Oliveira
79e3d3f50d
fix: removed beta from current date (#4901)
* Removed beta from current date

* [autofix.ci] apply automated fixes

* refactor: improve error message handling in CloudflareWorkersAIEmbeddings

* Fix filter sidebar test

---------

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-28 09:02:15 -08:00
anovazzi1
8b04954a0e
Refactor: Update TableOptions component to add data-testid attributes for buttons (#4925)
* Refactor: Update TableOptions component to add data-testid attributes for buttons

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-28 09:00:52 -08:00
Lucas Oliveira
dc87faa7a1
fix: update cards quantity (#4905)
* Fixed constants to follow new page size

* Fixed page size to be consistent with 3 columns being shown
2024-11-28 16:40:00 +00:00
Gabriel Luiz Freitas Almeida
f10dc27dfc
refactor: Remove load_from_db attribute from FIELD_FORMAT_ATTRIBUTES (#4884)
refactor: remove load_from_db attribute from template fields
2024-11-28 16:21:15 +00:00
Cristhian Zanforlin Lousa
ac69be2e8a
Fix: Disable the ComponentAsTool shortcut when the component code does not have tool_mode=True + regression tests (#4918)
 (index.tsx): Add convertTestName function to generate data-testid attribute dynamically based on display_name
🔧 (use-shortcuts.tsx): Pass hasToolMode parameter to handleToolModeWShortcut function to conditionally activate tool mode
🔧 (index.tsx): Pass hasToolMode prop to NodeToolbarComponent to enable/disable tool mode functionality
🔧 (Vector Store.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
🔧 (general-bugs-component-as-tool-shortcut.spec.ts): Import and use extractAndCleanCode function to extract and clean code content
📝 (extract-and-clean-code.ts): Add utility function extractAndCleanCode to extract and clean code content from HTML page
2024-11-28 16:14:54 +00:00
anovazzi1
89e2224158
Refactor: update keyPairListComponent.spec.ts to improve test reliability and performance (#4874)
Refactor keyPairListComponent.spec.ts to improve test reliability and performance
2024-11-28 16:03:13 +00:00
Lucas Oliveira
652de10e9d
fix: edit toggle size to be consistent (#4903)
Fix editNode toggle side to be consistent
2024-11-28 15:45:09 +00:00
anovazzi1
e777e397b9
Refactor: update nestedComponent test to improve performance (#4919)
fix: update nestedComponent test to use explicit timeouts

The nestedComponent test was updated to use explicit timeouts when waiting for certain elements to appear. This ensures that the test waits for the elements to be present before proceeding, preventing any potential race conditions or flakiness in the test results.
2024-11-28 11:58:04 -03:00
anovazzi1
29e5ddc0f6
fix: Update NodeToolbarComponent to use setErrorData instead of setNoticeData (#4892)
Refactor: Update NodeToolbarComponent to use setErrorData instead of setNoticeData
2024-11-28 14:30:07 +00:00
Gabriel Luiz Freitas Almeida
712a43958c
fix: updates file size limit to use middleware and add tests for uploads (#4883) 2024-11-28 12:25:26 +00:00
Lucas Oliveira
1ec1a704dd
fix: add padding to global variables input (#4900)
* Fixed padding for badges on input component

* Removed border from emerald badge
2024-11-28 04:15:05 -08:00
Lucas Oliveira
42f8c4b20f
fix: update minimized component outdated design (#4896)
* Fix nodeStatus to show only when showNode is true

* Removed unused classes and made update not appear wrong on minimized components
2024-11-28 04:06:23 -08:00
Lucas Oliveira
2eec720a0c
fix: auto fix starter projects (#4907)
auto fix starter projects
2024-11-28 04:05:44 -08:00
Luis Felipe Salazar Ucros
cfc5365b73
feat: add sambanova component (#4908)
* feat: add sambanova component

* update param name

* add multimodal models

* feat: add sambanova icon

* feat: add sambanova

* feat: format

* feat: add sambanova import

* feat: add sambanova

* feat: add sambanova docs
2024-11-28 04:05:32 -08:00
Cristhian Zanforlin Lousa
109b1acd03
docs: standardize environment variable configuration instructions in authentication docs (#4880)
* 📝 (configuration-authentication.md): Improve formatting and readability of authentication configuration documentation. Add note recommending the use of a .env file for setting variables for security and maintainability.

* remove-export-note

---------

Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
2024-11-28 01:34:24 +00:00
Siavash Safi
5307f0683f
feat: add cloudflare workers ai embeddings (#3697) 2024-11-28 00:45:48 +00:00