Commit graph

13,696 commits

Author SHA1 Message Date
Himanshu Dixit
b4e550bbfc
fix: composio ux flow (#3529)
* feat: revert composio fix

* [autofix.ci] apply automated fixes

* feat: run format

* feat: add suggested change

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-23 11:08:06 -07:00
Gabriel Luiz Freitas Almeida
d9a9401e3b
fix: ensure cache is set for graph in build flow (#3531)
added a condition to set the cache for the graph when it is built.

this ensures that the latest graph state is stored in the chat service.
2024-08-23 10:08:38 -07:00
Gabriel Luiz Freitas Almeida
189ef4147d
fix: update serialization and improve error handling (#3516)
* feat(utils): add support for V1BaseModel in serialize_field

Add support for V1BaseModel instances in the serialize_field function by
checking for a "to_json" method. If the method is not present, return the
attribute values as a dictionary.

* refactor: Update field serializer function and error handling in build_flow function
2024-08-23 06:30:42 -07:00
Gabriel Luiz Freitas Almeida
7e7d5a1a1c
refactor: improve metric creation logic and silence ot warnings (#3207)
refactor(opentelemetry.py): enhance metric creation logic warnings and improved metric handling methods
2024-08-23 12:51:36 +00:00
Ítalo Johnny
8e733ce580
fix: build version notification function (#3527)
fix: added try/except block to version notification function
2024-08-23 09:15:54 -03:00
Himanshu Dixit
b623854ac1
feat: bump composio version in pyproject (#3510)
* feat: bump composio version

* [autofix.ci] apply automated fixes

* chore(poetry.lock): update Poetry version from 1.8.2 to 1.8.3
chore(poetry.lock): remove milvus_lite-2.4.9-py3-none-manylinux2014_aarch64.whl package from lock file

* [autofix.ci] apply automated fixes

* fix(poetry.lock): update Poetry version from 1.8.2 to 1.8.3 to reflect the actual version used

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-23 11:59:14 +00:00
hotamago
2896c72e99
feat: Enhance Chroma Handling, Bug Fixes & add GoogleGenerativeAIEmbeddingsComponent (#3476)
* Update Chroma.py

* Update utils.py

* Create GoogleGenerativeAIEmbeddings.py

* Update __init__.py

* Update GoogleGenerativeAIEmbeddings.py

* [autofix.ci] apply automated fixes

* Update src/backend/base/langflow/components/embeddings/GoogleGenerativeAIEmbeddings.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>
2024-08-23 04:45:13 -07:00
Gabriel Luiz Freitas Almeida
4e15090927
fix: check if variable is valid before converting (#3514)
* feat: Add logging and session imports to endpoints.py

Import logging and session modules for better error handling and database interaction in endpoints.py.

* refactor: Improve custom component parameter handling in update endpoint

* feat: Add parse_value function to parse values based on input type

Add a new function `parse_value` to `utils.py` that parses values based on the input type provided. The function handles different input types such as 'IntInput' and 'FloatInput' to ensure proper parsing.

* feat: Refactor custom_component_update() to use parse_value utility function

Use parse_value utility function to handle different input types and empty values in custom_component_update() for better readability and maintainability.
2024-08-22 21:27:36 +00:00
Gabriel Luiz Freitas Almeida
9d5f97acf2
chore: remove locust dependency (#3513)
Remove it so we don't have flask-cors as a dependency because of a vulnerability
2024-08-22 20:44:05 +00:00
Gabriel Luiz Freitas Almeida
a98e07e1a2
feat: Update project name retrieval in LCModelComponent and CustomComponent (#3506)
Return the project name using get_project_name method in both classes.
2024-08-22 19:13:22 +00:00
Gabriel Luiz Freitas Almeida
6d048b2d2c
refactor: add fixtures for client in test files to speed them up (#3490)
refactor: Add fixtures for client in test files to speed them up
2024-08-22 12:08:47 -07:00
Gabriel Luiz Freitas Almeida
091baf7f33
build: Update litellm version to 1.44.1 and content hash in poetry.lock (#3507) 2024-08-22 19:05:53 +00:00
Gabriel Luiz Freitas Almeida
5e2d9b2c22
ci: add python-versions input parameter to workflow (#3511)
* ci: Add python-versions input parameter to workflow

* build: Update CI workflow with additional Python versions and default values.

* ci: Update default Python versions in matrix configuration

* build: Fix python version matrix generation in workflow
2024-08-22 18:49:42 +00:00
Gabriel Luiz Freitas Almeida
6f0760382e
ci: Simplify needs array in ci_success job (#3509) 2024-08-22 11:03:52 -07:00
Lucas Oliveira
f5ddc3ed52
fix: appearance of update button on title (#3503)
Fixed update button appearing on the bottom of the title
2024-08-22 17:31:53 +00:00
Lucas Oliveira
b7741c4ee3
docs: update integrations image (#3508)
Update README.md
2024-08-22 16:57:34 +00:00
Lucas Oliveira
4732f25383
docs: update readme (#3502)
Update README.md
2024-08-22 16:49:48 +00:00
Gabriel Luiz Freitas Almeida
2eca4d9e32
refactor: move import statement inside function to avoid unnecessary imports (#3505)
* fix: Add exception handling for missing langchain_anthropic package

* refactor: Move import statement for get_starter_projects_dump in get_starter_projects

* chore: Modify logger to use error level for exception in directory_reader
2024-08-22 07:56:36 -07:00
Cristhian Zanforlin Lousa
b5116e6f68
tests: fix dropdown components test (#3504)
*  (dropdownComponent.spec.ts): add missing test case for dropdownComponent to improve test coverage and ensure functionality
🔧 (dropdownComponent.spec.ts): update test case to include additional interactions with the page to simulate user behavior and improve test robustness

*  (dropdownComponent.spec.ts): update mouse wheel scroll distance to 800 to improve test reliability
📝 (dropdownComponent.spec.ts): add additional wait time to ensure stability in test execution

* 🔧 (dropdownComponent.spec.ts): remove unnecessary code related to hovering and scrolling in the dropdown component test to improve test readability and maintainability
2024-08-22 07:10:31 -07:00
Gabriel Luiz Freitas Almeida
b814c30716
refactor: Fix version extraction in GitHub Actions workflow (#3501) 2024-08-22 05:20:45 -07:00
Gabriel Luiz Freitas Almeida
1e5aa0c2cf
feat: Add import check for langchain_aws module in AmazonBedrockComponent (#3492) 2024-08-21 19:09:12 -07:00
Gabriel Luiz Freitas Almeida
2076c3ac83
build: Remove unnecessary quotes in workflow conditional statements. (#3491) 2024-08-21 18:52:47 -07:00
Gabriel Luiz Freitas Almeida
3623d9ac9c
chore(starter-projects): Update OpenAIModelComponent inputs and build_model method (#3489) 2024-08-21 18:35:59 -07:00
Gabriel Luiz Freitas Almeida
280d1ca6bc
ci: add inputs to workflow call of ci and release (#3488)
* ci: Add dynamic input for Python versions and frontend tests folder in CI workflow.

* build: Update python versions to ['3.10', '3.11', '3.12'] and set frontend tests folder to 'tests'
2024-08-21 18:22:20 -07:00
Gabriel Luiz Freitas Almeida
450cc20ebf
ci: fix conditional statements for 'true' values (#3486) 2024-08-21 18:14:43 -07:00
Gabriel Luiz Freitas Almeida
300e79f70c
build: Update langflow-base and langflow versions to 0.0.94 and 1.0.16 respectively. (#3455) 2024-08-21 18:07:32 -07:00
Gabriel Luiz Freitas Almeida
40237d0631
fix: improve end_traces so it doesn't block the build loop (#3482)
* refactor: Simplify log configuration logic in Graph class

* feat(tracing): Refactor _end_traces method to be async and use asyncio.to_thread.

This is an attempt to avoid blocking the build loop
2024-08-21 18:06:41 -07:00
Yuqi Tang
dde0fa4566
Fix: API JS generated code (#3461)
* update js code

* fix langflowid

* fix code change
2024-08-21 18:04:38 -07:00
Jordan Frazier
96ca71dab8
fix: moves caching of vector store to LCModelComponent level (#3435)
* refactor LCModelComponent to use a cached vector store to prevent multiple embeddings
2024-08-21 14:38:06 -07:00
Rodrigo Nader
a700ea003d
feat: remove api key from advanced and update HuggingFace components (#3397)
* feat:  remove api key from advanced

* refactor: 🎨 improve naming and descriptions

* fix: 🐛 Fix hf api component

* [autofix.ci] apply automated fixes

* feat: 🎨 Add default values

* [autofix.ci] apply automated fixes

* fix: 🐛 fix hf api component

* [autofix.ci] apply automated fixes

* feat: 🔥 remove hugging face embeddings (local)

* refactor: Removed HuggingFaceEmbeddingsComponent from __init__.py

---------

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-08-21 19:22:20 +00:00
MaxZhang
5ffaa78e1c
fix: allow setting temperature to 0 in OpenAIModel.py (#3465)
Update OpenAIModel.py- Fix can not set temperature to 0 bug.

As when the input temperature is 0, the condition would become False , so this expressing set it to 0.1, it become impossible to set it to 0.
2024-08-21 19:12:42 +00:00
Ítalo Johnny
6ce733570f
docs: update deprecated term 'variables and secrets' (#3480)
docs: update deprected term 'variables and secrets'

Update old term 'Variables and Secrets' to 'Global Variables'
2024-08-21 12:09:33 -07:00
Cristhian Zanforlin Lousa
1db1e3af3d
feat: add LANGFLOW_AUTO_SAVING_INTERVAL .env variable for flow auto-saving debounce (#3478)
* 📝 (langflow): Add support for configuring auto saving interval for Langflow
📝 (langflow): Update ConfigResponse and Settings to include auto_saving_interval
📝 (frontend): Update useGetConfigQuery and useSaveConfig to handle auto_saving_interval
📝 (frontend): Update useAutoSaveFlow and flowsManagerStore to handle auto saving interval

* 📝 (util.py): add support for setting auto_saving_interval in update_settings function to allow customization of auto-saving interval
2024-08-21 12:02:26 -07:00
Cristhian Zanforlin Lousa
8dd85d98b6
fix: auto_login=off error on login and editing a user + FE tests (#3471)
* 🐛 (users.py): Fix issue where user password was not being updated correctly
📝 (constants.ts, authContext.tsx, index.tsx): Add LANGFLOW_REFRESH_TOKEN constant and update related code to support refresh token functionality
📝 (userManagementModal/index.tsx): Update form reset logic and handle input values correctly
📝 (LoginPage/index.tsx, LoginAdminPage/index.tsx): Update login function to include refresh token parameter
📝 (components/index.ts, auth.ts): Update inputHandlerEventType to support boolean values

 (auto-login-off.spec.ts): Add end-to-end test for user login functionality with auto_login set to false, CRUD operations for users, and verification of user flows visibility based on permissions.

*  (auto-login-off.spec.ts): improve test description for better clarity and understanding
📝 (auto-login-off.spec.ts): add comments to clarify the purpose of intercepting requests and performing CRUD operations

* 🐛 (users.py): fix comparison of password to check for None using 'is not None' instead of '!= None' for better accuracy
2024-08-21 15:55:47 +00:00
Lucas Oliveira
3a408c8141
refactor: add useGetRefreshFlows mutation and update code to use it (#3475)
* Added refresh flows mutation

* Changed places that used refreshFlows to use the mutation

* removed old refreshFlows

* removed readFlowsFromDatabase api call

* Removed unused API calls from API.ts

* Removed getFlowFromDatabase call
2024-08-21 15:21:19 +00:00
Lucas Oliveira
0586d1e1d5
refactor: prompt validation functionality (#3473)
* Added post validate prompt mutation

* Updated prompt modal to use mutation to validate prompt

* Removed post validate prompt from API.ts
2024-08-21 15:12:45 +00:00
Lucas Oliveira
a5e366c03d
fix: auto login hooks order bug (#3472)
Fix auto login hooks order bug
2024-08-21 12:12:17 -03:00
Lucas Oliveira
1d46bee0f9
refactor: component code validation (#3470)
* removed post custom component update

* Added post validade component code mutation

* Used post validade code mutation on component code

* removed unused console log

* used validate component code on generic node code validation
2024-08-21 14:47:11 +00:00
anovazzi1
767a1a68b0
refactor: Add NodeIcon component for displaying icons in GenericNode (#3459)
* feat: Add NodeIcon component for displaying icons in GenericNode

This commit adds a new component called NodeIcon to the GenericNode module. The NodeIcon component is responsible for displaying icons based on the data type of the node. It uses the nodeIconsLucide object from the styleUtils module to map the data type to the corresponding icon name. The component also handles the display of emojis as icons by checking if the icon is an emoji using the emoji-regex library. The icon color is determined based on the data type using the nodeColors object from the styleUtils module. The NodeIcon component is used in the GenericNode component to render the icon of the node.

* [autofix.ci] apply automated fixes

* feat: Remove useIconNodeRender hook from CustomNodes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-21 11:29:57 -03:00
Lucas Oliveira
f328179d82
refactor: add code validation functionality on tanstack mutation (#3469)
* Added Validate endpoint

* Added API Code Validate type

* Added post validate code hook

* Used mutation instead of API call to validate code

* Removed validate code api call
2024-08-21 13:24:54 +00:00
Gabriel Luiz Freitas Almeida
bf650ecec5
refactor: improve attribute compatibility and error messages (#3367)
* feat: Refactor how configuration attributes are handled in Component class.

* refactor: Update method name to handle singular and plural inputs.

* refactor: Add value validation for input and attribute assignment.

* test: Add test for setting invalid input in task component.

* fix: add param without underscore to inputs

* test(astra): Refactor AstraDB imports in test_astra_component (#3413)

* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.

* fix: Refactor custom component error message for setting parameter or attribute.

* test(astra): Refactor AstraDB imports in test_astra_component (#3413)

* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.

* chore: Refactor joining methods list in _set_parameter_or_attribute function.

* refactor: Refactor error message string formatting in Component class.
2024-08-21 12:34:15 +00:00
Gabriel Luiz Freitas Almeida
0db81f01f7
feat: update sequential tasks agent starter project (#3449)
* feat: update sequential tasks starter project

* feat: Refactor task agents for Researcher, Editor, and Comedian on Sequential Tasks Agent.

* refactor(langflow): Update Sequential Crew component

* refactor: Add SequentialCrewComponent for better organization.
2024-08-21 05:24:01 -07:00
ming
ae99e6927e
fix: sqlite3 lockout timeout (#3463)
sqlite3 lockout timeout
2024-08-21 12:11:19 +00:00
anovazzi1
29c3325036
fix: move css class for improve of the UI/UX (#3457)
* move css class for improve of the UI/UX

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 18:06:17 -03:00
Gabriel Luiz Freitas Almeida
188708281a
test(astra): Refactor AstraDB imports in test_astra_component (#3413)
* test(astra): Refactor AstraDB imports in test_astra_component

* fix: Add AstraVectorizeComponent to AstraDB tests.
2024-08-20 12:49:12 -07:00
dependabot[bot]
6ba7b257b6
build(deps): bump nltk from 3.8.1 to 3.9 (#3453)
Bumps [nltk](https://github.com/nltk/nltk) from 3.8.1 to 3.9.
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](https://github.com/nltk/nltk/compare/3.8.1...3.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 18:56:18 +00:00
dependabot[bot]
fea82ed6c9
build(deps):(deps): bump peter-evans/create-pull-request from 5 to 6 (#3141)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5 to 6.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v5...v6)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  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-08-20 18:56:06 +00:00
Uladzislau Kaminski
1a9363999c
feat: nltk text splitter support (#3403)
* feat: nltk text splitter support

* feat: add doc link to nltk text splitter

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 18:52:16 +00:00
Vinicios Silva
3531c07fb6
docs: Added Spanish README (#3451) 2024-08-20 11:41:13 -07:00
anovazzi1
c267cd60c1
Fix node size in nodeComponent (#3450)
* fix: set nide size directly in the nodeComponent

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-20 14:37:08 +00:00