Revert "fix: No history message attached when for gemini-pro-vision"
This reverts commit c197962851
.
This commit is contained in:
parent
5348d57057
commit
c22153a4eb
|
@ -459,10 +459,6 @@ 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