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…
Reference in New Issue