Update TextChat.jsx

This commit is contained in:
bsu3338 2023-08-05 09:57:45 -05:00 committed by GitHub
parent 8982ec1439
commit ca3f064a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ export default function TextChat({ isSearchView = false }) {
const { ask, stopGenerating } = useMessageHandler();
const isNotAppendable = latestMessage?.unfinished & !isSubmitting || latestMessage?.error;
const { conversationId, jailbreak } = conversation || {};
const { isSpeechSupported, isListening, text: speechText, toggleListening } = useSpeechRecognition();
const { isSpeechSupported, isListening, text: speechText, toggleListening } = useSpeechRecognition(ask);
// auto focus to input, when enter a conversation.
useEffect(() => {