improve ai logic

This commit is contained in:
Ishaan Dey
2024-05-13 23:22:06 -07:00
parent 6e67578bf4
commit ce5e55bdf6
3 changed files with 224 additions and 234 deletions

View File

@ -49,8 +49,8 @@ export default function GenerateInput({
useEffect(() => {
setTimeout(() => {
inputRef.current?.focus();
}, 0);
}, []);
}, 100);
}, [inputRef.current]);
const handleGenerate = async ({
regenerate = false,