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
]
);

View File

@@ -58,6 +58,7 @@ const RenderOutput = ({
}
});
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [copyOutputs, nodeId, inputs, llmModelList]);
const [editField, setEditField] = useState<FlowNodeOutputItemType>();
@@ -154,6 +155,7 @@ const RenderOutput = ({
(item) =>
item.type !== FlowNodeOutputTypeEnum.dynamic && item.type !== FlowNodeOutputTypeEnum.hidden
);
return (
<>
{renderOutputs.map((output, i) => {
@@ -163,7 +165,7 @@ const RenderOutput = ({
required={output.required}
position={'relative'}
_notLast={{
mb: 4
mb: i !== renderOutputs.length - 1 ? 4 : 0
}}
>
<OutputLabel nodeId={nodeId} output={output} />