Commit graph

10,075 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
36c4b9ee4d Add support for input type in Graph class 2024-03-22 22:37:07 -03:00
Gabriel Luiz Freitas Almeida
e6f251320b Fix session cookie expiration issue 2024-03-22 20:04:24 -03:00
Gabriel Luiz Freitas Almeida
66b85a81ed Update token expiration settings 2024-03-22 18:16:07 -03:00
Gabriel Luiz Freitas Almeida
618c4234d6 Refactor file path handling in Vertex class 2024-03-22 17:23:22 -03:00
Gabriel Luiz Freitas Almeida
d0401fec45 Add successors to stack if not visited 2024-03-22 15:35:50 -03:00
Gabriel Luiz Freitas Almeida
af83e426bf Refactor OpenAIModel.py: Remove unnecessary import and update api_key parameter 2024-03-22 15:17:06 -03:00
Lucas Oliveira
7aa3c5f494 Added type into new Global input component 2024-03-22 17:48:19 +01:00
Lucas Oliveira
fe2f30d5c5 Added global input component to modularize 2024-03-22 17:18:45 +01:00
Gabriel Luiz Freitas Almeida
0e210c36cc Update error message in DirectoryReader class 2024-03-22 12:56:18 -03:00
Gabriel Luiz Freitas Almeida
894995c63d Remove ReActAgent.py component 2024-03-22 12:56:12 -03:00
Gabriel Luiz Freitas Almeida
b121a03a0b Update description for AddNewVariableButton component 2024-03-22 12:49:00 -03:00
Gabriel Luiz Freitas Almeida
479d6eca8c Refactor template_config generation in Component class 2024-03-22 12:43:53 -03:00
Gabriel Luiz Freitas Almeida
002da172cc Remove unecessary method 2024-03-22 12:39:57 -03:00
Gabriel Luiz Freitas Almeida
80aec70ac4 Add tests to run endpoint 2024-03-22 12:38:37 -03:00
Gabriel Luiz Freitas Almeida
cded4aae71 Refactor build_template_config method to use eval_custom_component_code 2024-03-22 12:29:47 -03:00
Lucas Oliveira
0f867dc485 Merge remote-tracking branch 'origin/zustand/io/migration' into globalVariables 2024-03-22 16:21:02 +01:00
Lucas Oliveira
ad8e016ab8 Fixed error message appearing when deleting field 2024-03-22 16:19:46 +01:00
Lucas Oliveira
df621707f7 Implemented error alerts and function to clean deleted global variables 2024-03-22 16:18:11 +01:00
Cristhian Zanforlin Lousa
496c2aae3e
Add a new handle when the backend application is offline (#1550)
 (App.tsx): Import the `useNavigate` hook from `react-router-dom` to enable programmatic navigation within the app.
📝 (App.tsx): Add comments to explain the purpose of the `isLoadingHealth` state variable and the `checkApplicationHealth` function.
📝 (App.tsx): Add comments to explain the purpose of the `onHealthCheck` function.
🐛 (App.tsx): Fix a bug where the `checkApplicationHealth` function was not being called when the component mounts.
🐛 (App.tsx): Fix a bug where the `onHealthCheck` function was not being called when the health check was successful.
📝 (App.tsx): Add comments to explain the purpose of the `checkApplicationHealth` function and the `onHealthCheck` function.
 (fetchErrorComponent/index.tsx): Import the `BaseModal` component from the `modals/baseModal` module to display the fetch error component in a modal.
 (fetchErrorComponent/index.tsx): Import the `Button` component from the `ui/button` module to display a retry button in the fetch error component.
 (fetchErrorComponent/index.tsx): Add a retry button to the fetch error component to allow the user to retry the failed request.
 (ui/dialog-with-no-close.tsx): Create a new file `ui/dialog-with-no-close.tsx` to define a custom dialog component without a close button.
 (ui/dialog-with-no-close.tsx): Define the `Dialog`, `DialogTrigger`, `DialogPortal`, `DialogOverlay`, `DialogContent`, `DialogHeader`, `DialogFooter`, `DialogTitle`, and `DialogDescription` components for the custom dialog component.

📝 (baseModal/index.tsx): add support for a new type prop to switch between modal and dialog mode
🐛 (baseModal/index.tsx): fix typo in import statement for Modal and ModalContent components
♻️ (baseModal/index.tsx): refactor BaseModal component to conditionally render either Modal or Dialog based on the type prop
🐛 (flowsManagerStore.ts): fix issue where isLoading state was not being set to false after catching an error
🐛 (typesStore.ts): fix issue where error alert was not being shown when fetching types failed
🐛 (typesStore.ts): remove unnecessary error alert when fetching types failed
 (components/index.ts): add new properties to fetchErrorComponentType to support opening a modal, retrying, and showing loading state
2024-03-22 09:34:59 -03:00
Gabriel Luiz Freitas Almeida
fd7a0fcbff Add field_name prop to PromptAreaComponent 2024-03-22 09:32:04 -03:00
Gabriel Luiz Freitas Almeida
18fe8ed2d0
Bugfixes and updates to Components (#1554)
- Fix issue causing Store API key to become invalid.
- Refactor the `parse_return_statement` method to handle nested returns,
addressing issue #1357.
- Update the `.env.example` file with the latest configuration options.
- Fix the `refresh_http_only` variable to ensure proper handling of
HTTP-only cookies.
- Fix uninteded submission
- Update Anthropic implementation
2024-03-22 09:13:54 -03:00
Gabriel Luiz Freitas Almeida
b43e4de38f Refactor embeddings and chat components 2024-03-22 09:10:08 -03:00
Gabriel Luiz Freitas Almeida
e0c3f2ce07 New lock 2024-03-22 08:58:19 -03:00
Daiki Sakai
402e706f27
Fix unintended input submission during IME composition (#1552)
Prevent input submission on Enter key press during IME composition
2024-03-22 08:49:17 -03:00
Daiki Sakai
0b380afb66
Migrate to langchain_anthropic and add ChatAnthropic enhancements (#1551)
Migrate to langchain_anthropic and enhance ChatAnthropic functionality

- Replace langchain_community with langchain_anthropic for ChatAnthropic
- Add support for selecting the Claude model in ChatAnthropic
- Implement top_p and top_k parameter support in ChatAnthropic
2024-03-22 08:47:34 -03:00
Gabriel Luiz Freitas Almeida
be94153435 Merge remote-tracking branch 'origin/main' into dev 2024-03-22 08:41:45 -03:00
Gabriel Luiz Freitas Almeida
c1d93a0855 Bump version to 0.6.11 in pyproject.toml 2024-03-22 08:35:43 -03:00
Gabriel Luiz Freitas Almeida
38cfd46eae Refactor API key encryption and decryption methods 2024-03-21 18:36:38 -03:00
Gabriel Luiz Freitas Almeida
8f88db0c2e Update path to paths in FileComponent 2024-03-21 17:08:08 -03:00
Gabriel Luiz Freitas Almeida
f4c3d445c4 Fix function calls and formatting in PageComponent and NodeToolbarComponent 2024-03-21 17:06:22 -03:00
Gabriel Luiz Freitas Almeida
b2c6f67a48 Add Error status to nodes that fail validateNodes 2024-03-21 17:06:05 -03:00
Gabriel Luiz Freitas Almeida
43894dee01 Add ERROR status to BuildStatus enum 2024-03-21 17:04:46 -03:00
Gabriel Luiz Freitas Almeida
0a1ee6994e Refactor inputComponent onChange event handler 2024-03-21 16:56:39 -03:00
Gabriel Luiz Freitas Almeida
60a83d1f6a Refactor validateNode function in reactflowUtils.ts 2024-03-21 16:39:37 -03:00
igorrCarvalho
461a0fabfa Refactor: Make group/ungroup happen on the same key (ctrl g) 2024-03-21 14:11:45 -03:00
Gabriel Luiz Freitas Almeida
fbe346ccee Refactor globalVariables key names in GlobalVariablesStore 2024-03-21 14:02:37 -03:00
Gabriel Luiz Freitas Almeida
7f34516a52 Change key to name 2024-03-21 14:02:08 -03:00
Gabriel Luiz Freitas Almeida
69735b070f Refactor addNewVariableButtonComponent and API registerGlobalVariable 2024-03-21 14:01:05 -03:00
Gabriel Luiz Freitas Almeida
3b7cae829c Update delete_credential function to return status code 204 2024-03-21 13:58:26 -03:00
igorrCarvalho
ef9fdce774 Merge branch 'zustand/io/migration' of github.com:logspace-ai/langflow into zustand/io/migration 2024-03-21 13:58:24 -03:00
igorrCarvalho
2c6d9ee520 Refactor: Group with shortcut and click should call The same function, it shouldnt use it directly 2024-03-21 13:58:13 -03:00
Lucas Oliveira
178db4b95f Fix merge bug 2024-03-21 17:26:28 +01:00
Gabriel Luiz Freitas Almeida
c53a9d0714 Refactor MongoDBAtlasVectorSearch imports 2024-03-21 13:23:06 -03:00
Gabriel Luiz Freitas Almeida
43e3bc4ef5 Refactor authentication code and update settings 2024-03-21 13:22:51 -03:00
chenhongsheng
d39ace293c
fix init ChatMessagePromptTemplate error issue #1351 (#1535)
fix init ChatMessagePromptTemplate error issue #1351.ChatMessagePromptTemplate init had role properties,but the params not passing through

issue:https://github.com/logspace-ai/langflow/issues/1351
2024-03-21 13:21:50 -03:00
Gabriel Luiz Freitas Almeida
4cfb011dfc Fix handling of password input when copied from another input 2024-03-21 13:16:55 -03:00
Gabriel Luiz Freitas Almeida
3f3cd7b9b2 Add check for unsupported .doc files 2024-03-21 12:50:25 -03:00
Gabriel Luiz Freitas Almeida
14688457cd Merge remote-tracking branch 'origin/dev' into zustand/io/migration 2024-03-21 12:26:25 -03:00
Gabriel Luiz Freitas Almeida
3fbcd02bd9
Refactor parse_return_statement method to handle nested returns (#1549)
Fixes [Component Output] Custom component does not display output connection points in Langflow UI #1357
2024-03-21 12:21:44 -03:00
Gabriel Luiz Freitas Almeida
50d8313cd7 Refactor file loading and add support for .docx files 2024-03-21 11:59:44 -03:00