Skip to content

Commit

Permalink
fix: No history message attached when for gemini-pro-vision
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzai6 committed Feb 27, 2024
1 parent 44a5127 commit c197962
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ export function ChatActions(props: {
if (!show) {
props.setAttachImages([]);
props.setUploading(false);
} else {
// 为visionModel时不附带历史消息
const newModelConfig = chatStore.currentSession().mask.modelConfig;
newModelConfig.historyMessageCount = 0;
}

// if current model is not available
Expand Down

0 comments on commit c197962

Please sign in to comment.