Commit graph

7,638 commits

Author SHA1 Message Date
cristhianzl
1845149647 Merge branch 'feat-testComps' of https://github.com/logspace-ai/langflow into feat-testComps 2023-10-18 15:53:25 -03:00
cristhianzl
ad8183e598 fix(promptModalComponent.spec.ts): update element locators to match changes in HTML structure 2023-10-18 15:51:56 -03:00
cristhianzl
a7eab9677f fix(reactflowUtils.ts): modify convertValuesToNumbers function to correctly handle values that are numbers represented as strings
feat(reactflowUtils.ts): add check to convertValuesToNumbers function to only convert values that are valid numbers represented as strings
2023-10-18 15:44:24 -03:00
anovazzi1
7e0b3684e4 Merge branch 'dev' into feat-testComps 2023-10-18 14:49:13 -03:00
anovazzi1
68e76dce41 chore(run-tests.sh): add installation of playwright if not already installed 2023-10-18 14:46:53 -03:00
Yuki Sekiya
ef7bd714b2
Merge branch 'dev' into feat/aws 2023-10-18 22:43:44 +09:00
Gabriel Luiz Freitas Almeida
2653bbc70e First draft of MarketplaceService 2023-10-18 09:18:16 -03:00
Gabriel Luiz Freitas Almeida
c50d1344ca rename getters to deps 2023-10-18 09:18:16 -03:00
Gabriel Luiz Freitas Almeida
de238bf5db Rename manager to service 2023-10-18 09:18:15 -03:00
anovazzi1
5a1ddfb9b3 fix(tabsContext.tsx): add console.log to debug text variable in TabsProvider
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a collection
test(dragAndDrop.spec.ts): add support for drag and drop functionality to test dropping a flow
2023-10-17 21:47:13 -03:00
anovazzi1
d68f2cbbab feat(dragAndDrop.spec.ts): add tests for auto_login functionality
The `dragAndDrop.spec.ts` file was added to the `src/frontend/tests/onlyFront` directory. This file contains tests for the auto_login functionality. Two tests were added:

1. `auto_login sign in`: This test simulates signing in with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, waits for the ".community-pages-flows-panel" selector to be present, and asserts that it has children.

2. `auto_login block_admin`: This test simulates accessing the admin section with auto_login. It routes requests from the "langflow.har" file to the appropriate API endpoints, navigates to the homepage, clicks on the "Community Examples" button, navigates to the login page, clicks on the "Community Examples" button again, navigates to the admin page, clicks on the "Community Examples" button again, navigates to the admin login page, and clicks on the "Community Examples" button.

These tests were added to ensure the proper functioning of the auto_login feature.
2023-10-17 21:47:13 -03:00
anovazzi1
f6d369dd7b created assets page 2023-10-17 21:47:13 -03:00
anovazzi1
277caccc05 fix(typesContext.tsx): fix import statement for APIClassType in typesContext.tsx
feat(typesContext.tsx): add support for generating unique display names for custom components in typesContext.tsx
fix(nodeToolbarComponent/index.tsx): fix issue with saving component data by cloning the data object before saving
feat(utils.ts): add getSetFromObject function to get a set of keys from an object
2023-10-17 19:43:30 -03:00
cristhianzl
bb17616d4f moving folders 2023-10-17 10:41:48 -03:00
Gabriel Luiz Freitas Almeida
b8905dec6d 🔧 chore(Vectara.py): change single quotes to double quotes for consistency in source parameter value 2023-10-17 10:15:54 -03:00
Gabriel Luiz Freitas Almeida
275e10daf6 🐛 fix(base.py): make description field optional to allow for cases where no description is provided 2023-10-17 10:15:32 -03:00
Gabriel Luiz Freitas Almeida
9b36e64c57 🐛 fix(BaiduQianfanChatEndpoints.py): add type ignore comments to fix type errors
🐛 fix(BaiduQianfanLLMEndpoints.py): add type ignore comments to fix type errors
2023-10-17 10:13:49 -03:00
Gabriel Luiz Freitas Almeida
e2cf4f0234
support baidu qianfan endpoint for LLM (#1045) 2023-10-17 09:56:58 -03:00
cristhianzl
27b3b77ab0 merge fix 2023-10-17 09:38:21 -03:00
Gabriel Luiz Freitas Almeida
c3c78aab38
update of Vectara component (#1049) 2023-10-17 07:15:51 -03:00
hekai09
851da1cb4e support baidu qianfan endpoint for LLM 2023-10-17 15:22:00 +08:00
anovazzi1
a3de1ea989 fix(reactflowUtils.ts): add a check to ensure that the proxy id exists in the idsMap before updating it in the template 2023-10-16 17:50:00 -03:00
anovazzi1
4f50425807 Merge remote-tracking branch 'origin/dev' into saveComponent 2023-10-16 17:09:42 -03:00
anovazzi1
cba92c10b4 fix(typesContext.tsx): prevent wrong overwriting of component template by a group of the same type
refactor(reactflowUtils.ts): remove unused code that was causing a syntax error
2023-10-16 17:02:37 -03:00
anovazzi1
46fc843760 fix(reactflowUtils.ts): update updateEdgesIds function to correctly update targetHandle proxy ids and stringify targetHandle
fix(reactflowUtils.ts): update expandGroupNode function to correctly iterate over flowEdges instead of ReactFlowInstance.getEdges() to redirect edges to correct proxy node
2023-10-16 15:23:13 -03:00
anovazzi1
233cec6f0d fix(GenericNode): import getFieldTitle function from utils/utils to fix compilation error
fix(GenericNode): replace calls to toTitleCase with getFieldTitle function to improve code readability and maintainability
fix(GenericNode): replace calls to getFieldTitle with getFieldTitle function to improve code readability and maintainability
fix(reactflowUtils): import getFieldTitle function from utils/utils to fix compilation error
fix(reactflowUtils): replace calls to toTitleCase with getFieldTitle function to improve code readability and maintainability
fix(reactflowUtils): replace calls to getFieldTitle with getFieldTitle function to improve code readability and maintainability
fix(utils): add getFieldTitle function to handle getting the display name or name of a template field
2023-10-16 15:03:48 -03:00
anovazzi1
4b04aadd1d fix(nodeToolbarComponent): add missing useContext import for TabsContext
fix(reactflowUtils): add missing return statement in updateIds function
feat(nodeToolbarComponent): update expandGroupNode function to update ids of proxy nodes and edges before expanding group node
2023-10-16 14:50:40 -03:00
anovazzi1
466c158f15 fix(tabsContext.tsx): remove unnecessary noticeData setting when downloading a file
feat(tabsContext.tsx): change the order of arguments in addFlow function call to improve readability
feat(exportModal/index.tsx): add alertContext and setNoticeData to display a warning when saving a file with API keys
feat(exportModal/index.tsx): add a caution message to inform users about the consequences of saving with API keys
2023-10-16 13:57:12 -03:00
anovazzi1
c81a156fcd fix bug for capital case errors 2023-10-16 12:44:35 -03:00
Lucas Oliveira
8a5a6bc492 Added theme option to view page 2023-10-15 12:23:11 -03:00
Yuki Sekiya
2cafb33b8e Add argument for AmazonBedrock and Amazon Kendra 2023-10-15 02:25:45 +09:00
Yuki Sekiya
8abfb7a00e Add Amazon Kendra Retriver 2023-10-15 01:41:44 +09:00
Yuki Sekiya
0881904892 fix error message 2023-10-15 01:41:25 +09:00
Yuki Sekiya
6d9bd1ae71 Add Amazon Bedrock Support 2023-10-15 01:11:40 +09:00
Ofer Mendelevitch
7fbb1078da update of Vectara component 2023-10-14 03:03:30 -07:00
Lucas Oliveira
2b10c6337f Fixed state of name and description changers on node 2023-10-13 01:31:24 -03:00
Lucas Oliveira
455da5a8e8 Removed internal state of nodes, to fix undo/redo of fields 2023-10-13 01:24:15 -03:00
Lucas Oliveira
3c4d3ab5e2 Snapshot took when updating node name and inputs 2023-10-13 01:06:22 -03:00
Lucas Oliveira
6572c5223a Removed console logs 2023-10-13 00:31:41 -03:00
Lucas Oliveira
0d7c6422f4 Added recursive edge updating on group nodes 2023-10-13 00:30:30 -03:00
Lucas Oliveira
46c538c4a7 Recursive ID updating implemented on nodes 2023-10-13 00:23:56 -03:00
Lucas Oliveira
dbc3eaa673 Transformed paste in 3 functions and fixed problem with edges 2023-10-13 00:13:59 -03:00
Gabriel Luiz Freitas Almeida
7bdf564170 🔧 chore(constants.py): clean up import statements and remove unnecessary whitespace to improve code readability
🐛 fix(custom_component.py): set the type of argument to "Data" if it is not specified to ensure consistency and prevent errors
2023-10-12 19:23:45 -03:00
Gabriel Luiz Freitas Almeida
4366b02c4f 🔀 chore(field_typing): reorganize imports and update __all__ list for better readability and maintainability
🔥 chore(field_typing): remove unused base.py file as it is no longer needed
🔀 chore(constants): update import statements and add type aliases for better readability and maintainability
2023-10-12 19:23:13 -03:00
Gabriel Luiz Freitas Almeida
dad8480ce3 🔨 refactor(HuggingFaceEndpoints.py): update import statement for HuggingFaceEndpoint class to match new file structure
🔧 chore(HuggingFaceEndpoints.py): remove unused import statement for langchain.llms.base module

🔧 chore(HuggingFaceEndpoints.py): remove unused "type" field from task parameter in build method signature

🔧 chore(HuggingFaceEndpoints.py): add default value for task parameter in build method signature

🔧 chore(HuggingFaceEndpoints.py): add default values for huggingfacehub_api_token and model_kwargs parameters in build method signature

🐛 fix(HuggingFaceEndpoints.py): add model_kwargs parameter to HuggingFaceEndpoint constructor to fix missing argument error
2023-10-12 19:22:41 -03:00
Gabriel Luiz Freitas Almeida
964b4ec7f2 🐛 fix(base.py): improve code readability by formatting the CreateTrace function call in multiple lines 2023-10-12 16:29:48 -03:00
Gabriel Luiz Freitas Almeida
6abd5d5343 🐛 fix(base.py): handle cases where value is not a valid int or float to prevent ValueError and assign the original value instead 2023-10-12 16:29:30 -03:00
Gabriel Luiz Freitas Almeida
8f20105b4b 🔧 fix(custom_component.py): fix import statement for CUSTOM_COMPONENT_SUPPORTED_TYPES
🔧 fix(custom_component.py): fix argument type in return statement of CustomComponent.get_args()
🔧 fix(custom_components.py): make description attribute optional in CustomComponentFrontendNode class
2023-10-11 18:33:13 -03:00
Gabriel Luiz Freitas Almeida
846a15f9fd 🐛 fix(base.py): convert "int" and "float" type values to their respective types for better data consistency and type safety 2023-10-11 18:32:56 -03:00
Gabriel Luiz Freitas Almeida
440298861c 🔄 refactor(types.py): update import statement for CUSTOM_COMPONENT_SUPPORTED_TYPES to match new location in field_typing module 2023-10-11 18:32:19 -03:00