Commit graph

4,144 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6aabedba3d Fix logger.debug indentation in teardown_superuser
function
2023-11-23 16:13:51 -03:00
Gabriel Luiz Freitas Almeida
62325e000c Refactor database teardown process 2023-11-23 16:03:19 -03:00
Gabriel Luiz Freitas Almeida
01be078973 🔧 fix(utils.py): fix condition in teardown_superuser function to correctly check if AUTO_LOGIN is False 2023-11-23 15:57:38 -03:00
Gabriel Luiz Freitas Almeida
bd8c709870 🔄 chore(constants.py): update CHAT_OPENAI_MODELS list to reflect the latest available models
🔄 chore(test_llms_template.py): update test case to use the latest model name in the CHAT_OPENAI_MODELS list
2023-11-08 12:44:46 -03:00
Gabriel Luiz Freitas Almeida
4c749a0635 Merge remote-tracking branch 'origin/update_langchain' into release 2023-11-06 23:34:29 -03:00
Gabriel Luiz Freitas Almeida
79b12b8135
Revert "Release 0.5.6" 2023-11-06 23:18:49 -03:00
Gabriel Luiz Freitas Almeida
1e7d725a7d 🐛 fix(types.py): temporarily remove "code" parameter from ChainVertex to fix a bug 2023-11-06 21:28:43 -03:00
Gabriel Luiz Freitas Almeida
d2ee902871 🔥 refactor(types.py): temporarily remove the code parameter from the params dictionary in ChainVertex's build method 2023-11-06 21:24:51 -03:00
Gabriel Luiz Freitas Almeida
b26b7fc6d8 Remove unused import in reactflowUtils.ts 2023-11-06 21:08:31 -03:00
Gabriel Luiz Freitas Almeida
f4e642ec47 🐛 fix(chains.py): temporarily fix field_type for BaseLanguageModel to improve compatibility
🐛 fix(test_prompts_template.py): fix value of validate_template to False to align with expected behavior
🐛 fix(test_template.py): update value of options to "gpt-4-1106-preview" to reflect the latest version
2023-11-06 21:02:22 -03:00
Gabriel Luiz Freitas Almeida
591237c5dd 🔧 chore(util.py): add get_type_from_union_literal function to handle union literals in format_dict function
🔧 chore(util.py): add get_type_from_union_literal function to handle union literals in format_dict function
2023-11-06 21:01:55 -03:00
Gabriel Luiz Freitas Almeida
7929a43bc4 🔄 chore(constants.py): reorder CHAT_OPENAI_MODELS list to prioritize gpt-4-1106-preview model
🔄 chore(test_llms_template.py): update default value and options for model_name field to gpt-4-1106-preview model
2023-11-06 21:01:28 -03:00
Gabriel Luiz Freitas Almeida
6fd476e00f 🔀 chore(custom.py): update import statements to reflect changes in package structure
🔀 chore(custom.py): update import statements for langchain_experimental package
2023-11-06 21:00:56 -03:00
Gabriel Luiz Freitas Almeida
58f83aaa98
Bug - sidebar opening (#1084) 2023-11-01 11:34:28 -03:00
Gabriel Luiz Freitas Almeida
a408dd2b26 🐛 fix(FileLoader.py): fix type annotation for loaders_info variable to improve code readability and maintainability
🐛 fix(FileLoader.py): fix type annotation for loader_import variable to improve code readability and maintainability
🐛 fix(FileLoader.py): handle case when selected_loader_info is not a dict to prevent potential errors
🐛 fix(UrlLoader.py): fix type annotation for build method return value to improve code readability and maintainability
🐛 fix(UrlLoader.py): fix type annotation for loader_instance variables to improve code readability and maintainability
2023-11-01 11:12:08 -03:00
Gabriel Luiz Freitas Almeida
a899d8a081 Merge remote-tracking branch 'origin/dev' into FileLoaders 2023-11-01 10:56:49 -03:00
Gabriel Luiz Freitas Almeida
66cbeb8172
Merge branch 'dev' into fixCapitalErrors 2023-11-01 10:52:17 -03:00
anovazzi1
bf016801db fix(exportModal/index.tsx): add missing import statement for typesContext to fix compilation error
feat(exportModal/index.tsx): modify downloadFlow function to pass an object with id, data, description, and name properties instead of directly passing flow object to improve code readability and maintainability
2023-10-31 18:45:26 -03:00
anovazzi1
bd26be7ff2 Merge remote-tracking branch 'origin/dev' into bugFixes 2023-10-31 18:17:37 -03:00
Gabriel Luiz Freitas Almeida
c5df63baeb 🔧 chore(Chroma.py): update display_name of ChromaComponent to improve clarity and remove unnecessary information
🔧 chore(config.yaml): comment out Chroma vectorstore configuration to disable it temporarily
2023-10-31 15:27:49 -03:00
Gabriel Luiz Freitas Almeida
ddf14638e5 Format 2023-10-31 15:22:26 -03:00
Gabriel Luiz Freitas Almeida
8221079a32 Merge remote-tracking branch 'origin/main' into dev 2023-10-31 15:21:29 -03:00
Gabriel Luiz Freitas Almeida
2f21eb2141
[New feature] Add support for Amazon Bedrock, Amazon Kendra (#1053) 2023-10-31 10:04:05 -03:00
Gabriel Luiz Freitas Almeida
c49d0c7faf 🐛 fix(loading.py): fix issue with search_kwargs assignment in instantiate_vectorstore function
🔧 chore(loading.py): refactor instantiate_vectorstore function to clean up docs or texts to have only documents
2023-10-30 20:32:48 -03:00
Yuki Sekiya
3d35d34544 Fix wrong text 2023-10-29 14:15:49 +09:00
Lucas Oliveira
b925e42e4a added condition to show disclosure 2023-10-27 20:06:57 -03:00
igorrCarvalho
b48c813550 Refactor: Change tabsContext name to FlowsContext 2023-10-27 16:22:12 -03:00
Gabriel Luiz Freitas Almeida
4a399906ca
RELEASE - Bugfix - Allowing space on keypairlist (dict) value (#1073) 2023-10-26 22:16:58 -03:00
Lucas Oliveira
42d56f70ed Revert "Merge branch 'release' into dev"
This reverts commit dd3f3d4ca8, reversing
changes made to 27bc4c5498.
2023-10-25 20:14:28 -03:00
Lucas Oliveira
dd3f3d4ca8 Merge branch 'release' into dev 2023-10-25 20:06:21 -03:00
Lucas Oliveira
b691237d77 Fixed sidebar not closing when searching 2023-10-25 20:01:49 -03:00
Gabriel Luiz Freitas Almeida
229717a98a 🐛 fix(endpoints.py): fix missing return statement in get_all function
🐛 fix(base.py): fix issue with args_schema value for PythonInputs template
🐛 fix(test_prompts_template.py): fix incorrect value for validate_template
2023-10-25 18:13:58 -03:00
Gabriel Luiz Freitas Almeida
f6ab266294 🐛 fix(base.py): handle import errors when importing utilities to prevent application crashes
The code now handles import errors when importing utilities from the `langchain.utilities` module. If an import error occurs, the utility is skipped and not added to the `type_dict` dictionary. This prevents the application from crashing when encountering an invalid or missing utility.
2023-10-25 15:57:48 -03:00
anovazzi1
a9a1316183 chore(tabsContext.tsx): import cloneDeep function from lodash to improve code readability and maintainability
fix(tabsContext.tsx): fix comment typo
fix(tabsContext.tsx): add missing semicolon to improve code consistency
fix(tabsContext.tsx): clone edge data object to prevent mutation of original object
refactor(PageComponent/index.tsx): remove unnecessary comment
2023-10-25 13:50:43 -03:00
anovazzi1
af996b171b fix(reactflowUtils.ts): comment out the line that deselects nodes after ungrouping to keep them selected 2023-10-25 13:37:59 -03:00
anovazzi1
64bdab071d fix(tabsContext.tsx): temporarily comment out the processFlowNodes function call to prevent node update 2023-10-25 12:05:36 -03:00
anovazzi1
27bc4c5498 fix(EditNodeModal): only reset data and call onClose when modalOpen is true to prevent unnecessary side effects 2023-10-23 22:47:41 -03:00
anovazzi1
6f40a94b55 update node internals on editNodeModal 2023-10-23 22:40:55 -03:00
anovazzi1
337f0f8794 fix(parameterComponent): update readonly condition to only check for data.node?.flow
fix(promptComponent): prevent update from prompt template after group node if prompt is wrongly marked as not dynamic
fix(EditNodeModal): update readonly condition to only check for myData.current.node?.flow
2023-10-19 15:02:32 -03:00
anovazzi1
b0bbe39c89 update har file getAll content 2023-10-19 14:40:27 -03:00
Gabriel Luiz Freitas Almeida
68e5cb4cce Merge remote-tracking branch 'origin/main' into dev 2023-10-19 11:04:09 -03:00
Gabriel Luiz Freitas Almeida
0286353695 🐛 fix(base.py): include vertex ID in error message to provide more context when building a node fails 2023-10-19 09:25:53 -03:00
cristhianzl
e33f154cf2 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 23:59:48 -03:00
cristhianzl
2fbb68d6a6 fix(keyPairListComponent.spec.ts): fix typo in test case description
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): add assertion to check if input field value with spaces is correctly filled
fix(keyPairListComponent.spec.ts): update test case to fill input field with a value containing spaces for better coverage
fix(keyPairListComponent.spec.ts): update assertion to check if input field value with spaces is correctly filled
2023-10-18 23:58:09 -03:00
Cristhian Zanforlin Lousa
c939edbb2b
Fix no space no keyPairList (#1072)
fix(reactflowUtils.t): 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 23:31:53 -03:00
Gabriel Luiz Freitas Almeida
08bd16b8f2 🔧 chore(OpenAIConversationalAgent.py): enable handling of parsing errors in ConversationalAgent class 2023-10-18 22:14:14 -03:00
Gabriel Luiz Freitas Almeida
a497eebab1 🔧 fix(__main__.py): set "no_proxy" environment variable to "*" to avoid error with gunicorn in macos 2023-10-18 19:57:28 -03:00
anovazzi1
ff650a13fb chore(run-tests.sh): increase sleep duration to 25 seconds to allow more time for the backend to start before running tests 2023-10-18 17:32:08 -03:00
anovazzi1
75c613c97e updated input component test 2023-10-18 17:07:44 -03:00
anovazzi1
5fd7cbdcb2 feat(tests): add toggleComponent.spec.ts to test the functionality of the ToggleComponent
The toggleComponent.spec.ts file contains a test case that verifies the functionality of the ToggleComponent. The test case performs the following actions:

1. Routes network requests from a HAR file, disabling updates for URLs matching "**/api/v1/**".
2. Routes a specific network request to return a JSON response with a status of 201.
3. Navigates to "http://localhost:3000/".
4. Waits for 2000 milliseconds.
5. Clicks on an element with the id "new-project-btn".
6. Waits for 2000 milliseconds.
7. Clicks on an element with the placeholder text "Search" and fills it with "directoryLoader".
8. Waits for 2000 milliseconds.
9. Drags an element with the id "sideDirectoryLoader" to another element with the id "react-flow-id".
10. Performs a series of click actions on various elements to test their functionality.
11. Verifies the state of toggle buttons using the isChecked() method.
12. Clicks on an element with the id "saveChangesBtn".
13. Performs additional click actions and verifications.
14. Clicks on an element with the id "saveChangesBtn".
15. Performs additional click actions and verifications.
16. Clicks on an element with the id "saveChangesBtn".
17. Performs additional click actions and verifications.
18. Clicks on an element with the id "saveChangesBtn".
19. Performs additional click actions and verifications.
20. Clicks on an element with the id "saveChangesBtn".
21. Performs additional click actions and verifications.
22. Verifies the count of elements matching the locator "//*[@id="toggle-1"]" and performs additional actions based on the count.

This test case is added to ensure that the ToggleComponent functions as expected and that the toggle buttons behave correctly.
2023-10-18 16:56:44 -03:00