langflow icon indicating copy to clipboard operation
langflow copied to clipboard

fix: add minimized attribute to components and make chatinput and chatoutput start minimized by default

Open lucaseduoli opened this issue 2 months ago • 1 comments

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 the minimized attribute to the ChatInput class and reformatted imports and code blocks for better readability. [1] [2]
  • src/backend/base/langflow/components/outputs/chat.py: Added the minimized attribute to the ChatOutput class and reformatted imports and code blocks for better readability. [1] [2] [3] [4]

Attribute validation:

  • src/backend/base/langflow/custom/attributes.py: Added the minimized attribute to the getattr_return_dict function for validation.

Starter project updates:

  • src/backend/base/langflow/initial_setup/starter_projects/Basic Prompt Chaining.json: Updated the ChatInput and ChatOutput classes to include the minimized attribute and reformatted the code for better readability. [1] [2]

lucaseduoli avatar Dec 19 '24 19:12 lucaseduoli