diff --git a/examples/reference/chat/ChatAreaInput.ipynb b/examples/reference/chat/ChatAreaInput.ipynb index ca80644a21..3e6f811417 100644 --- a/examples/reference/chat/ChatAreaInput.ipynb +++ b/examples/reference/chat/ChatAreaInput.ipynb @@ -46,7 +46,7 @@ "* **`auto_grow`** (boolean, default=True): Whether the TextArea should automatically grow in height to fit the content.\n", "* **`cols`** (int, default=2): The number of columns in the text input field.\n", "* **`disabled`** (boolean, default=False): Whether the widget is editable\n", - "* **`max_length`** (int, default=5000): Max character length of the input field. Defaults to 5000\n", + "* **`max_length`** (int, default=50000): Max character length of the input field. Defaults to 50000\n", "* **`max_rows`** (int, default=10): The maximum number of rows in the text input field when `auto_grow=True`.\n", "* **`name`** (str): The title of the widget\n", "* **`placeholder`** (str): A placeholder string displayed when no value is entered\n", diff --git a/panel/chat/input.py b/panel/chat/input.py index 5f885cc839..b41bd1626b 100644 --- a/panel/chat/input.py +++ b/panel/chat/input.py @@ -71,6 +71,9 @@ class ChatAreaInput(_PnTextAreaInput): Can only be set during initialization.""", ) + max_length = param.Integer(default=50000, doc=""" + Max count of characters in the input field.""") + _widget_type: ClassVar[type[Model]] = _bkChatAreaInput _rename: ClassVar[Mapping[str, str | None]] = {