Skip to content

Commit

Permalink
Increase max limit (#7562)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jan 8, 2025
1 parent d6eb1ac commit 5426424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/reference/chat/ChatAreaInput.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions panel/chat/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {
Expand Down

0 comments on commit 5426424

Please sign in to comment.