Skip to content

Commit

Permalink
Revert "fix: No history message attached when for gemini-pro-vision"
Browse files Browse the repository at this point in the history
This reverts commit c197962.
  • Loading branch information
fengzai6 committed Mar 7, 2024
1 parent 5348d57 commit c22153a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,6 @@ 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 c22153a

Please sign in to comment.