Commit graph

6,558 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
b3ea99ece3 Refactor user model imports 2023-11-24 12:52:33 -03:00
Gabriel Luiz Freitas Almeida
42bd345162 Merge branch 'dynamic_field' into feature/store 2023-11-24 12:51:41 -03:00
Gabriel Luiz Freitas Almeida
3cbb58e6e1 Add check for existing credential name in
create_credential
2023-11-24 12:47:12 -03:00
Gabriel Luiz Freitas Almeida
d61df94849 Add CredentialServiceFactory to utils.py 2023-11-24 12:47:11 -03:00
Gabriel Luiz Freitas Almeida
280b72adab Refactor frontend_node/base.py 2023-11-24 12:47:11 -03:00
Gabriel Luiz Freitas Almeida
eabafd4bab Refactor Credential model and update provider
field
2023-11-24 12:47:10 -03:00
Gabriel Luiz Freitas Almeida
2cc2fa3500 Update AcceptedProviders enum to CredentialType
enum
2023-11-24 12:47:10 -03:00
Gabriel Luiz Freitas Almeida
53a1aa57bc Fix user_id attribute modification in Component
class
2023-11-24 12:47:09 -03:00
Gabriel Luiz Freitas Almeida
26bc28b0e1 Reorder imports and fix import statements in
LLMChain.py
2023-11-24 12:47:09 -03:00
anovazzi1
5c3d064ad1 code format 2023-11-24 12:45:00 -03:00
anovazzi1
2438a8c658 fix(GenericNode/index.tsx): fix initial state of inputName to be false instead of true for better user experience
refactor(GenericNode/index.tsx): refactor tooltip div structure to improve readability and add pencil icon if node has flow
refactor(GenericNode/index.tsx): refactor color logic to use typesContext instead of accessing types directly
refactor(GenericNode/index.tsx): refactor output type title logic to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor validation status params rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor generic node description rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor template field rendering to use ternary operator for better readability
refactor(PageComponent/index.tsx): remove unnecessary empty line
2023-11-24 12:45:00 -03:00
Gabriel Luiz Freitas Almeida
2c6962b86d Fix user_id modification and add warning 2023-11-24 11:21:24 -03:00
Gabriel Luiz Freitas Almeida
c53775ddf9 Fix user_id modification in Component class 2023-11-24 11:19:25 -03:00
Gabriel Luiz Freitas Almeida
f52b7177f7 Refactor API router and add credentials router 2023-11-24 11:19:24 -03:00
Gabriel Luiz Freitas Almeida
5cd212a0f2 Add CredentialService to handle user credentials 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
74ac238a4e Adds Credential table 2023-11-24 11:19:23 -03:00
Gabriel Luiz Freitas Almeida
9d6cafd8a2 Update database model imports 2023-11-24 11:19:22 -03:00
cristhianzl
4f1d0b4683 fix(keypairListComponent): update input ids to include "editNode" prefix when editNode prop is true
fix(genericModal): add data-testid to save button for easier testing
fix(sideBarDraggableComponent): add data-testid to div element for easier testing
fix(nodeToolbarComponent): add empty fragment as ConfirmationModal.Trigger to fix warning
fix(types): add editNodeModal property to KeyPairListComponentType
fix(codeAreaModalComponent.spec): update locator for Python Function Tool
fix(floatComponent.spec): update locator for Python Function Tool
fix(intComponent.spec): update locator for GET Request Tool
fix(keyPairListComponent.spec): update locator for CSV Loader Tool
fix(promptModalComponent.spec): update locator for Prompt Template Tool
2023-11-24 11:06:57 -03:00
igorrCarvalho
7e4dd16881 Feat: Add option to replace saved component or create a new one using confirmation modal 2023-11-23 22:06:07 -03:00
anovazzi1
037f7f5b1b refactor for field types 2023-11-23 21:33:30 -03:00
cristhianzl
9e653f2bdc Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-23 18:41:25 -03:00
anovazzi1
8e47e7c9d7 fix(PageComponent): change position calculation to use screenToFlowPosition instead of project to fix incorrect node creation position 2023-11-23 18:41:13 -03:00
anovazzi1
0e078efee0 fix(shareModal): add support for disabled prop to prevent opening the modal when disabled
fix(extraSidebarComponent): pass disabled prop to ShareModal based on hasApiKey value to disable sharing when no API key is available
2023-11-23 18:28:07 -03:00
Gabriel Luiz Freitas Almeida
37e7c99ca2 Add metadata and comp_count variables 2023-11-23 17:43:30 -03:00
anovazzi1
bd74a16e47 fix(extraSidebarComponent): change variable name from hasApiKey to hasApiKey for consistency
fix(nodeToolbarComponent): add condition to show Share option only if `hasApiKey` is true
2023-11-23 17:39:28 -03:00
Gabriel Luiz Freitas Almeida
5dc419e25f Fix APIKeyError status code 2023-11-23 17:30:05 -03:00
Gabriel Luiz Freitas Almeida
595006cb77 Update AgentInitializerComponent to initialize a
Langchain Agent
2023-11-23 17:30:05 -03:00
anovazzi1
61ad880990 fix(shareModal/index.tsx): add conditional check for hasApiKey before calling handleGetTags and handleGetNames to prevent unnecessary API calls when there is no API key available 2023-11-23 17:22:43 -03:00
anovazzi1
b60fd7f04d fix(sideBarDraggableComponent): fix indentation and closing tag placement for IconComponent in SidebarDraggableComponent 2023-11-23 16:55:15 -03:00
anovazzi1
9db5f90acf fix(extraSidebarComponent): sort the keys in dataFilter object with a custom sorting function to prioritize "saved_components" key 2023-11-23 16:38:54 -03:00
Gabriel Luiz Freitas Almeida
cdb7c1a695 Update mypy version to 1.7.1 2023-11-23 15:55:34 -03:00
Gabriel Luiz Freitas Almeida
8b1895ccf3 Update AgentInitializerComponent documentation
link
2023-11-23 15:55:27 -03:00
Gabriel Luiz Freitas Almeida
29cef91e6f Add AgentInitializerComponent to initialize agents 2023-11-23 15:38:40 -03:00
Gabriel Luiz Freitas Almeida
4580d428e5 Fix import statement in constants.py 2023-11-23 15:38:24 -03:00
Gabriel Luiz Freitas Almeida
4e5ec2a4de Add caching for langchain types dictionary 2023-11-23 12:16:39 -03:00
Gabriel Luiz Freitas Almeida
19f998a326 Add custom component reload endpoint 2023-11-23 12:16:28 -03:00
Gabriel Luiz Freitas Almeida
943ef39050 Refactor API endpoints and validate custom
component code
2023-11-23 11:50:31 -03:00
Gabriel Luiz Freitas Almeida
2b882bd276 Add menu path to component template 2023-11-23 11:49:54 -03:00
Gabriel Luiz Freitas Almeida
843eeac7ee Fix caching bug in CodeParser 2023-11-23 11:49:46 -03:00
Gabriel Luiz Freitas Almeida
2f6a2f3efb Fix caching bug in get_code_tree method 2023-11-23 11:49:24 -03:00
Gabriel Luiz Freitas Almeida
4d285000cf Fix code validation and return type in
CustomComponent
2023-11-23 11:49:13 -03:00
Gabriel Luiz Freitas Almeida
49c9187e9c Update return type extraction to return a list
instead of a tuple
2023-11-23 11:49:04 -03:00
Gabriel Luiz Freitas Almeida
7a521fa6cb Add new loaders to constants.py 2023-11-23 11:48:14 -03:00
Gabriel Luiz Freitas Almeida
ccfd8e8acd Refactor file loader component 2023-11-23 11:48:06 -03:00
Gabriel Luiz Freitas Almeida
6fea589778 Refactor construct_eval_env method in CodeParser
class
2023-11-23 11:09:19 -03:00
Gabriel Luiz Freitas Almeida
14db3c0263 Refactor function_args check in add_extra_fields() 2023-11-23 10:57:23 -03:00
Gabriel Luiz Freitas Almeida
48dbbf1dd3 Add caching for code parsing 2023-11-23 10:57:15 -03:00
Gabriel Luiz Freitas Almeida
946bf03190 Add cache functionality to Component class 2023-11-23 10:57:11 -03:00
Gabriel Luiz Freitas Almeida
f4210f567b Add caching to CustomComponent class 2023-11-23 10:57:06 -03:00
Gabriel Luiz Freitas Almeida
bcd13e18f3 Fix missing type for argument in CustomComponent
class
2023-11-23 10:37:59 -03:00