ソースを参照

Update chat.tsx

Snow Kawashiro 1 年間 前
コミット
9775660da7
1 ファイル変更2 行追加2 行削除
  1. 2 2
      app/components/chat.tsx

+ 2 - 2
app/components/chat.tsx

@@ -1102,9 +1102,9 @@ function _Chat() {
   }, []);
   
   const handlePaste = useCallback(
-    const currentModel = chatStore.currentSession().mask.modelConfig.model;
-    if(!isVisionModel(currentModel)){return;}
     async (event: React.ClipboardEvent<HTMLTextAreaElement>) => {
+      const currentModel = chatStore.currentSession().mask.modelConfig.model;
+      if(!isVisionModel(currentModel)){return;}
       const items = (event.clipboardData || window.clipboardData).items;
       for (const item of items) {
         if (item.kind === "file" && item.type.startsWith("image/")) {