diff --git a/backend/chainlit/input_widget.py b/backend/chainlit/input_widget.py index 272db839de..58ee591653 100644 --- a/backend/chainlit/input_widget.py +++ b/backend/chainlit/input_widget.py @@ -127,6 +127,7 @@ class TextInput(InputWidget): type: InputWidgetType = "textinput" initial: Optional[str] = None placeholder: Optional[str] = None + multiline: bool = False def to_dict(self) -> Dict[str, Any]: return { @@ -137,6 +138,7 @@ def to_dict(self) -> Dict[str, Any]: "placeholder": self.placeholder, "tooltip": self.tooltip, "description": self.description, + "multiline": self.multiline, }