Update home.tsx

This commit is contained in:
Yifei Zhang 2023-03-29 02:19:20 +08:00 committed by GitHub
parent 07956486b5
commit 17ee2ee135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ export function Chat(props: { showSideBar?: () => void }) {
};
// only search prompts when user input is short
const SEARCH_TEXT_LIMIT = 10;
const SEARCH_TEXT_LIMIT = 30;
const onInput = (text: string) => {
setUserInput(text);
const n = text.trim().length;