61a6710adf🔒 chore(llms.py): set password field to False for fields not containing 'key' or 'token' in their name The openai_api_version field value is no longer set as it is not needed. The password field is now set to False for fields not containing 'key' or 'token' in their name to improve security. 🐛 fix(llms.py): remove setting of openai_api_version field value
Gabriel Luiz Freitas Almeida
2023-06-15 09:45:15 -03:00
39926381f1Fixed visual bugs on header
Lucas Oliveira
2023-06-15 09:03:51 -03:00
c260ffe316Fixed export popup not closing
Lucas Oliveira
2023-06-15 08:58:30 -03:00
788213a38fCurl logo added
Lucas Oliveira
2023-06-15 08:37:16 -03:00
435927df8eFixed flow settings modal not editing description and not closing
Lucas Oliveira
2023-06-15 08:34:17 -03:00
a23121aa54🐛 fix(chat.py): yield error message when an exception occurs during stream_build 🔧 chore(base.py): fix typo in docstring The fix in chat.py ensures that an error message is yielded when an exception occurs during stream_build. This helps to provide more information to the client-side when an error occurs. The typo in base.py's docstring is fixed to improve readability.
Gabriel Luiz Freitas Almeida
2023-06-15 07:44:11 -03:00
ef5623e1b3📝 docs(API): add documentation for postBuildInit function ✨ feat(API): add postBuildInit function to post the build init of a flow The postBuildInit function has been added to post the build init of a flow. The function takes in a flow object and returns a promise that resolves to an AxiosResponse containing the build status. Documentation has been added to the function to improve code readability and maintainability.
Gabriel Luiz Freitas Almeida
2023-06-15 07:43:53 -03:00
d28d7483dd🚀 feat(contexts): add SSEProvider to ContextWrapper The SSEProvider is added to the ContextWrapper to provide a context for the Server-Sent Events (SSE) functionality. This allows the frontend to receive real-time updates from the server without the need for constant polling.
Gabriel Luiz Freitas Almeida
2023-06-15 07:38:35 -03:00
3920eb50d6Merge remote-tracking branch 'origin/validation_fix' into db
Gabriel Luiz Freitas Almeida
2023-06-15 07:37:26 -03:00
5e0afbde39revert sidebar width to 52
Rodrigo Nader
2023-06-15 00:09:41 -03:00
fd59bd77b3Refactor SQL agent and related nodes
Rodrigo Nader
2023-06-14 23:54:39 -03:00
d9e3390a99Refactor: Adjusted the width of the extra sidebar component to 52px and the width of the search input to 100%.
Rodrigo Nader
2023-06-14 23:22:05 -03:00
f8bf008878🐛 fix(constants.tsx): change node type id format to include the type name in uppercase ✨ feat(constants.tsx): add support for tweaks in getPythonApiCode and getCurlCode functions 🎨 style(ApiModal/index.tsx): remove unused imports and components 🎨 style(PageComponent/index.tsx): change node type id format to include the type name in uppercase ✨ feat(utils.ts): add buildTweaks function to create an empty tweaks object for each node The node type id format is now changed to include the type name in uppercase, which improves consistency with the naming conventions. Support for tweaks is added to the getPythonApiCode and getCurlCode functions, which allows the API to apply tweaks to the flow. Unused imports and components are removed from the ApiModal component. The buildTweaks function is added to create an empty tweaks object for each node.
Gabriel Luiz Freitas Almeida
2023-06-14 19:59:42 -03:00
c1b4b1d360Merge branch 'db' of personal:logspace-ai/langflow into db
anovazzi1
2023-06-14 18:23:00 -03:00
e3a29fe41fnode description using text-muted-foreground
anovazzi1
2023-06-14 18:22:47 -03:00
7538a1e37ausing shadToggle to node too
anovazzi1
2023-06-14 18:17:35 -03:00
bef0761416Changed button to primary
Lucas Oliveira
2023-06-14 18:05:02 -03:00
063fc6cc6bMerge branch 'db' of personal:logspace-ai/langflow into db
anovazzi1
2023-06-14 17:35:24 -03:00
04cf77ffd6fix code box on APIMdal
anovazzi1
2023-06-14 17:34:39 -03:00
56b16dac60🔨 refactor(documentloaders.py): move build_template function outside of DocumentLoaderFrontNode class The build_template function is now outside of the DocumentLoaderFrontNode class to improve code organization and make it more modular. This change also makes it easier to reuse the function in other parts of the codebase.
Gabriel Luiz Freitas Almeida
2023-06-14 17:15:54 -03:00
429cf52c63removed bold from text title and description
anovazzi1
2023-06-14 17:15:52 -03:00
6921b3855aMerge branch 'db' of personal:logspace-ai/langflow into db
anovazzi1
2023-06-14 17:08:58 -03:00
6e554dc2e5removed icon on settings
anovazzi1
2023-06-14 17:06:15 -03:00
f18b42ef44🎨 style(menuBar, nodeToolbarComponent): add margin to the right of the icon to improve spacing The changes add a margin to the right of the icon in the menu bar and node toolbar components. This improves the spacing between the icon and the text. The dark:text-gray-300 class is added to ensure that the icon is visible in both light and dark mode.
Gabriel Luiz Freitas Almeida
2023-06-14 17:02:54 -03:00
5a91643619🎨 style(MainPage): rename download and upload buttons to use the word Collection instead of Database The download and upload buttons were renamed to use the word Collection instead of Database to improve the semantics of the application.
Gabriel Luiz Freitas Almeida
2023-06-14 16:35:39 -03:00
5ba6084f08✨ feat(EditNodeModal): use node description instead of constant for dialog subtitle The constant EDIT_DIALOG_SUBTITLE was not being used, so it was removed. The node description is now being used instead of the constant for the dialog subtitle, which makes the code more dynamic and easier to maintain. 🔥 refactor(EditNodeModal): remove unused constant
Gabriel Luiz Freitas Almeida
2023-06-14 16:27:45 -03:00
e30cd6f610🎨 style(frontend): capitalize button text in EditNodeModal and change placeholder text in ExtraSidebar search bar 💄 style(frontend): improve readability by capitalizing the button text in EditNodeModal and changing the placeholder text in ExtraSidebar search bar to improve consistency with the rest of the application.
Gabriel Luiz Freitas Almeida
2023-06-14 15:55:17 -03:00
0b2d3deabb🎨 style(nodeToolbarComponent): replace icons from heroicons with lucide-react icons The heroicons package was replaced with lucide-react icons to improve consistency with the rest of the application. The icons were replaced with the following lucide-react icons: Settings2, Copy, and Trash2.
Gabriel Luiz Freitas Almeida
2023-06-14 15:47:31 -03:00
e229510907💄 style(tabsContext.tsx): add save function to TabsContextInitialValue 🚀 feat(tabsContext.tsx): add save function to save the current state of the flows to local storage The save function was added to TabsContextInitialValue to provide a default value for the save function. The save function was added to save the current state of the flows to local storage. The function uses lodash's cloneDeep to avoid mutating the original object. It also looks for file fields to prevent saving the content and breaking the flow for exceeding the data limit for local storage. The function then saves the tabId, flows, and id to local storage.
Gabriel Luiz Freitas Almeida
2023-06-14 15:47:18 -03:00
b16f04d543🎨 style(modals): add 'ID:' prefix to the node id badge in EditNodeModal 🎨 style(PageComponent): add lowercase type prefix to the generated node id The 'ID:' prefix was added to the node id badge in EditNodeModal to improve readability and semantics. In PageComponent, a lowercase prefix was added to the generated node id to improve consistency with the naming conventions.
Gabriel Luiz Freitas Almeida
2023-06-14 15:47:05 -03:00
68f278553f🚀 feat(tabs): add save function to TabsContextType The save function is added to TabsContextType to allow the saving of changes made to the flows in the tabs.
Gabriel Luiz Freitas Almeida
2023-06-14 15:46:48 -03:00
2bd3d6b3de🐛 fix(launch.json): remove wildcard from url property to fix debugging issue The wildcard in the url property was causing issues with debugging the frontend. Removing the wildcard ensures that the debugger is attached to the correct URL.
Gabriel Luiz Freitas Almeida
2023-06-14 15:12:19 -03:00
1a1746cf12🔨 refactor(PageComponent): add type prefix to new node IDs 🔨 refactor(ExtraSidebarComponent): remove Separator component The PageComponent now generates new node IDs with a prefix that matches the type of the node. This improves the readability of the IDs and makes it easier to identify the type of node by looking at its ID. The ExtraSidebarComponent no longer uses the Separator component, as it is no longer needed.
Gabriel Luiz Freitas Almeida
2023-06-14 15:04:20 -03:00
83b9c3239a🚚 chore(frontend): move nameInputComponent to EditFlowSettingsComponent 🔨 refactor(frontend): update import paths for EditFlowSettingsComponent 🔨 refactor(frontend): remove unused id property from createNewFlow function in tabsContext 🔨 refactor(frontend): replace nameInputComponent with EditFlowSettingsComponent in exportModal and flowSettingsModal The nameInputComponent has been renamed to EditFlowSettingsComponent to better reflect its purpose. The import paths have been updated accordingly. The id property is no longer needed in the createNewFlow function in tabsContext, so it has been removed. The exportModal and flowSettingsModal components have been updated to use the new EditFlowSettingsComponent instead of the old nameInputComponent.
Gabriel Luiz Freitas Almeida
2023-06-14 15:02:38 -03:00
b761621751🎉 feat(EditFlowSettingsComponent): add EditFlowSettingsComponent to allow editing of flow settings This commit adds a new component called EditFlowSettingsComponent which allows the user to edit the name and description of a flow. The component receives the current name and description of the flow, the maximum length of the name, an array of all flows, the id of the current flow, and three functions to update the name, description, and flow. The component renders two input fields, one for the name and one for the description, and updates the flow and name when the user types in the input fields. The name input field has a character limit of maxLength and displays an error message when the limit is reached.
Gabriel Luiz Freitas Almeida
2023-06-14 14:57:25 -03:00
de81941b5f🔥 chore(utils.ts): remove unused imports and variables The commit removes unused imports and variables from the utils.ts file. This improves the code's readability and maintainability by removing unnecessary code.
Gabriel Luiz Freitas Almeida
2023-06-14 14:57:08 -03:00
49e094cd32🚀 feat(vite.config.ts): add /health route to apiRoutes array The /health route is added to the apiRoutes array to allow the frontend to check the health of the backend server. This is useful for monitoring and debugging purposes.
Gabriel Luiz Freitas Almeida
2023-06-14 14:56:52 -03:00
010c1b7b50Merge remote-tracking branch 'origin/NewId' into db
Gabriel Luiz Freitas Almeida
2023-06-14 14:56:46 -03:00
6fc9b653f8adjust border colors and removing old save
Cristhian Zanforlin Lousa
2023-06-14 14:51:46 -03:00
bc834e3404Merge remote-tracking branch 'origin/mainPage' into db
Gabriel Luiz Freitas Almeida
2023-06-14 13:05:14 -03:00
0219a197ce🚀 feat(constants.tsx): add versioning to API endpoints The API endpoints have been updated to include a version number to improve the maintainability of the codebase. The version number is now included in the URL path for both the Python API and the curl code. This change allows for future updates to the API without breaking existing code that relies on the previous version.
Gabriel Luiz Freitas Almeida
2023-06-14 13:04:51 -03:00
99fa125b91FIxed spacing and export modal not working
Lucas Oliveira
2023-06-14 13:01:41 -03:00
46dc7e527eMerge branch 'bugfix/edit-node' into mainPage
Lucas Oliveira
2023-06-14 12:57:00 -03:00
1aa24e5420Changed Card component to be more generic
Lucas Oliveira
2023-06-14 12:29:12 -03:00
de95e0db3c🎨 style(exportModal.tsx, flowSettingsModal.tsx): refactor name and description input fields into a reusable component ✨ feat(nameInputComponent.tsx): add character limit to name input field The name and description input fields in the ExportModal and FlowSettingsModal components have been refactored into a reusable component called EditFlowSettings. This improves code reusability and reduces code duplication. The EditFlowSettings component also includes a character limit of 50 characters for the name input field to prevent users from entering names that are too long.
Gabriel Luiz Freitas Almeida
2023-06-14 12:15:48 -03:00
288974dff3✨ feat(nameInputComponent): add EditFlowSettings component to allow editing of flow name and description The EditFlowSettings component is a form that allows the user to edit the name and description of a flow. It receives the current name and description as props, as well as a list of flows, the current tab ID, and functions to update the name, description, and flow. The component also includes a character limit for the name input and displays an error message if the limit is reached.
Gabriel Luiz Freitas Almeida
2023-06-14 12:15:35 -03:00
76cc488d79🚀 feat(constants.py): add new OpenAI chat models and update existing ones Added new OpenAI chat models to the CHAT_OPENAI_MODELS list to improve the quality of the chatbot responses. The new models are "gpt-3.5-turbo-0613", "gpt-3.5-turbo-16k-0613", "gpt-4-0613", and "gpt-4-32k-0613". The existing models "gpt-3.5-turbo" and "gpt-4-32k" were also updated to their latest versions.
Gabriel Luiz Freitas Almeida
2023-06-14 11:43:36 -03:00
1b0b41f408🔼 chore(pyproject.toml): update langchain and openai dependencies The langchain and openai dependencies have been updated to versions 0.0.200 and 0.27.8 respectively. This update is necessary to ensure that the application is using the latest versions of these libraries and to take advantage of any bug fixes or new features that have been added.
Gabriel Luiz Freitas Almeida
2023-06-14 11:37:58 -03:00
53f01c618b✨ feat(flowSettingsModal): add handleSaveFlow function to save flow changes to the database and display success message The changes in this commit include removing unused imports and formatting the code to improve readability. The handleSaveFlow function was added to save flow changes to the database and display a success message. This function is called when the user clicks the save button. 🎨 style(flowSettingsModal): remove unused imports and format code
Gabriel Luiz Freitas Almeida
2023-06-14 11:37:35 -03:00
a6f15476c9🔨 refactor(chatModal): remove unused imports and variables, extract getWebSocketUrl function The imports for XMarkIcon and FaEraser were removed as they were not being used. The lodash set function was also removed as it was not being used. The getWebSocketUrl function was extracted from the connectWS function to improve readability and maintainability.
Gabriel Luiz Freitas Almeida
2023-06-14 10:51:54 -03:00
e4af874534🔨 refactor(menuBar): remove unused imports and code, add missing semicolon 🔨 refactor(vite.config): remove unused routes and commented code, remove rewrite function The menuBar component had some unused imports and code that was removed. A missing semicolon was added to the code. The vite.config file had some unused routes and commented code that was removed. The rewrite function was also removed as it was not needed.
Gabriel Luiz Freitas Almeida
2023-06-14 09:28:50 -03:00
7fc7cd0957🔨 refactor(App.tsx): remove unused imports and components ✨ feat(App.tsx): simplify getVersion() function call The imports and components that are no longer used have been removed to improve the code's readability and maintainability. The getVersion() function call has been simplified to make the code more concise and easier to read.
Gabriel Luiz Freitas Almeida
2023-06-14 09:28:30 -03:00
83bd59dedb🚀 feat(API): add /api/v1 prefix to all API endpoints All API endpoints now have the /api/v1 prefix to improve the semantics of the API and to make it easier to distinguish between the frontend and backend routes.
Gabriel Luiz Freitas Almeida
2023-06-14 09:28:01 -03:00
d78f2a81c5🎨 style(cardComponent): format code with Prettier This commit only formats the code with Prettier to improve code readability and consistency. No functional changes were made.
Gabriel Luiz Freitas Almeida
2023-06-14 09:27:51 -03:00
23d56efda7🔥 chore(MainPage): remove unused imports and variables The import statements for unused components and contexts have been removed to improve code readability and maintainability. The unused variables have also been removed to reduce clutter and improve code quality.
Gabriel Luiz Freitas Almeida
2023-06-14 09:27:33 -03:00
676c92dd92🎨 style(flows.py): add status codes to API endpoints The status codes have been added to the API endpoints to improve the readability of the code and to make it more explicit what the expected response codes are. The status codes have been added to the following endpoints: create_flow, read_flows, read_flow, update_flow, delete_flow, create_flows, upload_file, and download_file.
Gabriel Luiz Freitas Almeida
2023-06-14 09:27:02 -03:00
6f366ad0eaconstant style input, open prompt icon hover color
Cristhian Zanforlin Lousa
2023-06-14 09:25:28 -03:00
07c5a41f60Merge remote-tracking branch 'origin/mainPage' into db
Gabriel Luiz Freitas Almeida
2023-06-14 08:57:35 -03:00
466cb17302Removed user stub
Lucas Oliveira
2023-06-14 08:40:04 -03:00
bcf0b88a7c🧪 test(process.py): add tests for process_tweaks function This commit adds tests for the process_tweaks function in the langflow.processing.process module. The tests cover the following scenarios: - No tweaks are applied to the graph data - A single tweak is applied to the graph data - Multiple tweaks are applied to the graph data - A tweak is applied to a non-existent parameter in the graph data The tests ensure that the function processes the tweaks correctly and returns the expected result.
Gabriel Luiz Freitas Almeida
2023-06-14 07:21:49 -03:00
7817c64591🐛 fix(endpoints.py): change predict_flow function signature to include flow_id and session dependencies ✨ feat(endpoints.py): add flow_id parameter to predict_flow function to allow for running a flow by ID The predict_flow function now includes a flow_id parameter and a session dependency to allow for running a flow by ID. The flow object is retrieved from the session using the flow_id parameter. If the flow is not found, a ValueError is raised.
Gabriel Luiz Freitas Almeida
2023-06-14 07:21:25 -03:00
b2598165a6Fixed saving issue and implemented saved message
Lucas Oliveira
2023-06-14 06:52:10 -03:00
4a89470ceeOverflow fixed at sidebar
Lucas Oliveira
2023-06-14 06:48:06 -03:00
72c60ded54input components format
Cristhian Zanforlin Lousa
2023-06-14 01:33:35 -03:00
8affac1f53Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix
anovazzi1
2023-06-13 20:43:22 -03:00
9f5591639e🐛 fix(chat.py): handle exceptions while building the flow and add a final response to the event stream The code now handles exceptions that may occur while building the flow. A final response is added to the event stream to indicate the end of the stream.
Gabriel Luiz Freitas Almeida
2023-06-13 20:41:58 -03:00
b55d24101dMerge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix
anovazzi1
2023-06-13 20:32:37 -03:00