mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
Update chat.tsx
This commit is contained in:
parent
e7051353eb
commit
9775660da7
@ -1102,9 +1102,9 @@ function _Chat() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handlePaste = useCallback(
|
const handlePaste = useCallback(
|
||||||
const currentModel = chatStore.currentSession().mask.modelConfig.model;
|
|
||||||
if(!isVisionModel(currentModel)){return;}
|
|
||||||
async (event: React.ClipboardEvent<HTMLTextAreaElement>) => {
|
async (event: React.ClipboardEvent<HTMLTextAreaElement>) => {
|
||||||
|
const currentModel = chatStore.currentSession().mask.modelConfig.model;
|
||||||
|
if(!isVisionModel(currentModel)){return;}
|
||||||
const items = (event.clipboardData || window.clipboardData).items;
|
const items = (event.clipboardData || window.clipboardData).items;
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
if (item.kind === "file" && item.type.startsWith("image/")) {
|
if (item.kind === "file" && item.type.startsWith("image/")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user