mirror of
https://git.mirrors.martin98.com/https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-08-15 20:05:54 +08:00
fix: No history message attached when for gemini-pro-vision
This commit is contained in:
parent
44a51273be
commit
c197962851
@ -459,6 +459,10 @@ export function ChatActions(props: {
|
|||||||
if (!show) {
|
if (!show) {
|
||||||
props.setAttachImages([]);
|
props.setAttachImages([]);
|
||||||
props.setUploading(false);
|
props.setUploading(false);
|
||||||
|
} else {
|
||||||
|
// 为visionModel时不附带历史消息
|
||||||
|
const newModelConfig = chatStore.currentSession().mask.modelConfig;
|
||||||
|
newModelConfig.historyMessageCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if current model is not available
|
// if current model is not available
|
||||||
|
Loading…
x
Reference in New Issue
Block a user