Commit graph

4,911 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
916dd457e9 ⬆️ chore(pyproject.toml): add pytest-sugar as a development dependency to improve test reporting 2023-09-20 14:31:39 -03:00
Gabriel Luiz Freitas Almeida
aeecd6279f 🚀 feat(test_setup_superuser.py): add tests for setup_superuser and teardown_superuser functions
🔒 test(test_setup_superuser.py): test when AUTO_LOGIN is True, setup_superuser should not call get_session and create_super_user

🔒 test(test_setup_superuser.py): test when username and password are default, setup_superuser should call get_session, query, filter, and create_super_user with correct arguments, and reset superuser credentials

🔒 test(test_setup_superuser.py): test when superuser already exists, setup_superuser should call get_session, query, and filter with correct arguments, and not call create_super_user

🔒 test(test_teardown_superuser_default_superuser): test teardown_superuser with default superuser, should call get_session, query, filter, delete, and commit with correct arguments

🔒 test(test_teardown_superuser_no_default_superuser): test teardown_superuser without default superuser, should not call get_session, query, delete, and commit
2023-09-18 17:43:31 -03:00
Gabriel Luiz Freitas Almeida
bc53800b1c 🔧 chore(main.py): refactor imports and remove unused code in main.py for better code organization and maintainability
🔧 chore(manager.py): remove unused functions and refactor code in manager.py for better code organization and maintainability
2023-09-18 17:43:05 -03:00
Gabriel Luiz Freitas Almeida
049ffc72ef 🔧 fix(__main__.py): import correct function for initializing settings manager
🔧 fix(utils.py): fix condition for checking if user is superuser
2023-09-18 17:41:36 -03:00
Gabriel Luiz Freitas Almeida
55ef4d4fd0 🔒 chore(poetry.lock): update poetry.lock file
The poetry.lock file has been updated. This commit includes the changes made to the file.

🔒 chore(poetry.lock): update clickhouse-connect version from 0.6.11 to 0.6.12 to stay up-to-date with the latest bug fixes and improvements

🔄 chore(clickhouse_connect): update clickhouse_connect package to version 0.6.12

The clickhouse_connect package has been updated to version 0.6.12. This update includes the following changes:
- Removed the following wheel files:
  - clickhouse_connect-0.6.11-cp38-cp38-win32.whl
  - clickhouse_connect-0.6.11-cp38-cp38-win_amd64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-macosx_10_9_x86_64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-macosx_11_0_arm64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
  - clickhouse_connect-0.6.11-cp39-cp39-musllinux_1_1_aarch64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-musllinux_1_1_i686.whl
  - clickhouse_connect-0.6.11-cp39-cp39-musllinux_1_1_x86_64.whl
  - clickhouse_connect-0.6.11-cp39-cp39-win32.whl
  - clickhouse_connect-0.6.11-cp39-cp39-win_amd64.whl
  - clickhouse_connect-0.6.11-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
  - clickhouse_connect-0.6.11-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  - clickhouse_connect

🔧 chore(clickhouse_connect): update clickhouse_connect package to version 0.6.12

ℹ️ The clickhouse_connect package has been updated to version 0.6.12. This update includes various bug fixes and improvements.

🚀 feat(package.dependencies): add clickhouse_connect package with multiple wheel files and their hashes

ℹ️ The clickhouse_connect package has been added as a dependency to the project. This commit includes the addition of multiple wheel files along with their corresponding hashes. These wheel files provide support for different platforms and Python versions.

🔒 chore(poetry.lock): update cohere, fsspec, langfuse, langsmith, and nest-asyncio packages

- cohere package:
  - Update version from 4.24 to 4.26.1
  - Update wheel and tar.gz files hashes

- fsspec package:
  - Update version from 2023.9.0 to 2023.9.1
  - Update wheel and tar.gz files hashes

- langfuse package:
  - Update version from 1.0.21 to 1.0.24
  - Update wheel and tar.gz files hashes

- langsmith package:
  - Update version from 0.0.37 to 0.0.38
  - Update wheel and tar.gz files hashes

- nest-asyncio package:
  - Update version from 1.5.7 to 1.5.8
  - Update wheel and tar.gz files hashes

🔒 chore(poetry.lock): update numpy version to 1.26.0 and restrict python versions to be below 3.13 and above 3.9 to ensure compatibility

🔧 chore: update numpy package to version 1.26.0

ℹ️ The following files have been updated:
- numpy-1.26.0-cp312-cp312-macosx_11_0_arm64.whl
- numpy-1.26.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- numpy-1.26.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- numpy-1.26.0-cp312-cp312-musllinux_1_1_x86_64.whl
- numpy-1.26.0-cp312-cp312-win32.whl
- numpy-1.26.0-cp312-cp312-win_amd64.whl
- numpy-1.26.0-cp39-cp39-macosx_10_9_x86_64.whl
- numpy-1.26.0-cp39-cp39-macosx_11_0_arm64.whl
- numpy-1.26.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- numpy-1.26.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- numpy-1.26.0-cp39-cp39-musllinux_1_1_x86_64.whl
- numpy-1.26.0-cp39-cp39-win32.whl
- numpy-1.26.0-cp39-cp39-win_amd64.whl
- numpy-1.26.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
- numpy-1.26.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- numpy-1.26.0-pp39-pypy39_pp73-win_amd64.whl
- numpy-1.26.0.tar.gz

🚀 This update includes bug fixes and improvements.

🔒 chore(poetry.lock): update poetry.lock file

The poetry.lock file has been updated. This commit includes changes to the file to reflect the updated dependencies and their versions.

🔒 chore(poetry.lock): update pillow version from 10.0.0 to 10.0.1 to fix a bug or security vulnerability

🚀 feat(pillow): update Pillow package to version 10.0.1

The Pillow package has been updated to version 10.0.1. This update includes several bug fixes and improvements. The new version provides support for macOS 11.0 arm64 architecture, manylinux 2.17 aarch64 and x86_64 architectures, manylinux 2.28 aarch64 and x86_64 architectures, musllinux 1.1 aarch64 and x86_64 architectures, and Windows AMD64 architecture.

The updated package files and their corresponding hashes are as follows:
- Pillow-10.0.1-cp310-cp310-macosx_10_10_x86_64.whl (sha256:8f06be50669087250f319b706decf69ca71fdecd829091a37cc89398ca4dc17a)
- Pillow-10.0.1-cp310-cp310-macosx_11_0_arm64.whl (sha256:50bd5f1ebafe9362ad622072a1d2f5850ecfa44303531ff14353a4059113b12d)
- Pillow-10.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (sha256:e6a90167bcca1216606223a05e2cf991bb25b14695c518bc65639463d7db722d)
- Pillow-10.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (sha256:f11c9102c56ffb9ca87134bd025a43d2aba3f1155f508eff88f694b33a9c6d19)
- Pillow-10.0.1-cp310-cp310-manylinux_2_28_aarch64.whl (sha256:186f7e04248103482ea6354af6d5bcedb62941ee08f7f788a1c7707bc720c66f)
- Pillow-10.0.1-cp310-cp310-manylinux_2_28_x86_64.whl (sha256:0462b149650

🚀 feat(package): add Pillow 10.0.1 wheel files with corresponding hashes for various platforms

ℹ️ The commit adds the following Pillow 10.0.1 wheel files with their respective hashes:
- Pillow-10.0.1-cp312-cp312-win_amd64.whl
- Pillow-10.0.1-cp38-cp38-macosx_10_10_x86_64.whl
- Pillow-10.0.1-cp38-cp38-macosx_11_0_arm64.whl
- Pillow-10.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Pillow-10.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Pillow-10.0.1-cp38-cp38-manylinux_2_28_aarch64.whl
- Pillow-10.0.1-cp38-cp38-manylinux_2_28_x86_64.whl
- Pillow-10.0.1-cp38-cp38-musllinux_1_1_aarch64.whl
- Pillow-10.0.1-cp38-cp38-musllinux_1_1_x86_64.whl
- Pillow-10.0.1-cp38-cp38-win_amd64.whl
- Pillow-10.0.1-cp39-cp39-macosx_10_10_x86_64.whl
- Pillow-10.0.1-cp39-cp39-macosx_11_0_arm64.whl
- Pillow-10.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Pillow-10.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Pillow-10.0.1-cp39-cp39-manylinux_2_28_aarch64.whl
- Pillow-10.0.1-cp39-cp39-manylinux_2_28_x86_64.whl
- Pillow

🔒 chore(poetry.lock): update pinecone-client version to 2.2.4 for bug fixes and improvements
🔒 chore(poetry.lock): update portalocker version to 2.8.2 for bug fixes and enhancements
🔒 chore(poetry.lock): update pypdf version to 3.16.1 for bug fixes and improvements
🔒 chore(poetry.lock): update rich version to 13.5.3 for bug fixes and enhancements
🔒 chore(poetry.lock): update smmap version to 5.0.1 for bug fixes and improvements
🔒 chore(poetry.lock): update textual version to 0.37.1 for bug fixes and enhancements
🔒 chore(poetry.lock): update traitlets version to 5.10.0 for bug fixes and improvements

🔒 chore(poetry.lock): update types-pytz version to 2023.3.1.0 for typing stubs for pytz
🔒 chore(poetry.lock): update typing-extensions version to 4.8.0 for backported and experimental type hints for Python 3.8+
🔒 chore(poetry.lock): update unstructured version to 0.10.15 for library that prepares raw documents for downstream ML tasks
🔒 chore(poetry.lock): update zipp version to 3.17.0 for backport of pathlib-compatible object wrapper for zip files
2023-09-18 15:53:23 -03:00
Gabriel Luiz Freitas Almeida
828492eaf2 🔧 chore(main.py): import setup_superuser function to be able to set up a superuser for the application 2023-09-18 15:52:15 -03:00
Gabriel Luiz Freitas Almeida
976b01875a 🔥 refactor(test_llms_template.py): remove unused imports and commented out code
🔒 test(test_llms_template.py): remove test_llms_settings test as it is no longer needed
2023-09-18 15:51:40 -03:00
Gabriel Luiz Freitas Almeida
94020b3126 📝 chore(manager.py): update variable names for superuser in database manager and utils module for better clarity and consistency
The variable names `FIRST_SUPERUSER` and `FIRST_SUPERUSER_PASSWORD` have been changed to `SUPERUSER` and `SUPERUSER_PASSWORD` respectively in the `manager.py` and `utils.py` files. This change improves clarity and consistency in the codebase.
2023-09-18 15:45:40 -03:00
Gabriel Luiz Freitas Almeida
f22c66d824 📝 chore(.env.example): add placeholders for LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD to improve documentation and configuration 2023-09-18 15:45:27 -03:00
Gabriel Luiz Freitas Almeida
c390a6ca1d 🔧 chore(utils.py): refactor get_settings_manager, get_db_manager, get_session, and get_chat_manager functions to use service_manager for better code organization and maintainability
 feat(utils.py): add setup_superuser function to create a superuser if it does not exist and reset superuser credentials after creation
2023-09-18 15:43:18 -03:00
Gabriel Luiz Freitas Almeida
0c3d59a804 🐛 fix(__main__.py): import correct function for get_db_manager and get_settings_manager in langflow/__main__.py
🐛 fix(api_key.py): import correct function for get_session in langflow/api/v1/api_key.py
🐛 fix(chat.py): import correct function for get_chat_manager and get_session in langflow/api/v1/chat.py
🐛 fix(components.py): import correct function for get_session in langflow/api/v1/components.py
🐛 fix(endpoints.py): import correct function for get_session and get_settings_manager in langflow/api/v1/endpoints.py
🐛 fix(flows.py): import correct function for get_session and get_settings_manager in langflow/api/v1/flows.py
🐛 fix(login.py): import correct function for get_session and get_settings_manager in langflow/api/v1/login.py
🐛 fix(users.py): import correct function for get_session in langflow/api/v1/users.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/agents/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/chains/base.py
🐛 fix(custom_component.py): import correct function for get_db_manager in langflow/interface/custom/custom_component.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/document_loaders/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/embeddings/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/llms/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/memories/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/output_parsers/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/prompts/base.py
🐛 fix(base.py): import correct function for get_settings_manager in langflow/interface/retrievers/base.py

🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect new module location
🐛 fix(base.py): update import statement for get_settings_manager function to reflect

🔧 fix(test_user.py): update import statement for get_settings_manager to reflect new module structure
🔧 fix(test_user.py): update variable names for superuser and superuser password to match new naming convention
🔧 fix(test_user.py): update variable names for superuser and superuser password to match new naming convention
🔧 fix(test_vectorstore_template.py): update import statement for get_settings_manager to reflect new module structure
2023-09-18 15:42:39 -03:00
Cristhian Zanforlin Lousa
21096562b2
Bugfix on DEV - Copy and Paste on CodeEditModal (#929)
🔧 chore(codeAreaModal/index.tsx): add additional class names to
CodeMirror component for better control and customization
2023-09-18 14:40:19 -03:00
Cristhian Zanforlin Lousa
14c9f863dc 🔧 fix(dialog.tsx): remove unnecessary CSS classes 'noundo' and 'nocopy' to simplify the code and improve maintainability
🔧 fix(codeAreaModal/index.tsx): remove unnecessary CSS classes 'nopan', 'nodrag', 'noundo', and 'nocopy' to simplify the code and improve maintainability
2023-09-18 14:26:27 -03:00
Cristhian Zanforlin Lousa
3e2f3046a9 🔧 chore(codeAreaModal/index.tsx): add additional class names to CodeMirror component for better control and customization 2023-09-18 13:51:01 -03:00
Gabriel Luiz Freitas Almeida
7d39cdc7aa
fix issue, the custom component cannot be load success by setting env… (#823) 2023-09-18 11:01:57 -03:00
Gabriel Luiz Freitas Almeida
44466dc2d1 🐛 fix(RecursiveCharacterTextSplitter.py): uncomment line to assign repr_value to separators variable
 feat(util.py): add build_loader_repr_from_documents function to generate a representation string from a list of documents
2023-09-14 21:38:10 -03:00
Gabriel Luiz Freitas Almeida
329d779b6e
Fixed Lint error and no module error (#918) 2023-09-15 00:35:36 +00:00
Guangya Liu
03a71b1fe8 use optional for user 2023-09-14 19:48:48 -04:00
Gabriel Luiz Freitas Almeida
5ac3208c8a Merge remote-tracking branch 'origin/main' into dev 2023-09-14 20:02:52 -03:00
Gabriel Luiz Freitas Almeida
fa94ae3350
🔧 chore(render.yaml): add disk configuration for langflow-data to pro… (#919) 2023-09-14 23:02:26 +00:00
Gabriel Luiz Freitas Almeida
ff18b32aeb 🔀 chore(README.md): update Railway deployment button link to use a different template 2023-09-14 20:01:51 -03:00
Gabriel Luiz Freitas Almeida
40969d905a 🐛 fix(render.yaml): fix indentation of value for LANGFLOW_DATABASE_URL environment variable to match the key 2023-09-14 17:19:13 -03:00
Gabriel Luiz Freitas Almeida
502b520782 🔧 chore(render.yaml): add LANGFLOW_DATABASE_URL environment variable with sqlite database path to improve configuration
The LANGFLOW_DATABASE_URL environment variable is added with the value `sqlite:////home/user/.cache/langflow/langflow.db` to specify the path to the SQLite database file for the Langflow service. This improves the configuration by providing a specific location for the database file.
2023-09-14 17:18:22 -03:00
Gabriel Luiz Freitas Almeida
2a947e33a7 🔧 chore(render.yaml): remove unnecessary 'plan' field from langflow service configuration
📝 docs(render.yaml): update langflow service configuration to remove 'plan' field for better clarity and consistency
2023-09-14 15:39:46 -03:00
Gabriel Luiz Freitas Almeida
54776687f1 🔧 chore(render.yaml): add disk configuration for langflow-data to provide persistent storage for langflow cache 2023-09-14 15:38:45 -03:00
Guangya Liu
c710c1ce82 Fixed lint error 2023-09-14 13:33:48 -04:00
Guangya Liu
888ded02f9 Fixed format pre-check error 2023-09-14 10:17:13 -04:00
Guangya Liu
9b9a84f81f Fixed Bug 916: No module named 'langflow.settings' error 2023-09-14 10:14:56 -04:00
Gabriel Luiz Freitas Almeida
57cba4233a
Fixed format errors (#903) 2023-09-14 01:29:26 +00:00
Cristhian Zanforlin Lousa
e1bb4b4a24
🐛 fix(genericModal/index.tsx): close modal when template has no varia… (#911)
…bles to prevent user confusion
2023-09-13 22:26:38 -03:00
Cristhian Zanforlin Lousa
887bfb8ee7 🐛 fix(genericModal/index.tsx): close modal when template has no variables to prevent user confusion 2023-09-13 21:42:26 -03:00
Gabriel Luiz Freitas Almeida
c6be7cdecd Merge remote-tracking branch 'origin/main' into dev 2023-09-13 21:32:51 -03:00
Cristhian Zanforlin Lousa
8121dc0a8b 🔨 refactor(dialog.tsx): remove unused IconComponent import and replace it with Cross2Icon from @radix-ui/react-icons
🎨 style(dialog.tsx): update DialogContent className to improve positioning and animation effects
2023-09-12 16:56:53 -03:00
anovazzi1
492ca19fff text update 2023-09-12 16:35:04 -03:00
anovazzi1
90c864fafc refactor(parameterComponent): update text displayed based on the value of the 'left' prop for better clarity and consistency 2023-09-12 16:35:04 -03:00
igorrCarvalho
cd28ae2c59 Refactor: Add header to node tooltips 2023-09-12 16:35:04 -03:00
igorrCarvalho
c03b11ab70 Refactor: Remove description space whem node does not have a space 2023-09-12 16:35:04 -03:00
igorrCarvalho
e38b904af2 Refactor: Remove blank space when node has no description 2023-09-12 16:35:04 -03:00
Guangya Liu
f0ba05c9cc rollback the test error with python 3.10 2023-09-12 11:52:14 -04:00
Guangya Liu
48586fc3e6 Fix format errors 2023-09-12 11:17:11 -04:00
Guangya Liu
36aee971c4 fix test errors 2023-09-12 11:16:11 -04:00
Gabriel Luiz Freitas Almeida
a35e6a6556
📝 docs(langfuse_integration.mdx): remove reference to troubleshooting section in Langfuse documentation as it is not available (#900) 2023-09-12 01:41:47 +00:00
Gabriel Luiz Freitas Almeida
b819f37798 📝 docs(langfuse_integration.mdx): remove reference to troubleshooting section in Langfuse documentation as it is not available
📝 docs(langfuse_integration.mdx): update step 3 to remove mention of consulting Langfuse documentation or contacting support for integration issues
2023-09-11 22:40:47 -03:00
anovazzi1
374ae22563
Profile Page implementation and fix on Admin Page (#896) 2023-09-11 18:49:43 -03:00
anovazzi1
249cf833fa fix(AdminPage/index.tsx): fix asynchronous handling of updateUser function to properly reset filter and set success data after user update
fix(styleUtils.ts): fix import statement for GradientSparkles component to use curly braces for named import
2023-09-11 18:46:50 -03:00
anovazzi1
732c140fb7 Merge remote-tracking branch 'origin/dev' into feature/profilePage 2023-09-11 18:36:11 -03:00
anovazzi1
22a7f37efb fix(GradientSparkles/index.tsx): remove unnecessary import of Infinity component from lucide-react
fix(GradientSparkles/index.tsx): replace usage of imported Infinity component with inline SVG code to avoid crashing the UI
2023-09-11 18:33:04 -03:00
Lucas Oliveira
64bb977045 Fixed isActive and isSuperuser not changing when creating user 2023-09-11 18:09:22 -03:00
Gabriel Luiz Freitas Almeida
967483e59c Revert "Fixed isActive and isSuperuser not changing when creating user"
This reverts commit b454b8c7ce.
2023-09-11 17:29:34 -03:00
Lucas Oliveira
b454b8c7ce Fixed isActive and isSuperuser not changing when creating user 2023-09-11 16:59:33 -03:00