Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase max limit of ChatAreaInput #7562

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading