langflow
langflow copied to clipboard
fix: add minimized attribute to components and make chatinput and chatoutput start minimized by default
This pull request includes several changes to improve the formatting and functionality of chat components in the langflow
backend. The most important changes include the addition of the minimized
attribute to both ChatInput
and ChatOutput
classes, and the reformatting of code for better readability.
Chat component enhancements:
-
src/backend/base/langflow/components/inputs/chat.py
: Added theminimized
attribute to theChatInput
class and reformatted imports and code blocks for better readability. [1] [2] -
src/backend/base/langflow/components/outputs/chat.py
: Added theminimized
attribute to theChatOutput
class and reformatted imports and code blocks for better readability. [1] [2] [3] [4]
Attribute validation:
-
src/backend/base/langflow/custom/attributes.py
: Added theminimized
attribute to thegetattr_return_dict
function for validation.
Starter project updates:
-
src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json
: Updated theChatInput
andChatOutput
classes to include theminimized
attribute and reformatted the code for better readability. [1] [2]