Refactor the MessageModel class in schema.py to include methods for validating and serializing the 'files' field. This ensures that the 'files' field can be properly handled when it is a string or a list.
In service.py, update the query in the MonitorService class to include the 'files' field when retrieving messages from the database. This ensures that the 'files' field is included in the query results.
Fix the button behavior in the InputListComponent to correctly handle the index comparison. Previously, the button was only rendered for the first element in the list, but now it is rendered for the last element. This change ensures consistent rendering and improves the user experience when interacting with the component.
* chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components
* 🐛 (test_endpoints.py): fix assertion to check for correct key name in output results for chat and any input types
Update the OpenAIModelComponent to handle an optional model name and temperature. This allows for more flexibility in configuring the component. The model name can now be set to None if not provided, and the temperature can be set to 0.1 if not specified. This improves the usability and customization options of the OpenAIModelComponent.
Update langflow components and constants to improve functionality, error handling, and user experience. This includes fixing rendering issues in dropdownComponent and improving value handling in tableNodeCellRender. The MonitorService now supports read-only mode in the exec_query method. The APIRequestComponent has been enhanced to parse curl commands and update the build configuration accordingly. The URLComponent now includes metadata in the returned data objects. Additionally, the SessionView and MessagesPage components have been updated to sort columns using the messagesSorter utility function, ensuring consistent column ordering. The unused Tabs component has been removed from FlowLogsModal. The CHAT_FIRST_INITIAL_TEXT and CHAT_SECOND_INITIAL_TEXT constants have been updated. Lastly, the error message in the Vertex class of base.py has been improved for building Components. These changes enhance the overall performance, functionality, and clarity of the codebase.
Update the APIRequestComponent and URLComponent to improve functionality and error handling. In APIRequestComponent, add the ability to parse curl commands and update the build configuration accordingly. In URLComponent, include metadata in the returned data objects. These changes enhance the overall performance and user experience of the components.
Sort the columns in the SessionView and MessagesPage components using the messagesSorter utility function. This ensures consistent column ordering and improves the user experience when viewing and interacting with the tables.
* ignore sqlite tmp files
* update many dependencies to be optional
* improve makefile help messagem
* chore: Update langflow-base dependency to use local path for development
* change postgres to mandatory dependency
* improve makefile readability
* Revert update many dependencies to be optional
This reverts commit 80780565df5bc63632e6971054670cee467542f9.
---------
Co-authored-by: ogabrielluiz <gabriel@langflow.org>
Update the error message in the Vertex class of base.py to provide more specific information when encountering an error while building Components. Instead of mentioning "vertex", the message now refers to "Component" to align with the terminology used in the codebase. This change improves clarity and consistency in the error messages.
Update the FileComponent in File.py to handle the case where no file path is provided. If the path is empty, raise a ValueError with the message "Please, upload a file to use this component." This change improves the error handling and user experience of the component.
Refactor the ParameterComponent in index.tsx to improve the logic for displaying the output preview. Also, handle the case where there are outputs available for the selected output name. This change enhances the functionality and user experience of the component.
Update the Message.from_data method in message.py to change the parameter name from "record" to "data". This change improves clarity and consistency in the codebase.
Update the ChatInput and ChatOutput components in ChatInput.py and ChatOutput.py to handle Message input. If the input value is an instance of the Message class, extract the text attribute and use it as the input value. This change ensures compatibility with the langflow schema and improves the flexibility of the components.
Update the Vertex class in base.py to fix a bug in the logic for checking if a parameter is a list. The current implementation only checks if the "list" key exists in the template_dict, but it should also check if the value of the "list" key is truthy. This change ensures that the correct condition is used to determine if a parameter is a list, preventing potential overwriting of params with the same name but different target_id.
Update the TextInput component in TextInput.py to handle Message input. If the input value is an instance of the Message class, extract the text attribute and use it as the input value. This change ensures compatibility with the langflow schema and improves the flexibility of the component.
Update the switchOutputView component to handle array log results. If the log results are an array, an error message is logged and the component returns early. This change ensures proper handling of different types of log results and improves the reliability of the component.
Update the StrInput class in inputs.py to include a default value of an empty string. This change ensures consistency and improves the usability of the class.
Update the ChatOutput class in ChatOutput.py to use the MultilineInput class from the langflow library for text input. This change improves the usability and flexibility of the component, allowing for multiline messages to be passed as output.
Update the display name and info of the TextInput component in TextInput.py to improve clarity and consistency. The display name is changed to "Text" and the info is updated to reflect that it expects text input. This change aligns with recent updates to the langflow library and enhances the usability of the component.
Update the CustomComponent class in CustomComponent.py to use the StrInput and Output classes from the langflow library. This change ensures compatibility with the latest langflow updates and improves the clarity and consistency of the code.