Commit graph

5,462 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
9751c5cb62 🔒 test(test_setup_superuser.py): add mock for verify_password function to fix test failure 2023-10-03 18:14:32 -03:00
Gabriel Luiz Freitas Almeida
9c70a3fe20 🐛 fix(manager.py): add inspector to check if table "flow" exists before creating tables again
The change was made to fix a bug where the tables were being recreated even if they already existed. By adding an inspector to check if the table "flow" exists before recreating the tables, we can prevent unnecessary table creation and improve performance.
2023-10-03 18:13:41 -03:00
Gabriel Luiz Freitas Almeida
6618efc409 🔨 refactor(base.py): remove unused import from langchain module in base.py
🔨 refactor(base.py): remove unused import from langchain.utilities module in base.py
🔨 refactor(base.py): remove unused import from langchain.requests module in base.py
🔨 refactor(base.py): remove unused import from langchain.sql_database module in base.py
2023-10-03 17:59:48 -03:00
Gabriel Luiz Freitas Almeida
b3c515f231
Release 0.5.0a6 (#1001) 2023-10-03 17:41:12 -03:00
Gabriel Luiz Freitas Almeida
bf512e6636 🔖 chore(pyproject.toml): bump version from 0.5.0a5 to 0.5.0a6 for package release 2023-10-03 17:40:25 -03:00
Gabriel Luiz Freitas Almeida
dc559e61ae 🐛 fix(manager.py): refactor create_db_and_tables method to check if database and tables already exist before creating them 2023-10-03 17:39:50 -03:00
Gabriel Luiz Freitas Almeida
a8f444656b
Release 0.5.0a5 (#1000) 2023-10-03 17:09:51 -03:00
Gabriel Luiz Freitas Almeida
fd02e2b869 🔖 chore(pyproject.toml): bump version from 0.5.0a4 to 0.5.0a5 for package release 2023-10-03 17:09:06 -03:00
Gabriel Luiz Freitas Almeida
ad406541f2 🐛 fix(manager.py): improve readability by splitting a long line into multiple lines
🐛 fix(utils.py): add comment to explain the reason for the check
2023-10-03 17:08:38 -03:00
Gabriel Luiz Freitas Almeida
65c6516575 🔀 chore(constants.py): update import statements to use the correct module paths for PromptTemplate
🔀 chore(utils.py): update import statements to use the correct module paths for PromptTemplate
🔀 chore(test_custom_component.py): update import statements to use the correct module paths for PromptTemplate
2023-10-03 17:05:59 -03:00
Gabriel Luiz Freitas Almeida
f7884af3af 🐛 fix(manager.py): migrate flows to default superuser if they don't have a user id associated with them when auto_login is enabled
🐛 fix(utils.py): handle case when superuser already exists during creation to prevent UNIQUE constraint violation
2023-10-03 17:05:46 -03:00
anovazzi1
65d3b2113b fix(applies.css): add max-w-full class to .api-modal-tabs to ensure it takes up the full width on smaller screens 2023-10-03 16:32:09 -03:00
Gabriel Luiz Freitas Almeida
3017525160
Release 0.5.0a4 (#997) 2023-10-03 14:51:19 -03:00
Gabriel Luiz Freitas Almeida
5f37c3b34f 🔖 chore(pyproject.toml): update package version from 0.5.0a3 to 0.5.0a4 for release preparation 2023-10-03 14:47:33 -03:00
Gabriel Luiz Freitas Almeida
5fd73d4d62 🔥 refactor(callback.py): remove unused imports in callback.py
🔥 refactor(utils.py): remove unused imports in utils.py
2023-10-03 14:43:38 -03:00
Gabriel Luiz Freitas Almeida
7198197924
Fixes super user creation (#996) 2023-10-03 14:42:40 -03:00
Gabriel Luiz Freitas Almeida
7390c91028 🔧 chore(utils.py): add type hinting to the get_or_create_super_user function to improve code readability and maintainability
🔧 chore(utils.py): add type hinting to the session parameter in the get_or_create_super_user function to improve code readability and maintainability
🔧 chore(utils.py): add type hinting to the session parameter in the setup_superuser function to improve code readability and maintainability
🔧 chore(utils.py): add type hinting to the session parameter in the setup_superuser function to improve code readability and maintainability
🔧 chore(utils.py): add type hinting to the session parameter in the setup_superuser function to improve code readability and maintainability
🔧 chore(utils.py): add type hinting to the session parameter in the setup_superuser function to improve code readability and maintainability
2023-10-03 14:27:12 -03:00
Gabriel Luiz Freitas Almeida
b21ddd1c93 🔧 fix(utils.py): refactor setup_superuser function to improve readability and maintainability
 feat(utils.py): add get_or_create_super_user function to handle the creation of superuser and handle different scenarios based on existing users and credentials
2023-10-03 14:15:29 -03:00
Gabriel Luiz Freitas Almeida
98df4f2655 🐛 fix(utils.py): refactor service initialization to improve readability and error handling
 feat(utils.py): add session service factory and dependencies to support session management
2023-10-03 12:49:17 -03:00
Gabriel Luiz Freitas Almeida
f5bee3e7ae 🐛 fix(utils.py): handle unique constraint failure when creating superuser and check if superuser already exists with the same username and password to avoid duplicate creation 2023-09-30 00:05:29 -03:00
Gabriel Luiz Freitas Almeida
81f4c09fbd
Release alpha 3
Bump to alpha 3
2023-09-29 19:16:45 -03:00
Gabriel Luiz Freitas Almeida
3469bde5b6 🔖 chore(pyproject.toml): bump version from 0.5.0a2 to 0.5.0a3 for package release 2023-09-29 19:15:55 -03:00
Gabriel Luiz Freitas Almeida
4219b0ba5a 🔀 chore(PromptRunner.py): update import statement for PromptTemplate to reflect new module structure in langchain
🔀 chore(custom.py): update import statement for LLMChain to reflect new module structure in langchain
🔀 chore(prebuilt.py): update import statement for LLMChain to reflect new module structure in langchain
2023-09-29 19:14:55 -03:00
Gabriel Luiz Freitas Almeida
880626cf7b
Merge pull request #989 from logspace-ai:fix_db_superuser
🐛 fix(utils.py): handle exception when creating DB and tables to ignore if tables already exist
2023-09-29 19:13:23 -03:00
Gabriel Luiz Freitas Almeida
0ea1c087ee 🐛 fix(utils.py): handle exception when creating DB and tables to ignore if tables already exist
🐛 fix(utils.py): handle exception when running migrations to ignore if migrations already ran
 feat(auth.py): set AUTO_LOGIN to True to enable automatic login as a super user
2023-09-29 19:13:01 -03:00
anovazzi1
765db810c7 fix(genericModal/index.tsx): handle case when field_name is an empty string in GenericModal component
fix(genericModal/index.tsx): handle case when field_name is an empty string in GenericModal component
2023-09-29 18:32:46 -03:00
Gabriel Luiz Freitas Almeida
f38692c9df 🐛 fix(genericModal/index.tsx): set field_name to the first key of custom_fields object if it is an empty string
🐛 fix(genericModal/index.tsx): update template value based on field_name instead of hardcoding "template"
 feat(api/index.ts): add CustomFieldsType to represent custom fields in APIClassType
2023-09-29 18:32:46 -03:00
Gabriel Luiz Freitas Almeida
0024117b43
Merge pull request #988 from logspace-ai:bump_pre-release
🔖 chore(pyproject.toml): update package version from 0.5.0a1 to 0.5.0a2 for development progress
2023-09-29 18:28:11 -03:00
Gabriel Luiz Freitas Almeida
1aac52fbfb 🔖 chore(pyproject.toml): update package version from 0.5.0a1 to 0.5.0a2 for development progress 2023-09-29 18:26:30 -03:00
anovazzi1
2b1c77aed7 fix(formModal): fix issue with template not being updated correctly when receiving prompt data
feat(formModal): add support for clearing chat history and resetting template to initial value
2023-09-29 15:59:48 -03:00
Gabriel Luiz Freitas Almeida
ba2736f085 🐛 fix(callback.py): replace ChatResponse with PromptResponse in AsyncStreamingLLMCallbackHandler to correctly handle prompt after formatting
🔀 chore(schemas.py): add PromptResponse schema to handle prompt responses in addition to ChatResponse schema
2023-09-29 15:59:48 -03:00
Gabriel Luiz Freitas Almeida
3bf055a990 🐛 fix(callback.py): change the initialization of the callback handler to use the client_id and retrieve the websocket from the chat service
🐛 fix(callback.py): add the response message to the chat history in the callback handler
🐛 fix(utils.py): remove the unused websocket parameter in the try_setting_streaming_options function
🐛 fix(manager.py): change the parameter name in the process_graph function to client_id and pass it to the get_result_and_steps function
🐛 fix(utils.py): change the parameter name in the process_graph function to client_id and pass it to the get_result_and_steps function
2023-09-29 15:59:48 -03:00
anovazzi1
746f2b6799 refactor(formModal): rename 'template' prop to 'prompt' for better clarity and consistency
fix(formModal): update 'template' prop value to use the correct value from tabsState for each chatItem
2023-09-29 10:50:26 -03:00
Gabriel Luiz Freitas Almeida
89880b14a0 🔧 fix(schemas.py): add optional chatKey field to ChatMessage schema to support additional metadata for chat messages
🔧 fix(manager.py): add support for chatKey field in ChatService to store additional metadata for chat messages
2023-09-29 10:50:26 -03:00
anovazzi1
1b5b36a96d retrievin key from backend 2023-09-29 10:50:26 -03:00
anovazzi1
8344bf7fe2 send chatKey to backend 2023-09-29 10:50:26 -03:00
anovazzi1
faec3f3e56 refactor(formModal): refactor code to improve readability and remove unnecessary code duplication 2023-09-28 23:41:38 -03:00
anovazzi1
fcaa0ca833 fix for infinity loading 2023-09-28 23:41:38 -03:00
anovazzi1
9352a07571 chore(authContext.tsx): add console log statement for error handling in the catch block of the promise
fix(EditNodeModal/index.tsx): add key prop to BaseModal component to fix React warning
chore(formModal/index.tsx): add console log statement for error handling in the onerror event handler
chore(LoginPage/index.tsx): add console log statement for error handling in the catch block of the promise
chore(loginPage/index.tsx): add console log statement for error handling in the catch block of the promise
2023-09-28 23:41:38 -03:00
Gabriel Luiz Freitas Almeida
117d5acbf5 🐛 fix(manager.py): change error message from "Could not find a LangChain object for client_id" to "Could not find a build result for client_id" for better clarity
🐛 fix(manager.py): handle WebSocketState.DISCONNECTED state in the finally block to properly disconnect the client if the connection is already closed
2023-09-28 23:41:38 -03:00
anovazzi1
588805fe64 add ws close wen component unmount 2023-09-28 23:41:38 -03:00
Cristhian Zanforlin Lousa
4e48360e2a 🐛 fix(keypairListComponent): fix bug where onChange event was not updating the correct value in the ref object
 feat(keypairListComponent): add support for dataValue prop to pass down initial data value to the component
 feat(EditNodeModal): add support for dataValue state to store the current data value
 feat(EditNodeModal): pass down dataValue prop to KeypairListComponent to initialize the component with the current data value
 feat(types): add dataValue property to KeyPairListComponentType to reflect the changes in the component
2023-09-28 21:32:42 -03:00
Cristhian Zanforlin Lousa
9d9a1177f2 🐛 fix(EditNodeModal): setAdv state variable to null initially to avoid undefined value
🐛 fix(types): change advanced prop type in KeyPairListComponentType to allow null value
2023-09-28 18:41:26 -03:00
Gabriel Luiz Freitas Almeida
1f62c596a2
Makes Prompt after formatting be displayed correctly (#982) 2023-09-28 12:04:33 -03:00
Gabriel Luiz Freitas Almeida
cbd0492a2b
Merge branch 'dev' into fix_display_prompt 2023-09-28 12:04:25 -03:00
Gabriel Luiz Freitas Almeida
8d0b9e0013 🔧 fix(callback.py): remove unused imports and methods in AsyncStreamingLLMCallbackHandler class 2023-09-28 12:03:54 -03:00
Gabriel Luiz Freitas Almeida
1d14a73f3c 🔀 chore(constants.py): update import statement for Embeddings class to match new module structure
📦 refactor(constants.py): update import statement for Embeddings class to reflect new package structure
2023-09-28 12:03:36 -03:00
Gabriel Luiz Freitas Almeida
f5ec26e26f 🐛 fix(loading.py): pass node_type argument to instantiate_documentloader function to improve flexibility and readability
 feat(loading.py): add support for WebBaseLoader node type to handle web_path parameter and convert it to web_paths parameter
2023-09-28 12:03:35 -03:00
Gabriel Luiz Freitas Almeida
6718e07dca 🔺 chore(pyproject.toml): update langchain dependency version to ^0.0.303 for compatibility and bug fixes 2023-09-28 12:03:35 -03:00
Lucas Oliveira
9e6b52281b removed unused imports 2023-09-28 11:56:39 -03:00