Commit graph

  • 8fda2e207c refactor(ApiKeysPage): update the message displayed when there are no keys assigned to the user for better clarity and user experience anovazzi1 2023-08-25 19:31:24 -03:00
  • c296fc18af removed id column from api keys table anovazzi1 2023-08-25 19:29:43 -03:00
  • 6867811626 Merge branch 'login' of https://github.com/logspace-ai/langflow into login Cristhian Zanforlin Lousa 2023-08-25 19:08:44 -03:00
  • 89d69af7f8 🐛 fix(authContext.tsx): initialize accessToken and refreshToken with values from cookies to maintain user session ✨ feat(authContext.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port 🐛 fix(tabsContext.tsx): import missing AuthContext and use getAuthentication function to conditionally fetch data 🐛 fix(typesContext.tsx): import missing AuthContext and use getAuthentication function to conditionally fetch data 🐛 fix(api.tsx): add check to not refresh token if refreshToken is "auto" Cristhian Zanforlin Lousa 2023-08-25 19:08:38 -03:00
  • 5efdde4aca fix(API): remove unused user_id parameter in getApiKey function fix(API): remove unused user_id parameter in createApiKey function and add name parameter fix(API): change deleteApiKey parameter from user_id to api_key fix(SecretKeyModal): change createApiKey parameter from data to apiKeyName fix(ApiKeysPage): remove unused user_id parameter in getApiKey function and add console.log for debugging anovazzi1 2023-08-25 18:50:26 -03:00
  • a31d1f104d 🐛 fix(api_key.py): add hashed_api_key field to ApiKey model to store hashed version of api_key 🐛 fix(crud.py): update create_api_key function to use hashed version of generated_api_key and mask the api_key for security reasons Gabriel Luiz Freitas Almeida 2023-08-25 18:35:08 -03:00
  • 927379b245 fix(manager.py): catch all exceptions instead of just TypeError when loading JSON payload to handle any parsing errors feat(index.tsx): add authentication token to WebSocket URL to authenticate the user anovazzi1 2023-08-25 18:15:59 -03:00
  • 38eb1a2d79 Merge branch 'login' of https://github.com/logspace-ai/langflow into login Cristhian Zanforlin Lousa 2023-08-25 17:54:57 -03:00
  • 1f42910c55 🐛 fix(tabsContext.tsx): add delay to refreshFlows function to prevent race condition with API call 🐛 fix(typesContext.tsx): add delay to useEffect to prevent race condition with API call Cristhian Zanforlin Lousa 2023-08-25 17:54:37 -03:00
  • 928d696751 Merge branch 'login' of github.com:logspace-ai/langflow into login igorrCarvalho 2023-08-25 17:49:08 -03:00
  • 10ba3381e0 Refactor: Move github stars context to darkContext igorrCarvalho 2023-08-25 17:48:39 -03:00
  • d2f5a5d564 moved api interceptor anovazzi1 2023-08-25 17:21:54 -03:00
  • 1f99f59581 🔧 chore(Chroma.py): add type ignore comment to import statement for chromadb module to suppress type checking error Gabriel Luiz Freitas Almeida 2023-08-25 17:19:40 -03:00
  • 17cbc64273 update browser route context location anovazzi1 2023-08-25 17:17:09 -03:00
  • 1ed89cbbad merge fix Cristhian Zanforlin Lousa 2023-08-25 17:10:54 -03:00
  • 4e1710bcc7 🐛 fix(chat.py): add missing import statement for Query from fastapi 🐛 fix(chat.py): add missing import statement for Session from sqlmodel 🐛 fix(chat.py): add missing import statement for get_session from langflow.services.utils 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_active_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for WebSocket from fastapi 🐛 fix(chat.py): add missing import statement for WebSocketException from fastapi 🐛 fix(chat.py): add missing import statement for status from fastapi 🐛 fix(chat.py): add missing import statement for APIRouter from fastapi 🐛 fix(chat.py): add missing import statement for Depends from fastapi 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_active_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for get_session from langflow.services.utils 🐛 fix(chat.py): add missing import statement for Session from sqlmodel 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_user from langflow.services.auth.utils 🐛 fix(chat.py): add missing import statement for HTTPException from fastapi 🐛 fix(chat.py): add missing import statement for get_current_user from langflow Gabriel Luiz Freitas Almeida 2023-08-25 17:01:32 -03:00
  • fc32ee63e1 🐛 fix(alembic): change "user_id" column in "flow" table to be nullable to handle existing data without a user_id Gabriel Luiz Freitas Almeida 2023-08-25 16:31:24 -03:00
  • a290a68605 🔧 chore(update_all_tables.py): remove unused code block to improve code readability and maintainability Gabriel Luiz Freitas Almeida 2023-08-25 16:30:16 -03:00
  • 812864eded 🔧 fix(test_agents_template.py): update test functions to include logged_in_headers parameter to test authenticated requests 🔧 fix(test_chains_template.py): update test functions to include logged_in_headers parameter to test authenticated requests 🔧 fix(test_endpoints.py): update test_get_all function to include logged_in_headers parameter to test authenticated requests 🔧 fix(test_llms_template.py): update test functions to include logged_in_headers parameter to test authenticated requests 🔧 fix(test_prompts_template.py): update test functions to include logged_in_headers parameter to test authenticated requests 🔧 fix(test_vectorstore_template.py): update test functions to include logged_in_headers parameter to test authenticated requests Gabriel Luiz Freitas Almeida 2023-08-25 16:30:01 -03:00
  • 1364fa0e0f 🔧 chore(conftest.py): change scope of client fixture to module and add autouse=True to ensure it is automatically used by all tests in the module Gabriel Luiz Freitas Almeida 2023-08-25 16:29:51 -03:00
  • aa633ff2de 🐛 fix(utils.py): change auth_scheme_dependency function to be async to match its usage in get_current_user function Gabriel Luiz Freitas Almeida 2023-08-25 16:29:43 -03:00
  • e2122567be 🐛 fix(base.py): remove unnecessary user_id parameter from _build_each_node_in_params_dict() method call in Vertex class Gabriel Luiz Freitas Almeida 2023-08-25 16:29:34 -03:00
  • 89ea8e45f6 🔧 chore(login.py): import get_current_active_user function to improve code readability and maintainability ✨ feat(login.py): add current_user dependency to refresh_token endpoint to ensure only authenticated users can refresh their tokens Gabriel Luiz Freitas Almeida 2023-08-25 16:29:24 -03:00
  • 132642347f 🔧 fix(endpoints.py): add current_user dependency to get_all endpoint to enforce authentication and authorization 🚀 feat(endpoints.py): import User model and get_current_active_user function to enable authentication and authorization in get_all endpoint Gabriel Luiz Freitas Almeida 2023-08-25 16:29:15 -03:00
  • 2af4508e5e ✨ feat(main.py): add health endpoint to check the status of the application Gabriel Luiz Freitas Almeida 2023-08-25 16:28:56 -03:00
  • 648bb25b3f 🔧 chore(update_all_tables.py): add missing index and foreign key constraints to apikey table 🔧 chore(update_all_tables.py): add missing index and foreign key constraints to flow table Gabriel Luiz Freitas Almeida 2023-08-25 15:31:16 -03:00
  • 8b99cc06c4 🔧 fix(update_all_tables.py): handle potential OperationalError when adding columns to 'apikey' table ✨ feat(update_all_tables.py): add support for 'user_id' column in 'apikey' table ✨ feat(update_all_tables.py): add support for 'created_at' column in 'apikey' table ✨ feat(update_all_tables.py): add support for index on 'name' column in 'apikey' table ✨ feat(update_all_tables.py): add support for index on 'user_id' column in 'apikey' table ✨ feat(update_all_tables.py): add foreign key constraint on 'user_id' column in 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping 'create_at' column from 'apikey' table ✨ feat(update_all_tables.py): add support for 'user_id' column in 'flow' table ✨ feat(update_all_tables.py): add support for index on 'user_id' column in 'flow' table ✨ feat(update_all_tables.py): add foreign key constraint on 'user_id' column in 'flow' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping foreign key constraint from 'flow' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping index on 'user_id' column from 'flow' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping 'user_id' column from 'flow' table 🔧 fix(update_all_tables.py): handle potential OperationalError when adding 'create_at' column to 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping foreign key constraint from 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping index on 'user_id' column from 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping index on 'name' column from 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when altering 'name' column in 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping 'user_id' column from 'apikey' table 🔧 fix(update_all_tables.py): handle potential OperationalError when dropping 'created_at' column from 'apikey' table Gabriel Luiz Freitas Almeida 2023-08-25 15:28:49 -03:00
  • 706cdc0874 🚀 feat(alembic): add migration script to update all tables Gabriel Luiz Freitas Almeida 2023-08-25 15:25:09 -03:00
  • 853ce351c9 🐛 fix(chat.py): add missing import statement for get_current_active_user function ✨ feat(chat.py): add current_user dependency to chat and init_build endpoints to enforce authentication and authorization 🔧 refactor(chat.py): pass user_id to vertex.build() method in stream_build endpoint to associate the build with the current user Gabriel Luiz Freitas Almeida 2023-08-25 15:24:45 -03:00
  • b41b3038f3 🔄 refactor(login.py): update import statement for Token model to match new location in schemas module Gabriel Luiz Freitas Almeida 2023-08-25 15:23:37 -03:00
  • 3d650c8491 ✨ feat(schemas.py): add Token schema to represent access and refresh tokens in API responses Gabriel Luiz Freitas Almeida 2023-08-25 15:21:52 -03:00
  • d8f5efabad 🐛 fix(loading.py): add type hinting for TYPE_CHECKING to improve code readability 🐛 fix(loading.py): add optional user_id parameter to instantiate_class and instantiate_based_on_type functions to support user-specific custom components ✨ feat(loading.py): modify instantiate_custom_component function to use user_id parameter and improve code readability Gabriel Luiz Freitas Almeida 2023-08-25 15:21:38 -03:00
  • 1a50bcd183 🐛 fix(base.py): change return type of generator_build method to Generator[Vertex, None, None] for better type hinting and clarity 🐛 fix(base.py): add optional user_id parameter to _build and _build_list_of_nodes_and_update_params methods in Vertex class to support building with user-specific data 🐛 fix(base.py): add optional user_id parameter to _get_and_instantiate_class method in Vertex class to support building with user-specific data 🐛 fix(custom_component.py): add user_id attribute to CustomComponent class to store the user ID associated with the component 🐛 fix(custom_component.py): add user_id parameter to list_flows method in CustomComponent class to filter flows by user ID 🐛 fix(custom_component.py): add user_id parameter to get_flow method in CustomComponent class to filter flows by user ID 🐛 fix(conftest.py): add client parameter to active_user fixture in tests to fix missing dependency error Gabriel Luiz Freitas Almeida 2023-08-25 15:19:31 -03:00
  • c268b2be17 🔥 refactor(models): remove Token model and references to it to simplify the codebase and remove unused code 🔥 refactor(test_custom_component.py): remove unused fixture and imports to clean up the test file 🔧 chore(test_custom_component.py): update component fixture to include user_id parameter for testing purposes Gabriel Luiz Freitas Almeida 2023-08-25 15:19:13 -03:00
  • 82826d6b44 fix(constants.ts): update BASE_URL_API to "/api/v1/" to match backend API endpoint fix(API/index.ts): update API endpoints to use BASE_URL_API instead of hardcoding "/api/v1/" anovazzi1 2023-08-25 15:15:19 -03:00
  • 0a4c19082d 📦 chore(pyproject.toml): add markupsafe dependency to improve compatibility and security 🔒 chore(pyproject.toml): update black dependency to version 23.1.0 for development purposes Gabriel Luiz Freitas Almeida 2023-08-25 11:16:08 -03:00
  • dae856d0f6 Added readme for docker example Guangya Liu 2023-08-24 12:28:42 -04:00
  • b3c0f3b853 🔧 chore(main.tf): add Terraform backend configuration for S3 to store state remotely Matheus Jacques 2023-08-25 18:19:42 +02:00
  • 3b2bfd06cc 🔧 fix(test_database.py): fix test_create_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_read_flows function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_read_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_update_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_delete_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_create_flows function signature to include logged_in_headers parameter 🔧 fix(test_database.py): fix test_upload_file function signature to include logged_in_headers parameter 🔧 fix(test_database.py): fix test_download_file function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_create_flow_with_invalid_data function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_get_nonexistent_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_update_flow_idempotency function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_update_nonexistent_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_delete_nonexistent_flow function signature to include active_user and logged_in_headers parameters 🔧 fix(test_database.py): fix test_read_empty_flows function signature to include active_user and logged_in_headers parameters Gabriel Luiz Freitas Almeida 2023-08-25 12:49:57 -03:00
  • 00e5f70fe1 🔀 chore(user.py): add relationship to flows in User model Gabriel Luiz Freitas Almeida 2023-08-25 12:49:46 -03:00
  • b5e4df9943 🐛 fix(flows.py): add missing import statement for User model 🐛 fix(flows.py): add missing import statement for TYPE_CHECKING ✨ feat(flows.py): add user_id field to FlowCreate model to allow specifying the user for a new flow ✨ feat(flows.py): add user_id field to FlowRead model to include the user_id in the response ✨ feat(flows.py): add user_id field to Flow model and create a relationship with User model ✨ feat(flows.py): add current_user dependency to create_flow endpoint to set the user_id for a new flow ✨ feat(flows.py): add current_user dependency to read_flows endpoint to filter flows by current user ✨ feat(flows.py): add current_user dependency to read_flow endpoint to filter flow by current user ✨ feat(flows.py): add current_user dependency to update_flow endpoint to filter flow by current user ✨ feat(flows.py): add current_user dependency to delete_flow endpoint to filter flow by current user ✨ feat(flows.py): add current_user dependency to create_flows endpoint to set the user_id for new flows ✨ feat(flows.py): add current_user dependency to upload_file endpoint to set the user_id for new flows ✨ feat(flows.py): add current_user dependency to download_file endpoint to filter flows by current user 🐛 fix(flow.py): add missing import statement for User model ✨ feat(flow.py): add user_id field to Flow model to associate a flow with a user Gabriel Luiz Freitas Almeida 2023-08-25 12:49:24 -03:00
  • eab34e2fdc
    Adds Tests for Login, Users and API keys (#821) Gabriel Luiz Freitas Almeida 2023-08-25 15:27:02 +00:00
  • 16695c8241
    Merge branch 'login' into authentication Gabriel Luiz Freitas Almeida 2023-08-25 15:23:22 +00:00
  • a4aeff6d79 🔧 fix(api_key.py): import missing dependencies and fix type annotations in api_key.py 🔧 fix(api_key.py): fix type annotations and import in api_key.py 🔧 fix(api_key.py): fix type annotations and Gabriel Luiz Freitas Almeida 2023-08-25 12:21:14 -03:00
  • 950b9d179b 🔥 refactor(user/utils.py): remove unused code and imports from user/utils.py module ✨ feat(test_api_key.py): add tests for API key creation, retrieval, and deletion ✨ feat(test_user.py): remove unused fixtures and imports from test_user.py module Gabriel Luiz Freitas Almeida 2023-08-25 12:05:54 -03:00
  • ba081e81b6 🔀 chore(user.py): add type hinting for ApiKey import to improve code readability 🔀 chore(user.py): add relationship between User and ApiKey models to establish a one-to-many relationship Gabriel Luiz Freitas Almeida 2023-08-25 12:05:20 -03:00
  • 7783f4532e 📦 chore(user/crud.py): add CRUD operations for User model in database 🔒 fix(user/crud.py): add validation to prevent duplicate usernames during user update 🔄 refactor(user/crud.py): update user attributes and last_login_at timestamp during user update 🐛 fix(user/crud.py): handle IntegrityError during user update and rollback transaction Gabriel Luiz Freitas Almeida 2023-08-25 12:04:51 -03:00
  • e42686738c 📦 chore(api_key/crud.py): add CRUD functions for managing API keys in the database Gabriel Luiz Freitas Almeida 2023-08-25 12:04:20 -03:00
  • 82fbeace06 🔀 chore(api_key): update import and export names in __init__.py for better clarity and consistency Gabriel Luiz Freitas Almeida 2023-08-25 12:03:51 -03:00
  • edd58705e4 🔨 refactor(schemas.py): update import statement for ApiKeyRead to reflect new file structure Gabriel Luiz Freitas Almeida 2023-08-25 12:03:03 -03:00
  • eb02220aad ✨ feat(api_key.py): add GET and POST routes for retrieving and creating API keys 🐛 fix(api_key.py): fix delete_api_key route to use correct dependencies and handle exceptions properly Gabriel Luiz Freitas Almeida 2023-08-25 12:02:32 -03:00
  • 359bea1286 fix issue, the custom component cannot be load success by setting env variables vincent-pli 2023-08-25 22:57:25 +08:00
  • 614d85b7b7 📦 chore(pyproject.toml): add markupsafe dependency to improve compatibility and security 🔒 chore(pyproject.toml): update black dependency to version 23.1.0 for development purposes Gabriel Luiz Freitas Almeida 2023-08-25 11:16:08 -03:00
  • 8d1e1b8710 🔒 chore(api_key.py): update hardcoded API key value to improve security Gabriel Luiz Freitas Almeida 2023-08-25 10:25:28 -03:00
  • fc93e4ced0 🔀 chore(test_database.py): update import statement for Session from sqlalchemy.orm to sqlmodel to match the library being used Gabriel Luiz Freitas Almeida 2023-08-25 10:24:33 -03:00
  • 81816baada 🔧 fix(login.py): update import statement from sqlalchemy.orm to sqlmodel.Session for Session class 🔧 fix(users.py): update type annotation for current_user parameter from Session to User 🔧 fix(utils.py): update import statement from sqlalchemy.orm to sqlmodel.Session 🔧 fix(utils.py): update type annotation for token parameter from Annotated to Union[Coroutine, str] 🔧 fix(utils.py): update type annotation for get_user_by_username function return type from User to Union[User, None] 🔧 fix(utils.py): update type annotation for get_user_by_id function return type from User to Union[User, None] 🔧 fix(manager.py): update type annotation for dependencies parameter in register_factory method from List to Optional[List] Gabriel Luiz Freitas Almeida 2023-08-25 10:24:01 -03:00
  • 8411922a07 ✨ feat(test_user.py): add tests for user-related functionalities 🐛 fix(test_user.py): fix typo in test_user_waiting_for_approval function name 🐛 fix(test_user.py): fix typo in test_deactivated_user_cannot_access function name 🐛 fix(test_user.py): fix typo in test_data_consistency_after_update function name 🐛 fix(test_user.py): fix typo in test_data_consistency_after_delete function name 🐛 fix(test_user.py): fix typo in test_inactive_user function name 🐛 fix(test_user.py): fix typo in test_normal_user_cant_read_all_users function name 🐛 fix(test_user.py): fix typo in test_patch_user_wrong_id function name 🐛 fix(test_user.py): fix typo in test_delete_user_wrong_id function name 🐛 fix(test_user.py): fix typo in test_normal_user_cant_delete_user function name ✨ feat(test_user.py): add test_add_super_user_for_testing_purposes_delete_me_before_merge_into_dev function Gabriel Luiz Freitas Almeida 2023-08-25 10:17:46 -03:00
  • 7b897906b9 ✨ feat(test_login.py): add tests for login functionality Gabriel Luiz Freitas Almeida 2023-08-25 10:17:36 -03:00
  • 7e3d329df9 🔧 chore(auth.py): add API_V1_STR constant to improve code readability and maintainability 🐛 fix(auth.py): update tokenUrl in oauth2_scheme to use API_V1_STR constant for consistency Gabriel Luiz Freitas Almeida 2023-08-25 10:17:25 -03:00
  • 92a7ae6be7 🐛 fix(utils.py): remove unnecessary type casting in get_user_by_username and get_user_by_id functions 🐛 fix(utils.py): fix update_user function to correctly update user attributes and handle username conflicts Gabriel Luiz Freitas Almeida 2023-08-25 10:16:04 -03:00
  • 4517f8ad5c 🔧 fix(service.py): add request parameter to run_oauth2_scheme method in AuthManager class to handle FastAPI request object 🔧 fix(utils.py): add request parameter to auth_scheme_dependency function to handle FastAPI request object 🔧 fix(utils.py): change get_current_active_user function to synchronous and remove async keyword ✨ feat(utils.py): add get_current_active_superuser function to check if the current user is an active superuser Gabriel Luiz Freitas Almeida 2023-08-25 10:11:24 -03:00
  • e4cbc0a07f 🐛 fix(users.py): change router tag from "Login" to "Users" for better categorization ✨ feat(users.py): add status code 201 to the response of the add_user endpoint to indicate successful creation of a new user 🐛 fix(users.py): update the usage of UserCreate model to create a new User instance using User.from_orm(user) for better compatibility ✨ feat(users.py): add current_user parameter to the read_current_user endpoint to enforce authentication and authorization ✨ feat(users.py): add current_user parameter to the read_all_users endpoint to enforce authentication and authorization ✨ feat(users.py): add current_user parameter to the delete_user endpoint to enforce authentication and authorization. Also, add validation checks to prevent deleting own user account and unauthorized deletion of users. Gabriel Luiz Freitas Almeida 2023-08-25 10:10:57 -03:00
  • 43b2d62661 🔀 chore(router.py): add login_router to the APIRouter to include login functionality 🔀 chore(__init__.py): import and include login_router in the APIRouter to enable login functionality 🔀 chore(login.py): add tags to the login router to categorize it as "Login" in the API documentation Gabriel Luiz Freitas Almeida 2023-08-25 10:10:19 -03:00
  • 6b82b730cd 🔥 refactor(auth): remove unused code and dependencies in auth module 🔥 refactor(routers): remove unused code and dependencies in routers module Gabriel Luiz Freitas Almeida 2023-08-25 10:09:37 -03:00
  • 7987a10f92
    Fixes bug when saving name and description, TextSplitters (#818) Gabriel Luiz Freitas Almeida 2023-08-25 02:01:13 +00:00
  • 9249e254fb
    Merge branch 'main' into release Gabriel Luiz Freitas Almeida 2023-08-25 01:59:38 +00:00
  • 748f38e8c4
    Fixed bug where name is not changed when description changes (#813) Gabriel Luiz Freitas Almeida 2023-08-25 01:58:09 +00:00
  • f19e745b77
    New Text Splitters (#817) Gabriel Luiz Freitas Almeida 2023-08-25 01:56:26 +00:00
  • a28df1f08f 📝 docs(LanguageRecursiveTextSplitter.py): update documentation link to point to the correct URL 🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency 🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling 🔨 refactor(LanguageRecursiveTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling 🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'documents' parameter from Document to list[Document] and change return type from Document to list[Document] to improve clarity and consistency 🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'separators' parameter from Optional[str] to Optional[list[str]] and handle conversion to list of escaped characters to improve flexibility and error handling 🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_overlap' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling 🔨 refactor(RecursiveCharacterTextSplitter.py): change type hints for the 'chunk_size' parameter from Optional[int] to Optional[str] and handle conversion to int to improve flexibility and error handling Gabriel Luiz Freitas Almeida 2023-08-24 22:52:16 -03:00
  • c9f4969080 🐛 fix(types.py): fix regex pattern in extract_type_from_optional function to correctly extract type from optional field_type 🐛 fix(types.py): fix logic in add_new_custom_field function to correctly set is_list flag when field_type contains "list" keyword ✨ feat(types.py): add field_contains_list variable to check if field_type contains "list" keyword to improve semantics in add_new_custom_field function Gabriel Luiz Freitas Almeida 2023-08-24 22:49:52 -03:00
  • 86927d10d3 🔧 fix(types.py): add support for extracting inner type from list field types in process_type function Gabriel Luiz Freitas Almeida 2023-08-24 22:37:30 -03:00
  • b326a7e246 📦 chore(pyproject.toml): update package version from 0.4.15 to 0.4.16 🔧 chore(pyproject.toml): add pillow package as a dependency for the project Gabriel Luiz Freitas Almeida 2023-08-24 22:25:16 -03:00
  • 0649b61fca 📦 chore(LanguageRecursiveTextSplitter.py): add LanguageRecursiveTextSplitter component to split text into chunks based on language 📝 docs(LanguageRecursiveTextSplitter.py): add documentation link for LanguageRecursiveTextSplitter component 🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build_config method to use options from Language enum for separator_type 🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split text into chunks based on specified length and overlap 🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to handle chunk_size and chunk_overlap as integers 🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to use RecursiveCharacterTextSplitter from langchain.text_splitter 🔧 refactor(LanguageRecursiveTextSplitter.py): refactor build method to split documents using RecursiveCharacterTextSplitter and return the chunks Gabriel Luiz Freitas Almeida 2023-08-24 22:24:07 -03:00
  • 86730437a5 ✨ feat(RecursiveCharacterTextSplitter.py): add RecursiveCharacterTextSplitter component to split text into chunks of a specified length Gabriel Luiz Freitas Almeida 2023-08-24 22:23:45 -03:00
  • 383c9dc5ff 📝 docs(text-splitters.mdx): improve formatting and add missing information about LanguageRecursiveTextSplitter and its parameters 🐛 fix(text-splitters.mdx): fix typo in the description of separators parameter in RecursiveCharacterTextSplitter Gabriel Luiz Freitas Almeida 2023-08-24 22:23:27 -03:00
  • 40ab6b1e87 🔥 refactor(config.yaml): remove RecursiveCharacterTextSplitter from the config file as it is no longer used 📚 docs(config.yaml): update documentation link for CharacterTextSplitter in the config file Gabriel Luiz Freitas Almeida 2023-08-24 22:22:31 -03:00
  • 95ff2a7f6b 🔧 chore(util.py): add missing import for 'Document' from langchain.schema 🔧 chore(util.py): add missing type hint for 'documents' parameter in build_loader_repr_from_documents function 🔧 chore(util.py): add logic to calculate average document length and display summary information in build_loader_repr_from_documents function Gabriel Luiz Freitas Almeida 2023-08-24 22:22:09 -03:00
  • f950bd8a2c
    Added readme for docker example (#815) Gabriel Luiz Freitas Almeida 2023-08-25 00:25:12 +00:00
  • 6de92ea788
    Fixes bug in websocket and updates dependencies (#816) Gabriel Luiz Freitas Almeida 2023-08-25 00:23:40 +00:00
  • 04b14747a2
    Merge branch 'main' into release Gabriel Luiz Freitas Almeida 2023-08-25 00:23:28 +00:00
  • 43ca5e32d7 🔖 chore(pyproject.toml): update package version from 0.4.14 to 0.4.15 🔖 chore(pyproject.toml): update gunicorn package from version 21.1.0 to 21.2.0 🔖 chore(pyproject.toml): update chromadb package from version 0.3.21 to 0.3.0 🔖 chore(pyproject.toml): update rich package from version 13.4.2 to 13.5.0 🔖 chore(pyproject.toml): update unstructured package from version 0.7.0 to 0.10.0 🔖 chore(pyproject.toml): update pypdf package from version 3.11.0 to 3.15.0 🔖 chore(pyproject.toml): update fake-useragent package from version 1.1.3 to 1.2.1 🔖 chore(pyproject.toml): update qdrant-client package from version 1.3.0 to 1.4.0 🔖 chore(pyproject.toml): update weaviate-client package from version 3.21.0 to 3.23.0 🔖 chore(pyproject.toml): update cohere package from version 4.11.0 to 4.21.0 Gabriel Luiz Freitas Almeida 2023-08-24 21:20:33 -03:00
  • 32de3e1f0a 🔧 chore(Makefile): exclude .venv folder from mypy linting to improve performance and avoid unnecessary errors Gabriel Luiz Freitas Almeida 2023-08-24 21:20:11 -03:00
  • 9fb1a26277 🐛 fix(manager.py): catch all exceptions instead of just TypeError when loading JSON payload to improve error handling and prevent crashes Gabriel Luiz Freitas Almeida 2023-08-24 21:10:34 -03:00
  • 151d01f506 🔧 chore(Makefile): remove unnecessary semicolons in Makefile commands 🔧 chore(Makefile): remove unnecessary package-lock.json deletion in install_frontendc command ✨ feat(ParameterComponent): add KeypairListComponent to handle key-value pairs 🔧 chore(KeypairListComponent): create KeypairListComponent to handle key-value pairs 🔧 chore(KeypairListComponent): add handleChangeKey and handleChangeValue functions to handle changes in key-value pairs 🔧 chore(KeypairListComponent): add button to add new key-value pair and remove existing key-value pair 🔧 chore(KeypairListComponent): add disabled prop to disable editing of key-value pairs 🔧 chore(KeypairListComponent): add editNode prop to style input fields in edit mode 🔧 chore(types): add KeyPairListComponent type definition Cristhian Zanforlin Lousa 2023-08-24 21:00:38 -03:00
  • 1e5fc97013 Bug fixed Lucas Oliveira 2023-08-24 20:21:09 -03:00
  • a1ea788d45 Feat: Make edges with data work on Examples too igorrCarvalho 2023-08-24 19:53:00 -03:00
  • 9b3e4f27a5 fix(tabsContext.tsx): handle error message properly when saving changes in the tabs provider anovazzi1 2023-08-24 19:50:17 -03:00
  • cea8acacd8 update type to avoid undefined anovazzi1 2023-08-24 19:42:48 -03:00
  • bf568ad22f update attribute anovazzi1 2023-08-24 19:41:23 -03:00
  • aaf34d49bb
    Fix success messages to work only after backend response (#804) anovazzi1 2023-08-24 17:59:40 -03:00
  • 544738ebef
    Merge branch 'login' into bugfix-msgSuccess anovazzi1 2023-08-24 17:58:25 -03:00
  • 3395a932aa Feat: add data to edges with source and handle info igorrCarvalho 2023-08-24 17:44:43 -03:00
  • 41ef2fd2f7 🔧 fix(alembic): fix indentation and formatting issues in add_apikey_table migration script ✨ feat(alembic): add support for creating apikey and user tables in the database 🔥 chore(alembic): remove flowstyle and component tables from the database schema Gabriel Luiz Freitas Almeida 2023-08-24 17:42:53 -03:00
  • 58121cc6ca 🔥 refactor(main.py): remove unused routers from the app to improve code cleanliness and reduce unnecessary imports Gabriel Luiz Freitas Almeida 2023-08-24 17:42:33 -03:00
  • d9cbf17b1a 🔄 chore(router.py): add users_router and api_key_router to the APIRouter to include the new routes for users and api keys 🔄 chore(__init__.py): add users_router and api_key_router to the __all__ list to include the new routes for users and api keys 🆕 feat(api_key.py): add new routes for retrieving, creating, and deleting API keys 🆕 feat(login.py): add new routes for user login, auto login, and token refresh 🆕 feat(schemas.py): add new schemas for API key response and users response 🆕 feat(users.py): add new routes for adding, reading, updating, and deleting users 🗑️ chore(health.py): remove health router as it is no longer needed 🔄 chore(utils.py): update import statements for User model and update_user_last_login_at function Gabriel Luiz Freitas Almeida 2023-08-24 17:41:41 -03:00
  • 6dbc06dc12 Merge remote-tracking branch 'origin/dev' into bugfix-msgSuccess anovazzi1 2023-08-24 17:41:26 -03:00
  • 704fc6a244
    fix: tweaks page (#807) anovazzi1 2023-08-24 17:40:36 -03:00
  • 24e84aa2fe Merge branch 'dev' into bugfix-msgSuccess anovazzi1 2023-08-24 17:39:52 -03:00
  • 1a51cc0848 📦 feat(api_key): add ApiKey model and related classes for database operations Gabriel Luiz Freitas Almeida 2023-08-24 17:32:26 -03:00
  • 668387dde8 Merge branch 'dev' into bugfix-tweakPage anovazzi1 2023-08-24 17:18:40 -03:00