소스 검색

Revert "fix: No history message attached when for gemini-pro-vision"

This reverts commit c197962851be820469bf2e8624f9b6edd37b13e1.
fengzai6 1 년 전
부모
커밋
c22153a4eb
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      app/components/chat.tsx

+ 0 - 4
app/components/chat.tsx

@@ -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