Update import statements, set TTSEnabled in TTSModeSettings, and fix fetchChatModels error handling
This commit is contained in:
@@ -75,14 +75,6 @@ export const useMessageOption = () => {
|
||||
const navigate = useNavigate()
|
||||
const textareaRef = React.useRef<HTMLTextAreaElement>(null)
|
||||
|
||||
React.useEffect(() => {
|
||||
const checkTTSEnabled = async () => {
|
||||
const tts = await isTTSEnabled()
|
||||
setTTSEnabled(tts)
|
||||
}
|
||||
|
||||
checkTTSEnabled()
|
||||
}, [])
|
||||
|
||||
const clearChat = () => {
|
||||
navigate("/")
|
||||
|
||||
Reference in New Issue
Block a user