From c1d1cafd1029c4c82f3820ff8120aa9c7465a21e Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Sat, 4 Jan 2025 16:26:56 +0800 Subject: [PATCH] fix: build --- app/components/chat.tsx | 4 ++-- app/components/settings.tsx | 1 - app/store/plugin.ts | 6 +++--- app/utils/chat.ts | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 406199699..3a045936d 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -840,7 +840,7 @@ export function ChatActions(props: { /> )} - {showPlugins(currentProviderName, currentModel) && ( + {/* {showPlugins(currentProviderName, currentModel) && ( { if (pluginStore.getAll().length == 0) { @@ -852,7 +852,7 @@ export function ChatActions(props: { text={Locale.Plugin.Name} icon={} /> - )} + )} */} {showPluginSelector && ( { +export function uploadImage(file: Blob): Promise { if (!window._SW_ENABLED) { // if serviceWorker register error, using compressImage return compressImage(file, 256 * 1024); @@ -137,7 +137,7 @@ export function uploadImage(file: File): Promise { }) .then((res) => res.json()) .then((res) => { - console.log("res", res); + // console.log("res", res); if (res?.code == 0 && res?.data) { return res?.data; }