Commit graph

5,500 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
f8b38ee162 🐛 fix(process.py): rename langchain_object variable to graph for better semantics
🐛 fix(process.py): rename langchain_object variable to built_object in generate_result function for better semantics
🐛 fix(process.py): update session with graph instead of langchain_object to reflect changes
 feat(manager.py): add reinitialize_services function to reinitialize all services
 feat(utils.py): initialize settings service if not already initialized before returning it
2023-09-22 11:00:57 -03:00
Gabriel Luiz Freitas Almeida
04fe2f6054 📝 chore(utils.py): add utility function to check if an object is a basic type
📝 chore(loading.py): refactor code to improve readability and maintainability
📝 chore(vector_store.py): refactor code to improve readability and maintainability
📝 chore(run.py): update return type hint for build_sorted_vertices function
2023-09-22 10:59:53 -03:00
Gabriel Luiz Freitas Almeida
bea1328a3e 🐛 fix(base.py): add __setstate__ method to Edge class to properly set state when unpickling
🐛 fix(base.py): add reset method to Edge class to reset source and target params when needed
🐛 fix(base.py): add __setstate__ method to Graph class to properly set state when unpickling
🐛 fix(base.py): add __eq__ method to Graph class to compare graphs based on their string representation
🐛 fix(types.py): add __getstate__ and __setstate__ methods to AgentVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to ToolVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to LLMVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to ToolkitVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to FileToolVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to DocumentLoaderVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to EmbeddingVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to VectorStoreVertex class to properly set and get state when pickling and unpickling
🐛 fix(types.py): add __getstate__ and __setstate__ methods to TextSplitterVertex class to properly set and get state when pickling and unpickling
 feat(types.py): add reset method to AgentVertex class to reset source and target params when needed
 feat(types.py): add reset method to ToolVertex class to reset source and target params when needed
 feat(types.py): add reset method to LLMVertex class to reset source and target params when needed
 feat(types.py):
2023-09-22 10:58:27 -03:00
Gabriel Luiz Freitas Almeida
2b10cfe96d 🐛 fix(base.py): add missing import statement for is_basic_type function
🐛 fix(base.py): add missing import statement for logger
🐛 fix(base.py): handle AttributeError when comparing Vertex objects for equality
🐛 fix(base.py): handle exception and log it when building node fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): reset params and rebuild built object when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object fails
🐛 fix(base.py): handle exception and log it when pickling built object
2023-09-22 10:54:30 -03:00
Gabriel Luiz Freitas Almeida
df19298637 🐛 fix(cache/manager.py): unpickle cached value before returning it to fix deserialization issue
🐛 fix(cache/manager.py): pickle value before caching it to mimic Redis behavior
🐛 fix(cache/manager.py): raise ValueError if RedisCache fails to set the value
🐛 fix(session/manager.py): generate key if it is None before checking cache
 feat(session/manager.py): add logging import to enable logging in the session manager
2023-09-22 10:48:13 -03:00
Gabriel Luiz Freitas Almeida
3412e8a92c 🔧 chore(celery_app.py): modify make_celery function signature to accept a config parameter
🔧 chore(celery_app.py): update celery_app.config_from_object argument to use the config parameter passed to make_celery function
2023-09-22 10:47:35 -03:00
Gabriel Luiz Freitas Almeida
358f5c9019 🐛 fix(endpoints.py): fix indentation issue in process_flow function and assign session_id correctly when result is a dictionary 2023-09-22 10:46:36 -03:00
Gabriel Luiz Freitas Almeida
8557a728d6 🐛 fix(docker-compose.override.yml): expose Redis port 6379 for the queue service
 feat(docker-compose.override.yml): add configuration for the celeryworker service to enable Traefik routing and expose port 7860 for API endpoints
🐛 fix(docker-compose.yml): remove parallel test execution flag from the command for the test service
2023-09-22 10:46:18 -03:00
Gabriel Luiz Freitas Almeida
d4f3640e5f 🐛 fix(Dockerfile): copy only necessary file to avoid unnecessary image rebuilding
 feat(Dockerfile): add support for copying app code and tests to the image to ensure they are included in the deployment
2023-09-22 10:46:01 -03:00
Gabriel Luiz Freitas Almeida
a64c7bea7f ⬆️ chore(pyproject.toml): add pytest-sugar as a development dependency to enhance test reporting 2023-09-22 10:45:40 -03:00
Gabriel Luiz Freitas Almeida
f01f4a809e 🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
🔨 refactor(worker.py): rename langchain_object variable to built_object to improve semantics
🔨 refactor(worker.py): rename langchain_object variable to graph for better clarity
2023-09-22 10:45:02 -03:00
anovazzi1
795bf73752
Filter Menu Components on Click Edge (#932)
This branch implements the edge filtering feature.
2023-09-21 21:08:47 -03:00
anovazzi1
8275a9c2c1 chore(parameterComponent): remove unnecessary ts-ignore comments
fix(extraSidebarComponent): remove unnecessary if condition in handleBlur function
2023-09-21 21:00:17 -03:00
anovazzi1
a12a7fd1cc
New "more" nodeToolbar button (#952)
This PR introduces a new feature to enhance the editing capabilities of
nodes in our application. We've added a "More" button to the
nodeToolbar, which, when clicked, reveals additional options for editing
nodes.
2023-09-21 20:05:41 -03:00
anovazzi1
1796e349c2 fix(nodeToolbarComponent): fix indentation and formatting issues in the code
feat(nodeToolbarComponent): add support for minimal mode in the toolbar
feat(nodeToolbarComponent): add functionality to show/hide advanced options in the toolbar
2023-09-21 20:03:47 -03:00
anovazzi1
b18a91deb0 code format 2023-09-21 19:23:53 -03:00
anovazzi1
187724342f update message format to put api-key as header 2023-09-21 19:23:53 -03:00
igorrCarvalho
ac67fff000 Refactor: Make changes to api_key only show up in codetabs when authenticated 2023-09-21 19:23:53 -03:00
igorrCarvalho
b1ef10e79b Refactor: update Code Tabs PopUp with api_key 2023-09-21 19:23:53 -03:00
igorrCarvalho
7cead25c8b Remove console.log 2023-09-21 19:07:50 -03:00
igorrCarvalho
2c2197ecad Refactor: Make minimize button show up in the More button popup 2023-09-21 19:06:30 -03:00
igorrCarvalho
b7b7a93cdd formated code 2023-09-21 15:20:36 -03:00
igorrCarvalho
e4ba7364bb merge dev into feat-more 2023-09-21 15:17:08 -03:00
Cristhian Zanforlin Lousa
610e94759a 🐛 fix(api.tsx): update Authorization header to use access_token from cookies instead of accessToken variable to fix authentication issue 2023-09-21 11:50:01 -03:00
anovazzi1
8f01f5c838 chore(example.spec.ts): remove example.spec.ts test file
The example.spec.ts test file was removed as it is no longer needed.
2023-09-21 11:02:37 -03:00
igorrCarvalho
3cbe046e08 Refactor: Disable signUp button when form is invalid 2023-09-21 10:54:20 -03:00
Gabriel Luiz Freitas Almeida
c10b9927e1
Release 0.4.21 (#950) 2023-09-21 10:05:31 -03:00
Gabriel Luiz Freitas Almeida
1bb9b1c363
Bump version to 0.4.21 (#949) 2023-09-21 10:02:40 -03:00
Gabriel Luiz Freitas Almeida
f6ea541477 🔧 chore(Makefile): update mypy command to exclude .venv folder and only check files in ./src/backend/langflow directory 2023-09-21 10:01:37 -03:00
Gabriel Luiz Freitas Almeida
81e8a0dcc6 📦 chore(pyproject.toml): update langchain dependency to version 0.0.271 for improved functionality
🐛 fix(test_llms_template.py): update description of model["description"] to match the correct format
2023-09-21 09:59:53 -03:00
Gabriel Luiz Freitas Almeida
9920bfd7e0
🔧 chore(langfuse.py): add support for configurable Langfuse host to improve flexibility and maintainability (#948)
Closes #947
2023-09-21 06:42:50 -03:00
Gabriel Luiz Freitas Almeida
1ebf4e5b24 🔧 chore(langfuse.py): add support for configurable Langfuse host to improve flexibility and maintainability 2023-09-21 06:41:23 -03:00
Gabriel Luiz Freitas Almeida
4c6cd57a1f
fix(util.py): fix IndentationError while parsing from source code. (#944) 2023-09-21 06:28:49 -03:00
anovazzi1
8a416c235b
Expand floatComponent Input Range (#889)
As detailed in OpenAI's documentation and GitHub issue #884, two float
fields in OpenAI have a range of -2 to 2.
For reference, visit:

Presence Penalty:
https://platform.openai.com/docs/api-reference/chat/create#presence_penalty
Frequency Penalty:
https://platform.openai.com/docs/api-reference/chat/create#frequency_penalty
Currently, FloatComponent only accepts values within [0-1]. This pull
request expands its range to [-2 to 2].
2023-09-20 23:14:30 -03:00
anovazzi1
0fe70a8347
Front tests (#945)
finish tests for login
2023-09-20 22:59:00 -03:00
anovazzi1
55b71605ea login tests finished 2023-09-20 22:57:37 -03:00
anovazzi1
21605d09ba test(login.spec.ts): add test case to check if clicking on "Community Examples" button displays the community pages flows panel 2023-09-20 20:49:07 -03:00
anovazzi1
c6f6d69164 fix(login.spec.ts): update test description to be more specific and descriptive
feat(login.spec.ts): add test case for successful login with mocked API response
2023-09-20 20:48:14 -03:00
anovazzi1
b2f14793e3 migrate progress and install playwrite 2023-09-20 19:53:25 -03:00
Gabriel Luiz Freitas Almeida
4aaeda8aa8 🔥 refactor(main.py): remove unused import and initialize_database function call to improve code cleanliness and remove unnecessary database initialization
🔥 refactor(main.py): remove initialize_database function call from app startup event to improve code cleanliness and remove unnecessary database initialization
🔥 refactor(base.py): remove unused teardown method and add set_ready method to improve code cleanliness and provide a way to set service readiness
2023-09-20 18:44:39 -03:00
Gabriel Luiz Freitas Almeida
f5c20ac166 🐛 fix(manager.py): call set_ready() method on the created service to indicate it is ready
🐛 fix(auth.py): validate superuser and superuser_password fields if AUTO_LOGIN is true
 feat(utils.py): add initialize_database() function to initialize the database connection
 feat(utils.py): call initialize_database() before setting up the superuser if the database manager is ready
2023-09-20 18:42:52 -03:00
Gabriel Luiz Freitas Almeida
4bfbb8d3aa 🔧 fix(conftest.py): remove unused imports and commented out code to improve code readability and maintainability
 feat(conftest.py): add support for LANGFLOW_AUTO_LOGIN environment variable to enable auto login during testing
2023-09-20 18:42:18 -03:00
Gabriel Luiz Freitas Almeida
2db9fa8ce8 🔧 chore(Makefile): add install_backend target to tests target to ensure backend dependencies are installed before running tests 2023-09-20 18:41:41 -03:00
Gabriel Luiz Freitas Almeida
20e14d49b4 🐛 fix(test_database.py): remove unused imports to improve code readability
 feat(test_database.py): add support for session management using session_getter to improve code organization and maintainability
🐛 fix(test_endpoints.py): remove unused imports to improve code readability
 feat(test_endpoints.py): add support for session management using session_getter to improve code organization and maintainability
🐛 fix(test_login.py): remove unused imports to improve code readability
 feat(test_login.py): add support for session management using session_getter to improve code organization and maintainability
2023-09-20 18:40:19 -03:00
Gabriel Luiz Freitas Almeida
b441d42559 🐛 fix(test_setup_superuser.py): fix test_setup_superuser to correctly assert the number of calls to mock_create_super_user
 feat(test_setup_superuser.py): add support for testing the creation of superuser with different credentials
2023-09-20 18:36:12 -03:00
Gabriel Luiz Freitas Almeida
b4f48f1ad9 🔧 fix(test_user.py): update imports to match changes in project structure
🔧 fix(test_user.py): update fixtures to use session_getter and get_db_manager functions for session management
 feat(test_user.py): add support for creating and managing database sessions using session_getter and get_db_manager functions
🔧 fix(test_user.py): update test_user_waiting_for_approval function to use session_getter and get_db_manager functions for session management
🔧 fix(test_user.py): update test_data_consistency_after_delete function to use session_getter and get_db_manager functions for session management
🔧 fix(test_user.py): update test_inactive_user function to use session_getter and get_db_manager functions for session management
2023-09-20 18:35:38 -03:00
anovazzi1
2459833b87
Feat: Introducing Node Minimization Feature (#906)
This pull request introduces a new feature that enhances the usability
and organization of our application's flow. We've added a convenient
"Minimize Node" button, empowering users to declutter their workspace
with a single click. This feature allows users to focus on the most
relevant nodes, resulting in a more efficient and visually pleasing
workflow.
2023-09-20 18:21:37 -03:00
anovazzi1
238dbf1b5f format code 2023-09-20 18:20:43 -03:00
anovazzi1
82a6ad8d87 set auto_login to false to keep develop with login 2023-09-20 18:20:22 -03:00
Gabriel Luiz Freitas Almeida
7733904378 Merge remote-tracking branch 'origin/dev' into add_cli_options_superuser 2023-09-20 16:16:52 -03:00