Update chat.tsx

This commit is contained in:
Yanyutin753
2024-04-13 11:14:19 +08:00
parent e7cc2a8c55
commit 24c8ca610c

View File

@@ -622,22 +622,24 @@ export function ChatActions(props: {
)}
{(currentModel.includes("vision") || currentModel.includes("gizmo")) && (
<ChatAction
onClick={selectImage}
onClick={selectImages}
text="选择文件"
loding={uploadLoading}
loading={uploadLoading}
icon={<UploadIcon />}
innerNode={
<input
type="file"
multiple
accept="*/*"
id="chat-image-file-select-upload"
style={{ display: "none" }}
onChange={onImageSelected}
onChange={onImagesSelected}
/>
}
/>
)}
{showModelSelector && (
<Selector
defaultSelectedValue={currentModel}