mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-17 16:44:01 +00:00
Update chat.tsx
This commit is contained in:
@@ -622,22 +622,24 @@ export function ChatActions(props: {
|
|||||||
)}
|
)}
|
||||||
{(currentModel.includes("vision") || currentModel.includes("gizmo")) && (
|
{(currentModel.includes("vision") || currentModel.includes("gizmo")) && (
|
||||||
<ChatAction
|
<ChatAction
|
||||||
onClick={selectImage}
|
onClick={selectImages}
|
||||||
text="选择文件"
|
text="选择文件"
|
||||||
loding={uploadLoading}
|
loading={uploadLoading}
|
||||||
icon={<UploadIcon />}
|
icon={<UploadIcon />}
|
||||||
innerNode={
|
innerNode={
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
|
multiple
|
||||||
accept="*/*"
|
accept="*/*"
|
||||||
id="chat-image-file-select-upload"
|
id="chat-image-file-select-upload"
|
||||||
style={{ display: "none" }}
|
style={{ display: "none" }}
|
||||||
onChange={onImageSelected}
|
onChange={onImagesSelected}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
{showModelSelector && (
|
{showModelSelector && (
|
||||||
<Selector
|
<Selector
|
||||||
defaultSelectedValue={currentModel}
|
defaultSelectedValue={currentModel}
|
||||||
|
Reference in New Issue
Block a user