fix: whisper checker;fix: img read (#3813)

* fix: img read

* fix: whisper checker

* perf: dev doc

* perf: dev doc

* remove invalid code
This commit is contained in:
Archer
2025-02-18 10:08:25 +08:00
committed by GitHub
parent 4d20274a97
commit b14674cc6f
16 changed files with 75 additions and 95 deletions

View File

@@ -107,7 +107,6 @@ const ChatInput = ({
);
/* whisper init */
const { sttModelList } = useSystemStore();
const canvasRef = useRef<HTMLCanvasElement>(null);
const {
isSpeaking,
@@ -293,7 +292,7 @@ const ChatInput = ({
/>
<Flex alignItems={'center'} position={'absolute'} right={[2, 4]} bottom={['10px', '12px']}>
{/* voice-input */}
{whisperConfig.open && !inputValue && !isChatting && sttModelList.length > 0 && (
{whisperConfig?.open && !inputValue && !isChatting && (
<>
<canvas
ref={canvasRef}
@@ -430,8 +429,7 @@ const ChatInput = ({
speakingTimeString,
stopSpeak,
t,
whisperConfig.open,
sttModelList
whisperConfig?.open
]
);