mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
Merge 43b74b4aa8
into 0581e37236
This commit is contained in:
commit
79245d6f1c
@ -522,12 +522,14 @@ export function ChatActions(props: {
|
||||
|
||||
const isMobileScreen = useMobileScreen();
|
||||
|
||||
const { setAttachImages, setUploading } = props;
|
||||
|
||||
useEffect(() => {
|
||||
const show = isVisionModel(currentModel);
|
||||
setShowUploadImage(show);
|
||||
if (!show) {
|
||||
props.setAttachImages([]);
|
||||
props.setUploading(false);
|
||||
setAttachImages([]);
|
||||
setUploading(false);
|
||||
}
|
||||
|
||||
// if current model is not available
|
||||
@ -547,7 +549,7 @@ export function ChatActions(props: {
|
||||
: nextModel.name,
|
||||
);
|
||||
}
|
||||
}, [chatStore, currentModel, models]);
|
||||
}, [chatStore, currentModel, models, setAttachImages, setUploading]);
|
||||
|
||||
return (
|
||||
<div className={styles["chat-input-actions"]}>
|
||||
|
Loading…
Reference in New Issue
Block a user