Commit graph

598 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
fff4537b1e
Fixes CLI and server (#2342)
* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)

* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* refactor: update "created_at" column type to use the "sa" module for consistency

* Update README.md

Add 1.0 banner

* chore: Remove unused import in ToolCallingAgent.py

* fix: adapt RequestCancelledMiddleware to handle cancelled requests

* chore: Remove unused import in test_helper_components.py

* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>

* chore: Update AstraDB.py imports and method signature for search_documents

* chore: Update package versions in pyproject.toml files

* chore: Update run-name in release.yml for Langflow Release

* fix: add call to _add_documents_to_vector_store in AstraDB component

* chore: Fix missing parentheses in RequestCancelledMiddleware

* chore: Update pydantic-settings and tenacity versions

The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.

* Update README.md

Add 1.0 banner

* fix fetch data to work even with autologin true

* format code

* deactivate stop button until we have a better solution (#2337)

* consistent auth error status code

* [Fix] unhandled http errors in background tasks (#2326)

* handle exceptions for background task

* revert changes that is not related to this HTTP handler exception

* Refactor model GoogleGenerativeAIModel (#2251)

* refactor model GoogleGenerativeAIModel

* adds model options

---------

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

* Fix .env values not being honored in CLI (#2336)

* chore: Update launch.json to include environment file

The launch.json file was updated to include the environment file path for the "run" command in the "Python: Flask" configuration. This change ensures that the necessary environment variables are loaded when running the backend base of Langflow frontend. The previous configuration had the environment variables set in the "env" field, but it has been removed as it is redundant with the new environment file inclusion.

* chore: Update dotenv import and environment variable handling

This commit updates the import statement for the `dotenv` module in the `__main__.py` file. It adds the `dotenv_values` function to the import statement to enable loading environment variables from a file. Additionally, it introduces a new section of code that maps environment variables to their corresponding variables and types, allowing for more flexible and dynamic configuration. The commit also updates the `run` function to update variables based on environment variables, if they are present. This change improves the handling of environment variables and enhances the configurability of the application.

* deactivate stop button until we have a better solution (#2337)

* consistent auth error status code

* [Fix] unhandled http errors in background tasks (#2326)

* handle exceptions for background task

* revert changes that is not related to this HTTP handler exception

* Refactor model GoogleGenerativeAIModel (#2251)

* refactor model GoogleGenerativeAIModel

* adds model options

---------

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

---------

Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>

* Update GitHub Actions workflows and dependencies (#2341)

* chore: Add GitHub Actions workflow for testing documentation build

* Fix server start command in GitHub Actions workflows

* chore: Bump langflow and langflow-base versions

* chore: Update GitHub Actions workflow for docs_test

* chore: Update typing import in __main__.py

* Fix user authentication and authorization issues (#2343)

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: ming luo <itestmycode@gmail.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
2024-06-25 09:20:55 -07:00
Gabriel Luiz Freitas Almeida
af98504e4a
Fix Astra Component and Middleware (#2321)
* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* Refactor "created_at" column type for consistency and fix cancel middleware (#2316)

* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* refactor: update "created_at" column type to use the "sa" module for consistency

* Update README.md

Add 1.0 banner

* chore: Remove unused import in ToolCallingAgent.py

* fix: adapt RequestCancelledMiddleware to handle cancelled requests

* chore: Remove unused import in test_helper_components.py

* refactor: Declare queue variable with explicit type in RequestCancelledMiddleware

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>

* chore: Update AstraDB.py imports and method signature for search_documents

* chore: Update package versions in pyproject.toml files

* chore: Update run-name in release.yml for Langflow Release

* fix: add call to _add_documents_to_vector_store in AstraDB component

* chore: Fix missing parentheses in RequestCancelledMiddleware

* chore: Update pydantic-settings and tenacity versions

The commit updates the versions of the `pydantic-settings` and `tenacity` packages in the `poetry.lock` file. The `pydantic-settings` version is updated from 2.3.3 to 2.3.4, and the `tenacity` version is updated from 8.4.1 to 8.4.2.

* Update README.md

Add 1.0 banner

---------

Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
2024-06-24 13:29:41 -07:00
Gabriel Luiz Freitas Almeida
24d9e86885 chore: update package versions in pyproject.toml files 2024-06-24 10:19:17 -03:00
Gabriel Luiz Freitas Almeida
ceaff46016 Merge remote-tracking branch 'origin/main' into dev 2024-06-24 10:09:44 -03:00
Gabriel Luiz Freitas Almeida
b3b68c3a38 Fixes Pinecone implementation (#1856)
* ⬆️ (pyproject.toml): upgrade langchain-pinecone dependency to version 0.1.0

* 📝 (Pinecone.py): Update Pinecone component to use new DistanceStrategy enum for distance calculation and improve configuration options for Pinecone vector store creation.

* ⬆️ (pyproject.toml): upgrade package version from 0.6.18 to 0.6.19
2024-06-24 06:08:28 -07:00
Gabriel Luiz Freitas Almeida
da63ee977e Fix bugs and make improvements (#1794)
* add ? to prevent bug when template has no value

* Refactor determine_component_name function in utils.py to use file name

* Bump version to 0.6.18 in pyproject.toml

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-06-24 06:08:28 -07:00
Gabriel Luiz Freitas Almeida
4b72a7caa8 Fix unique constraints for id column and update API key creation (#1764)
* Update .gitignore to ignore additional files and directories

* Add migration to fix column types

* Bump version to 0.6.17 in pyproject.toml
2024-06-24 06:08:28 -07:00
Gabriel Luiz Freitas Almeida
23bbaf99c8 Fix unique constraints for id column (#1584)
Fix unique constraints for id column (#1583)

* Fix unique constraints for id column

* Update version in pyproject.toml
2024-06-24 06:08:28 -07:00
Gabriel Luiz Freitas Almeida
57df2a0744 Fixes Pinecone implementation (#1856)
* ⬆️ (pyproject.toml): upgrade langchain-pinecone dependency to version 0.1.0

* 📝 (Pinecone.py): Update Pinecone component to use new DistanceStrategy enum for distance calculation and improve configuration options for Pinecone vector store creation.

* ⬆️ (pyproject.toml): upgrade package version from 0.6.18 to 0.6.19
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
68e63001df Fix bugs and make improvements (#1794)
* add ? to prevent bug when template has no value

* Refactor determine_component_name function in utils.py to use file name

* Bump version to 0.6.18 in pyproject.toml

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
c97d0d630f Fix unique constraints for id column and update API key creation (#1764)
* Update .gitignore to ignore additional files and directories

* Add migration to fix column types

* Bump version to 0.6.17 in pyproject.toml
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
537cf93493 Add logger import and fix error handling during upgrade in alembic scripts (#1650)
* Add logger import in script.py.mako

* Fix error handling during upgrade in alembic scripts

* Bump version to 0.6.14 in pyproject.toml
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
1e12f05cb8 Fix unique constraints for id column (#1584)
Fix unique constraints for id column (#1583)

* Fix unique constraints for id column

* Update version in pyproject.toml
2024-06-24 05:56:11 -07:00
Gabriel Luiz Freitas Almeida
0f5810928d chore: Update package versions in pyproject.toml files 2024-06-23 18:35:21 -07:00
joaoguilhermeS
4ec69a7af0 chore: Updating poetry lock file 2024-06-22 16:37:56 -07:00
Gabriel Luiz Freitas Almeida
1345059ca2 chore: Update astrapy to version 1.3.0 and filelock to version 3.15.4 2024-06-22 12:32:54 -07:00
joaoguilhermeS
e326d86867 chore: Updating poetry lock file 2024-06-22 08:56:54 -07:00
joaoguilhermeS
b7aa6c3ea6 Resolve merge conflicts in poetry.lock 2024-06-22 08:56:54 -07:00
joaoguilhermeS
d9c823e1a6 Resolve merge conflicts in poetry.lock 2024-06-22 08:56:54 -07:00
berrytern
795a2bd3df <feat>: add Redis dependency 2024-06-22 08:56:54 -07:00
Gabriel Luiz Freitas Almeida
b78e1dcdac chore: Update lxml dependency to version 5.2.2 2024-06-21 21:49:22 -07:00
Gabriel Luiz Freitas Almeida
4175fc13f6 🔧 (Makefile): add 'update' target to run 'poetry update' command for updating dependencies
🔧 (pyproject.toml): update version to "1.0.0rc0" for the 'langflow' package
🔧 (pyproject.toml): update version to "0.0.73" for the 'langflow-base' package
🔧 (pyproject.toml): remove 'python-socketio' dependency and update other dependencies to specific versions
2024-06-21 21:49:22 -07:00
ming luo
b2c714067a update poetry.lock 2024-06-21 20:55:42 -07:00
ming luo
17adc8b5a5 fix unit test 2024-06-21 20:55:42 -07:00
Gabriel Luiz Freitas Almeida
de0657acf3 refactor: Update langchain-mongodb package to version 0.1.6 2024-06-20 18:09:32 -03:00
Gabriel Luiz Freitas Almeida
2b1d46e883 refactor: Update langchain-aws dependency to version 0.1.6 2024-06-19 20:01:04 -03:00
ogabrielluiz
b3de990beb refactor: Update langchain-astradb dependency to version 0.3.3
This commit updates the langchain-astradb dependency in the pyproject.toml file to version 0.3.3. This update ensures compatibility with the latest features and improvements in langchain-astradb.
2024-06-19 01:06:52 -03:00
ogabrielluiz
584cd59961 Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-18 14:51:19 -03:00
ogabrielluiz
45c2f8a9b6 chore: Update langchain-core and langflow-base versions to 0.2.8 and 0.0.72 respectively 2024-06-17 21:14:54 -03:00
ogabrielluiz
277f0dd50d chore: Update package versions in pyproject.toml files 2024-06-17 18:51:07 -03:00
cristhianzl
1c1418596a fixing poetry lock versions 2024-06-17 16:27:45 -03:00
Lucas Oliveira
f33c73a3ad Fixed Prettier tailwind formatting 2024-06-17 14:37:23 -03:00
cristhianzl
fcf4512210 merge dev into two_edges 2024-06-17 10:01:28 -03:00
Jordan Frazier
ca660cf8df
test: add astra integration test (#2189)
* add first astra integ test framework

* use fixtures

* remove old tests from merge

* Add correct sender type

* chore: Update unit test command in GitHub workflow

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-15 19:50:38 -07:00
ogabrielluiz
40cebd1bcf chore: Update package versions to latest in pyproject.toml files 2024-06-15 11:09:16 -03:00
Gabriel Luiz Freitas Almeida
5191638f8e
Update dependencies and workflows (#2185) 2024-06-15 06:02:08 -07:00
ogabrielluiz
47ea958441 chore: Update package versions in pyproject.toml files 2024-06-14 22:46:57 -03:00
ogabrielluiz
5471ab3671 feat: Add PyYAML wheel for manylinux_2_17_aarch64 platform 2024-06-14 14:23:38 -03:00
italojohnny
2d692a6701 Merge branch 'dev' into two_edges_dev 2024-06-14 09:31:14 -03:00
ogabrielluiz
a7e83baa35 chore: Bump langchain and langchain-core versions to 0.2.4 and 0.2.6 respectively 2024-06-14 08:53:15 -03:00
ogabrielluiz
d921865e45 chore: Update dependencies to latest versions 2024-06-13 18:33:48 -03:00
italojohnny
f0630ec870 Merge branch 'dev' into two_edges_dev 2024-06-13 15:58:33 -03:00
ogabrielluiz
8fef4b2d3a chore: Update langflow-base and langflow package versions to 0.0.66 and 1.0.0a55 respectively 2024-06-13 11:30:20 -03:00
Gabriel Luiz Freitas Almeida
18b95c5092
chore: Update duckdb dependency to version 1.0.0 and improve MonitorService code (#2158) 2024-06-13 07:27:15 -07:00
ogabrielluiz
909501e212 refactor: Update langflow components and constants
Update langflow components and constants to improve functionality, error handling, and user experience. This includes fixing rendering issues in dropdownComponent and improving value handling in tableNodeCellRender. The MonitorService now supports read-only mode in the exec_query method. The APIRequestComponent has been enhanced to parse curl commands and update the build configuration accordingly. The URLComponent now includes metadata in the returned data objects. Additionally, the SessionView and MessagesPage components have been updated to sort columns using the messagesSorter utility function, ensuring consistent column ordering. The unused Tabs component has been removed from FlowLogsModal. The CHAT_FIRST_INITIAL_TEXT and CHAT_SECOND_INITIAL_TEXT constants have been updated. Lastly, the error message in the Vertex class of base.py has been improved for building Components. These changes enhance the overall performance, functionality, and clarity of the codebase.
2024-06-13 10:40:39 -03:00
ogabrielluiz
e98e3f5387 chore: Update package versions in pyproject.toml files 2024-06-13 01:08:28 -03:00
Ítalo Johnny
5ce1192a1b
Improve makefile [edited] (#2141)
* ignore sqlite tmp files

* update many dependencies to be optional

* improve makefile help messagem

* chore: Update langflow-base dependency to use local path for development

* change postgres to mandatory dependency

* improve makefile readability

* Revert update many dependencies to be optional

This reverts commit 80780565df5bc63632e6971054670cee467542f9.

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-12 21:04:13 -07:00
ogabrielluiz
e3d2b9ff28 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-12 12:26:36 -03:00
Lucas Oliveira
ce0f49aed5 Changed poetry.lock 2024-06-11 18:18:56 -03:00
Lucas Oliveira
850de6b952 Merge branch 'dev' into two_edges_merge 2024-06-11 18:11:13 -03:00