ソースを参照

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