fix: typos

This commit is contained in:
yoyocircle
2024-07-17 03:59:08 +00:00
parent 884e72b4f0
commit f6b4b4a361
5 changed files with 49 additions and 49 deletions

View File

@ -30,7 +30,7 @@ export type IChatProps = {
checkCanSend?: () => boolean
onSend?: (message: string, files: VisionFile[]) => void
useCurrentUserAvatar?: boolean
isResponsing?: boolean
isResponding?: boolean
controlClearQuery?: number
visionConfig?: VisionSettings
}
@ -43,7 +43,7 @@ const Chat: FC<IChatProps> = ({
checkCanSend,
onSend = () => { },
useCurrentUserAvatar,
isResponsing,
isResponding,
controlClearQuery,
visionConfig,
}) => {
@ -95,7 +95,7 @@ const Chat: FC<IChatProps> = ({
if (!files.find(item => item.type === TransferMethod.local_file && !item.fileId)) {
if (files.length)
onClear()
if (!isResponsing)
if (!isResponding)
setQuery('')
}
}
@ -129,7 +129,7 @@ const Chat: FC<IChatProps> = ({
item={item}
feedbackDisabled={feedbackDisabled}
onFeedback={onFeedback}
isResponsing={isResponsing && isLast}
isResponding={isResponding && isLast}
/>
}
return (