Skip to content

Commit

Permalink
fix(ai-help): limit input to 25k characters (#10796)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Mar 26, 2024
1 parent fc245ad commit cf2aee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/plus/ai-help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ function AIHelpUserQuestion({
>
<ExpandingTextarea
ref={inputRef}
maxLength={25_000}
enterKeyHint="send"
onKeyDown={(event) => {
if (event.key === "Enter" && !event.shiftKey) {
Expand Down Expand Up @@ -799,6 +800,7 @@ export function AIHelpInner() {
>
<ExpandingTextarea
ref={inputRef}
maxLength={25_000}
autoFocus={true}
disabled={isLoading || isResponding}
enterKeyHint="send"
Expand Down

0 comments on commit cf2aee6

Please sign in to comment.