Add key prop to Image component and update speechToTextLanguage state

This commit is contained in:
n4ze3m
2024-02-15 00:44:42 +05:30
parent 31730cad81
commit d7c85537e3
7 changed files with 196 additions and 101 deletions

View File

@@ -99,7 +99,9 @@ export const useMessage = () => {
chatMode,
setChatMode,
setIsEmbedding,
isEmbedding
isEmbedding,
speechToTextLanguage,
setSpeechToTextLanguage
} = useStoreMessage()
const abortControllerRef = React.useRef<AbortController | null>(null)
@@ -439,6 +441,8 @@ ${e?.message}
setSelectedModel,
chatMode,
setChatMode,
isEmbedding
isEmbedding,
speechToTextLanguage,
setSpeechToTextLanguage
}
}