From e56ddc69d48dfab7871d2f65a332382e12034dba Mon Sep 17 00:00:00 2001 From: sijinhui Date: Fri, 1 Mar 2024 16:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=A1=B5=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BD=BF=E7=94=A8token=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 9e777cdaf..aa29e26fd 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -607,21 +607,21 @@ export function ChatActions(props: { /> )} - false} - text={"使用 " + current_day_token} - icon={ - 😀 - } - /> + {/* false}*/} + {/* text={"使用 " + current_day_token}*/} + {/* icon={*/} + {/* */} + {/* }*/} + {/*/>*/} ); } @@ -1160,11 +1160,13 @@ function _Chat() { }; // eslint-disable-next-line react-hooks/exhaustive-deps }, []); - + const handlePaste = useCallback( async (event: React.ClipboardEvent) => { const currentModel = chatStore.currentSession().mask.modelConfig.model; - if(!isVisionModel(currentModel)){return;} + if (!isVisionModel(currentModel)) { + return; + } const items = (event.clipboardData || window.clipboardData).items; for (const item of items) { if (item.kind === "file" && item.type.startsWith("image/")) { @@ -1272,6 +1274,10 @@ function _Chat() {
{Locale.Chat.SubTitle(session.messages.length)} + +   当天使用: + {localStorage.getItem("current_day_token") ?? 0} +