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.
Refactor the URLComponent and FileComponent classes to inherit from the langflow custom Component class instead of the deprecated CustomComponent class. This change ensures compatibility with the latest langflow library updates and improves the maintainability of the code.
📝 (chat.py): Remove commented out code related to logs in build_vertex function for better code readability
📝 (schemas.py): Change the type of logs field in ResultDataResponse class to be a dictionary with string keys and Log values for consistency
📝 (schema.py): Refactor build_logs_from_artifacts function to use a dictionary instead of defaultdict for logs variable for simplicity and consistency
Update the coloredContent function in GenericModal to ensure the input value is converted to a string before applying replacements. This change improves the reliability and consistency of the function.
Update the logs field in the ResultDataResponse schema to allow for a list of logs or a single log. This change ensures compatibility with the latest langflow library updates and improves the flexibility of the schema.
Update the field classes in the codebase to use the 'hidden' attribute instead of 'hide' for consistency and clarity. This change aligns with recent updates to the langflow library and improves the readability of the code.
Update the imports in TextInput.py to match the latest changes in the langflow library. This ensures compatibility and consistency with the rest of the codebase.
🐛 (index.tsx): fix conditional rendering of Download option in toolbar
✨ (ProfilePictureForm): add setLoading(false) after updating state to ensure loading state is reset
refactor: Add value attribute to ChatInput
Add a new value attribute to the ChatInput class in ChatInput.py. This allows for the pre-filling of the input field with a default value.
Update the MESSAGES_TABLE_ORDER constant in constants.ts to include additional fields for sorting messages in a table. This change improves the functionality and flexibility of the codebase, allowing for more customizable table sorting options.
Update the logs field type in the ResultDataResponse schema of schemas.py to use a single Log object instead of a list of Log objects. This change aligns the schema with the actual data structure and improves consistency throughout the codebase.
Refactor the build_vertex function in chat.py to handle logs and result data response more efficiently. Instead of using a conditional statement to check the type of vertex.artifacts_raw, the code now directly assigns the logs variable based on the type. Additionally, the logs variable is only assigned to result_data_response if it is not empty. This change improves the clarity and maintainability of the code.
Update the Log class in schema.py to allow the message field to accept a list type in addition to str, dict, and StreamURL. This change enhances the flexibility of the Log class and accommodates scenarios where multiple messages need to be stored.
Update the inputs of the ChatInput class in ChatInput.py to use specific input classes such as StrInput and DropdownInput. This change improves the organization and separation of concerns in the codebase, making it easier to understand and maintain.
Update the Template class in base.py to include a serialization alias for the type_name field and use the InputTypes class for the fields list. This refactor improves the organization and maintainability of the codebase by providing clearer field definitions and serialization behavior.
Update the inputs of the PromptComponent class in Prompt.py to use the PromptInput class instead of the deprecated Input class. This change improves the organization and separation of concerns in the codebase, making it easier to understand and maintain.
Update the inputs of the ChatOutput class in ChatOutput.py to use specific input classes such as StrInput, DropdownInput, and BoolInput. This change improves the organization and separation of concerns in the codebase, making it easier to understand and maintain.
Update the inputs of the ChatInput class in ChatInput.py to use specific input classes such as StrInput and DropdownInput. This change improves the organization and separation of concerns in the codebase, making it easier to understand and maintain.
Remove the unused code block in the update_template_field function in utils.py. The code block was checking for the "load_from_db" key in the value_dict and assigning it to the "load_from_db" attribute of the template_field dictionary. However, this attribute is no longer used in the codebase, so the code block can be safely removed. This change improves the clarity and maintainability of the code.
This commit updates the `BaseInputMixin` class in the `input_mixin.py` file. It adds the `model_serializer` decorator and the `serialize_model` method to the mixin. The `model_serializer` decorator is used to specify the serialization behavior of the model, and the `serialize_model` method is responsible for serializing the model into a dictionary representation.
These additions enhance the flexibility and reusability of the `BaseInputMixin` class.
This commit updates the inputs of the `OpenAIModelComponent` class in the `OpenAIModel.py` file. It replaces the `Input` class with specific input classes such as `StrInput`, `IntInput`, `DictInput`, `DropdownInput`, `BoolInput`, and `SecretStrInput`. This change improves the organization and separation of concerns in the codebase, making it easier to understand and maintain.
Additionally, the commit renames the `model_response` method to `build_model` for better clarity and consistency. The method is responsible for constructing the language model using the specified input values and returning the built model.
These updates enhance the functionality and maintainability of the `OpenAIModelComponent` class.
* Refactor chatView component to handle artifacts in chat messages, fixing bug on streamed messages after refresh
* Improve error handling and error messages in CustomNodes hooks to provide more informative and user-friendly error messages. This ensures that users are aware of any unexpected errors that occur while updating or adding components, and prompts them to try again. This change also aligns with recent improvements in error handling across the codebase.
* ♻️ (utils.ts): remove unnecessary trailing commas in function parameters
* ✨ (frontend): add constants for error messages in CustomNodes hooks
♻️ (frontend): refactor error handling in CustomNodes hooks to use constants
* feat: Add constants for error messages in CustomNodes hooks
Refactor error handling in CustomNodes hooks to use constants for error messages. This improves code readability and maintainability, ensuring consistent error messages are displayed to users. This change aligns with recent improvements in error handling across the codebase.
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Add missing click event in codeAreaModalComponent.spec.ts
* refactor: Update cURL code generation to use icon-Copy test ID for button click
* refactor: Improve error handling and error messages in CustomNodes hooks
* refactor: Remove unnecessary click event in logs.spec.ts
* refactor: Fix XPath selectors in textInputOutput.spec.ts
* fix python api test
* refactor: Update cURL code generation to use icon-Copy test ID for button click
* fix save component
* refactor: Update API key selection in userSettings.spec.ts
* refactor: Update promptModalComponent.spec.ts
* refactor: Update chatInputOutput.spec.ts for zoom out functionality
* refactor: Add return_message option to ChatInput build_config
* fix streaming
* update example
* update example name
* refactor: Update chatInputOutputUser.spec.ts test to improve readability and maintainability
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
♻️ (count-handles): refactor to use optional chaining for template fields
♻️ (get-nodes-with-default-value): refactor to use optional chaining
♻️ (nodeToolbarComponent): refactor to use optional chaining for template fields
💡 (utils.ts): remove unnecessary trailing commas in function parameters to improve code readability and consistency
This commit adds field input classes for different data types in the `inputs.py` file. The purpose of this change is to improve the organization and separation of concerns in the codebase. Each input class specifies the field type and provides default values or options where applicable. This update enhances the maintainability and extensibility of the codebase.