This commit adds the OutputModal component to the ParameterComponent. The OutputModal component is responsible for displaying the output preview when the user clicks on the "Inspect Output" button. It improves the user experience by allowing them to easily view the output without leaving the current page.
Some docs syntax items @rodrigosnader requested -
1. Merge canvas and flows/components/projects doc into 1 doc
2. Move HF Spaces to install, remove page and nav item
3. Remove install from starter projects and link to install page
4. All title case nav
* Update OllamaModel.py
A draft to synchronize the model using the latest Langflow architecture and to improve it according to the latest Langchain specifications.
* Update OllamaModel.py
Checkout Models from api
* Update OllamaModel.py
* Update OllamaModel.py
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* Fixed shortcuts not working on mac
* fixed top level vertices and added timeout
* revert flowStore changes
* chore: Update worker timeout setting
* feat: Add endpoint to retrieve config settings
The commit adds a new endpoint `/config` to retrieve the configuration settings. This endpoint returns the `ConfigResponse` model, which includes the `timeout` value. The implementation handles any exceptions and logs them appropriately.
* feat: Add fetchConfig function to retrieve configuration settings
This commit adds a new function fetchConfig to the API utils module. The function makes an HTTP GET request to the /config endpoint and returns the configuration data. Any errors that occur during the request are logged and rethrown. This function will be used to initialize the application with the fetched configuration.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* revert changes
* feat: Add setupAxiosDefaults function to initialize Axios configurations
This commit adds a new function setupAxiosDefaults to the API utils module. The function fetches the configuration data using the fetchConfig function and sets up default configurations for Axios. It sets the base URL and timeout for Axios requests based on the fetched configuration. This function will be used to initialize Axios with the correct configurations.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* fix(langflow): rename 'timeout' setting to 'worker_timeout' for clarity and consistency
feat(langflow): add 'frontend_timeout' setting to control frontend API call timeout
chore(langflow): reorganize imports and constants in settings module for better readability
* Set frontend_timeout to 0
---------
Co-authored-by: ogabrielluiz <gabriel@langflow.org>
This commit adds a new component called TextOutputView to the shared/components directory. The TextOutputView component is responsible for displaying text output in a textarea. It receives the necessary data from the flowPool and renders the appropriate text. This component improves the code organization and reusability of the text output display logic.
The code changes in `ChromaSearch.py` and `Chroma.py` import the `chromadb` library and use it to create a `HttpClient` object. This change enables the components to interact with a Chroma server for vector search functionality.
This commit message follows the established convention of starting with a type (feat for feature) and providing a concise summary of the changes.
This commit adds two new hooks, useCheckCodeValidity and useIconNodeRender, to the customNodes/hooks directory.
The useCheckCodeValidity hook is responsible for checking the validity of the code in a node template and setting the "isOutdated" state accordingly. It improves the code organization and ensures that the code is only checked once.
The useIconNodeRender hook is responsible for rendering the appropriate icon for a node based on its data and type. It improves code reusability and simplifies the rendering logic.
This commit adds a new hook called useIconStatus to the customNodes/hooks directory. The useIconStatus hook is responsible for rendering the appropriate icon status based on the build status and validation status. It returns the rendered icon status component. This hook improves the code organization and reusability of the icon status logic.
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
The new OutputModal component is added to the genericNode module. It provides a modal window for displaying the output visualization. The component includes a header, content, and footer sections. The content section includes the SwitchOutputView component, which renders different output views based on the type of results. The footer section includes an "Ok" button for closing the modal.
* feat(langflow): add utility functions to build records from run outputs and result data for better code organization and reusability
* chore: Generate dynamic flow function with user ID parameter for better flow customization and tracking
* chore: Refactor build_records_from_run_outputs and build_records_from_result_data for better code organization and reusability
* chore: Update FlowToolComponent to include user ID parameter in build_function_and_schema method call
* chore: Add conditional check for result_data in build_records_from_run_outputs
* chore: Generate dynamic flow function with optional user ID parameter for better flow customization and tracking
* feat: Add user ID parameter to Graph.from_payload method
* chore: Add FlowTool class for flow processing and customization
* chore: Update FlowToolComponent to use get_flow_inputs instead of build_function_and_schema
* chore: Update FlowTool to handle optional user ID parameter
* chore: Update pyproject.toml versions for langflow and langflow-base
* feat(workflows): add Docker Build and Push workflow to automate building and pushing Docker images based on release type and version
feat(workflows): add Pre-release workflow to automate releasing Langflow packages based on release type and version
feat(workflows): create workflow to call Docker Build workflow and handle release creation based on release type
* chore: Update dockerfile paths and branch name in render.yaml and release.yml
* chore(readthedocs.yaml): remove .readthedocs.yaml file as it is no longer needed
chore(base.Dockerfile): remove base.Dockerfile as it is no longer used in the project
feat(cdk-docker-compose.yml): add cdk-docker-compose.yml file to set up docker-compose for backend and frontend services
* move dockerignore
* chore: Remove test-results/.last-run.json file
* chore: Cache Node.js dependencies during workflow execution
* chore: Remove npm cache from workflow and cache Node.js dependencies
* chore: Update shardIndex and shardTotal values in typescript_test.yml workflow
* chore: Update Playwright test command with shard and worker options
* chore: update settings attributes and remove config.yaml references
* Remove config.yaml references and update settings attributes
* chore: Ensure flows always have a folder
* chore: Update store attribute in check_if_store_is_enabled function