fix: add selected_output field to components & templates to prevent disconnected edges (#8444)
* feat: add selected_output property to Component and update validation logic * feat: add selected_output property to various components and update related logic * fix: improve error handling in JSON processing and update type hints * refactor: clean up Makefile and reorder JSON properties in Vector Store RAG.json * Removed the update_selected_outputs target from the Makefile to streamline the build process. * Reordered properties in Vector Store RAG.json for consistency, ensuring "selected_output" appears before "type" in multiple entries. * chore: remove add_selected_outputs.py script * Deleted the add_selected_outputs.py script, which was responsible for adding selected_output fields to Langflow JSON template files. This script is no longer needed as part of the project. * chore: clean up Makefile by removing unnecessary blank line * Removed an extra blank line in the Makefile to improve readability and maintain consistency. * chore: tidy up Makefile by adding a blank line for better readability * Added a blank line before the help target in the Makefile to enhance readability and maintain consistency in formatting. * chore: remove unnecessary blank line in Makefile * Eliminated an extra blank line before the help target in the Makefile to enhance readability and maintain consistency in formatting. * [autofix.ci] apply automated fixes * fix(GenericNode): update output selection logic to use selected_output name * Modified the logic for selecting the initial output in GenericNode to match the selected_output name from the data object. * Adjusted the return logic in NodeOutputs to ensure it correctly handles the selected output state. * fix(GenericNode): refine output selection logic to prioritize selected outputs * Updated the output selection logic in the cleanEdges function to filter for selected outputs before finding the matching output by name. This change enhances the accuracy of output handling for generic nodes. * updated blog writer * fix: update Memory Chatbot configuration for improved message handling - Adjusted JSON structure for Memory Chatbot to ensure correct output types and display names. - Added new input fields for sender type and refined existing fields for clarity. - Enhanced message retrieval methods to support dynamic output based on selected modes. - Improved overall structure for better integration with Langflow components. * Update src/backend/base/langflow/custom/custom_component/component.py Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> * [autofix.ci] apply automated fixes * Ruff linting error fix * [autofix.ci] apply automated fixes * fix: Update test to reflect change in heading from "OpenAi" to "Language Model" --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com> Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> Co-authored-by: Eric Hare <ericrhare@gmail.com>
This commit is contained in:
parent
950743aaf8
commit
f091d6373c
39 changed files with 361 additions and 162 deletions
|
|
@ -22,7 +22,7 @@ test(
|
|||
expect(clipboardContent.length).toBeGreaterThan(0);
|
||||
await page.getByTestId("tweaks-button").click();
|
||||
await page
|
||||
.getByRole("heading", { name: "OpenAi" })
|
||||
.getByRole("heading", { name: "Language Model" })
|
||||
.locator("div")
|
||||
.first()
|
||||
.click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue