소스 검색

vision_model_only

Snow Kawashiro 1 년 전
부모
커밋
e7051353eb
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/components/chat.tsx

+ 3 - 1
app/components/chat.tsx

@@ -1102,6 +1102,8 @@ function _Chat() {
   }, []);
   
   const handlePaste = useCallback(
+    const currentModel = chatStore.currentSession().mask.modelConfig.model;
+    if(!isVisionModel(currentModel)){return;}
     async (event: React.ClipboardEvent<HTMLTextAreaElement>) => {
       const items = (event.clipboardData || window.clipboardData).items;
       for (const item of items) {
@@ -1137,7 +1139,7 @@ function _Chat() {
         }
       }
     },
-    [attachImages],
+    [attachImages, chatStore],
   );
 
   async function uploadImage() {